@soat/sdk 0.4.10 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1394,7 +1394,7 @@ var Chats = class {
1394
1394
  /**
1395
1395
  * Create a chat completion (stateless)
1396
1396
  *
1397
- * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `aiProviderId`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. Falls back to Ollama when `aiProviderId` is omitted.
1397
+ * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `ai_provider_id`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. `ai_provider_id` is required there is no server-side model fallback.
1398
1398
  *
1399
1399
  */
1400
1400
  static createChatCompletion(options) {
package/dist/index.d.cts CHANGED
@@ -766,12 +766,11 @@ type ChatMessage = {
766
766
  };
767
767
  type ChatCompletionRequest = {
768
768
  /**
769
- * Public ID of the AI provider to use. When omitted the server falls back to Ollama.
770
- *
769
+ * Public ID of the AI provider to use.
771
770
  */
772
- ai_provider_id?: string;
771
+ ai_provider_id: string;
773
772
  /**
774
- * Model identifier. Overrides the provider's `defaultModel` when specified.
773
+ * Model identifier. Overrides the provider's `default_model` when specified.
775
774
  *
776
775
  */
777
776
  model?: string;
@@ -2686,7 +2685,7 @@ type CreateChatCompletionData = {
2686
2685
  };
2687
2686
  type CreateChatCompletionErrors = {
2688
2687
  /**
2689
- * Bad Request — `messages` is missing or empty
2688
+ * Bad Request — `messages` is missing or empty, or `ai_provider_id` is missing
2690
2689
  */
2691
2690
  400: ErrorResponse;
2692
2691
  /**
@@ -5801,7 +5800,7 @@ declare class Chats {
5801
5800
  /**
5802
5801
  * Create a chat completion (stateless)
5803
5802
  *
5804
- * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `aiProviderId`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. Falls back to Ollama when `aiProviderId` is omitted.
5803
+ * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `ai_provider_id`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. `ai_provider_id` is required there is no server-side model fallback.
5805
5804
  *
5806
5805
  */
5807
5806
  static createChatCompletion<ThrowOnError extends boolean = false>(options: Options<CreateChatCompletionData, ThrowOnError>): RequestResult<CreateChatCompletionResponses, CreateChatCompletionErrors, ThrowOnError, "fields">;
package/dist/index.d.ts CHANGED
@@ -766,12 +766,11 @@ type ChatMessage = {
766
766
  };
767
767
  type ChatCompletionRequest = {
768
768
  /**
769
- * Public ID of the AI provider to use. When omitted the server falls back to Ollama.
770
- *
769
+ * Public ID of the AI provider to use.
771
770
  */
772
- ai_provider_id?: string;
771
+ ai_provider_id: string;
773
772
  /**
774
- * Model identifier. Overrides the provider's `defaultModel` when specified.
773
+ * Model identifier. Overrides the provider's `default_model` when specified.
775
774
  *
776
775
  */
777
776
  model?: string;
@@ -2686,7 +2685,7 @@ type CreateChatCompletionData = {
2686
2685
  };
2687
2686
  type CreateChatCompletionErrors = {
2688
2687
  /**
2689
- * Bad Request — `messages` is missing or empty
2688
+ * Bad Request — `messages` is missing or empty, or `ai_provider_id` is missing
2690
2689
  */
2691
2690
  400: ErrorResponse;
2692
2691
  /**
@@ -5801,7 +5800,7 @@ declare class Chats {
5801
5800
  /**
5802
5801
  * Create a chat completion (stateless)
5803
5802
  *
5804
- * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `aiProviderId`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. Falls back to Ollama when `aiProviderId` is omitted.
5803
+ * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `ai_provider_id`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. `ai_provider_id` is required there is no server-side model fallback.
5805
5804
  *
5806
5805
  */
5807
5806
  static createChatCompletion<ThrowOnError extends boolean = false>(options: Options<CreateChatCompletionData, ThrowOnError>): RequestResult<CreateChatCompletionResponses, CreateChatCompletionErrors, ThrowOnError, "fields">;
package/dist/index.js CHANGED
@@ -1442,7 +1442,7 @@ var Chats = class {
1442
1442
  /**
1443
1443
  * Create a chat completion (stateless)
1444
1444
  *
1445
- * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `aiProviderId`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. Falls back to Ollama when `aiProviderId` is omitted.
1445
+ * OpenAI Chat Completions-compatible endpoint. Resolves the AI provider from `ai_provider_id`, decrypts its secret, and calls the appropriate Vercel AI SDK provider. `ai_provider_id` is required there is no server-side model fallback.
1446
1446
  *
1447
1447
  */
1448
1448
  static createChatCompletion(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.4.10",
3
+ "version": "0.4.11",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",