@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 +1 -1
- package/dist/index.d.cts +5 -6
- package/dist/index.d.ts +5 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
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 `
|
|
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.
|
|
770
|
-
*
|
|
769
|
+
* Public ID of the AI provider to use.
|
|
771
770
|
*/
|
|
772
|
-
ai_provider_id
|
|
771
|
+
ai_provider_id: string;
|
|
773
772
|
/**
|
|
774
|
-
* Model identifier. Overrides the provider's `
|
|
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 `
|
|
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.
|
|
770
|
-
*
|
|
769
|
+
* Public ID of the AI provider to use.
|
|
771
770
|
*/
|
|
772
|
-
ai_provider_id
|
|
771
|
+
ai_provider_id: string;
|
|
773
772
|
/**
|
|
774
|
-
* Model identifier. Overrides the provider's `
|
|
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 `
|
|
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 `
|
|
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) {
|