@ai-sdk/openai-compatible 2.0.68 → 2.0.69
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/CHANGELOG.md +20 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +2 -2
- package/dist/internal/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/chat/openai-compatible-chat-language-model.ts +3 -2
- package/src/completion/openai-compatible-completion-language-model.ts +2 -1
package/dist/index.mjs
CHANGED
|
@@ -928,10 +928,10 @@ var openaiCompatibleTokenUsageSchema = z3.looseObject({
|
|
|
928
928
|
prompt_tokens: z3.number().nullish(),
|
|
929
929
|
completion_tokens: z3.number().nullish(),
|
|
930
930
|
total_tokens: z3.number().nullish(),
|
|
931
|
-
prompt_tokens_details: z3.
|
|
931
|
+
prompt_tokens_details: z3.looseObject({
|
|
932
932
|
cached_tokens: z3.number().nullish()
|
|
933
933
|
}).nullish(),
|
|
934
|
-
completion_tokens_details: z3.
|
|
934
|
+
completion_tokens_details: z3.looseObject({
|
|
935
935
|
reasoning_tokens: z3.number().nullish(),
|
|
936
936
|
accepted_prediction_tokens: z3.number().nullish(),
|
|
937
937
|
rejected_prediction_tokens: z3.number().nullish()
|
|
@@ -1422,7 +1422,7 @@ var OpenAICompatibleCompletionLanguageModel = class {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
|
-
var usageSchema = z5.
|
|
1425
|
+
var usageSchema = z5.looseObject({
|
|
1426
1426
|
prompt_tokens: z5.number(),
|
|
1427
1427
|
completion_tokens: z5.number(),
|
|
1428
1428
|
total_tokens: z5.number()
|
|
@@ -1734,7 +1734,7 @@ import {
|
|
|
1734
1734
|
} from "@ai-sdk/provider-utils";
|
|
1735
1735
|
|
|
1736
1736
|
// src/version.ts
|
|
1737
|
-
var VERSION = true ? "2.0.
|
|
1737
|
+
var VERSION = true ? "2.0.69" : "0.0.0-test";
|
|
1738
1738
|
|
|
1739
1739
|
// src/openai-compatible-provider.ts
|
|
1740
1740
|
function createOpenAICompatible(options) {
|