@ai-sdk/openai 2.0.94 → 2.0.95

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
@@ -968,7 +968,7 @@ var OpenAIChatLanguageModel = class {
968
968
  for (const toolCallDelta of delta.tool_calls) {
969
969
  const index = toolCallDelta.index;
970
970
  if (toolCalls[index] == null) {
971
- if (toolCallDelta.type !== "function") {
971
+ if (toolCallDelta.type != null && toolCallDelta.type !== "function") {
972
972
  throw new InvalidResponseDataError({
973
973
  data: toolCallDelta,
974
974
  message: `Expected 'function' type.`
@@ -4697,7 +4697,7 @@ var OpenAITranscriptionModel = class {
4697
4697
  };
4698
4698
 
4699
4699
  // src/version.ts
4700
- var VERSION = true ? "2.0.94" : "0.0.0-test";
4700
+ var VERSION = true ? "2.0.95" : "0.0.0-test";
4701
4701
 
4702
4702
  // src/openai-provider.ts
4703
4703
  function createOpenAI(options = {}) {