@ai-sdk/openai 3.0.112 → 3.0.113
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 +6 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +2 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -0
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +2 -1
- package/package.json +3 -3
- package/src/responses/openai-responses-language-model.ts +4 -0
package/docs/03-openai.mdx
CHANGED
|
@@ -53,7 +53,8 @@ You can use the following optional settings to customize the OpenAI provider ins
|
|
|
53
53
|
- **baseURL** _string_
|
|
54
54
|
|
|
55
55
|
Use a different URL prefix for API calls, e.g. to use proxy servers.
|
|
56
|
-
|
|
56
|
+
It defaults to the `OPENAI_BASE_URL` environment variable, and then to
|
|
57
|
+
`https://api.openai.com/v1`.
|
|
57
58
|
The default OpenAI model factory (`openai('model-id')`) uses the Responses
|
|
58
59
|
API. If your custom base URL only supports the Chat Completions API, create
|
|
59
60
|
chat models with `openai.chat('model-id')` instead, or use the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/openai",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.113",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"tsup": "^8",
|
|
45
45
|
"typescript": "5.8.3",
|
|
46
46
|
"zod": "3.25.76",
|
|
47
|
-
"@ai-
|
|
48
|
-
"@
|
|
47
|
+
"@vercel/ai-tsconfig": "0.0.0",
|
|
48
|
+
"@ai-sdk/test-server": "1.0.6"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"zod": "^3.25.76 || ^4.1.8"
|
|
@@ -1105,6 +1105,8 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV3 {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
1107
|
case 'apply_patch_call': {
|
|
1108
|
+
hasFunctionCall = true;
|
|
1109
|
+
|
|
1108
1110
|
content.push({
|
|
1109
1111
|
type: 'tool-call',
|
|
1110
1112
|
toolCallId: part.call_id,
|
|
@@ -1934,6 +1936,8 @@ export class OpenAIResponsesLanguageModel implements LanguageModelV3 {
|
|
|
1934
1936
|
|
|
1935
1937
|
// Emit the final tool-call with complete diff when status is 'completed'
|
|
1936
1938
|
if (toolCall && value.item.status === 'completed') {
|
|
1939
|
+
hasFunctionCall = true;
|
|
1940
|
+
|
|
1937
1941
|
controller.enqueue({
|
|
1938
1942
|
type: 'tool-call',
|
|
1939
1943
|
toolCallId: toolCall.toolCallId,
|