@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/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.object({
931
+ prompt_tokens_details: z3.looseObject({
932
932
  cached_tokens: z3.number().nullish()
933
933
  }).nullish(),
934
- completion_tokens_details: z3.object({
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.object({
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.68" : "0.0.0-test";
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) {