@ai-sdk/openai 4.0.43 → 4.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "4.0.43",
3
+ "version": "4.0.44",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -36,15 +36,15 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@ai-sdk/provider": "4.0.7",
39
- "@ai-sdk/provider-utils": "5.0.27"
39
+ "@ai-sdk/provider-utils": "5.0.28"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "22.19.19",
43
43
  "tsup": "^8.5.1",
44
44
  "typescript": "5.8.3",
45
45
  "zod": "3.25.76",
46
- "@ai-sdk/test-server": "2.0.1",
47
- "@vercel/ai-tsconfig": "0.0.0"
46
+ "@vercel/ai-tsconfig": "0.0.0",
47
+ "@ai-sdk/test-server": "2.0.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "zod": "^3.25.76 || ^4.1.8"
@@ -377,7 +377,7 @@ export class OpenAIChatLanguageModel implements LanguageModelV4 {
377
377
  for (const toolCall of choice.message.tool_calls ?? []) {
378
378
  content.push({
379
379
  type: 'tool-call' as const,
380
- toolCallId: toolCall.id ?? generateId(),
380
+ toolCallId: toolCall.id || generateId(),
381
381
  toolName: toolCall.function.name,
382
382
  input: toolCall.function.arguments!,
383
383
  });