@ai-sdk/openai 3.0.35 → 3.0.37
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 +21 -0
- package/dist/index.d.mts +50 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +1167 -948
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1117 -894
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +18 -0
- package/dist/internal/index.d.ts +18 -0
- package/dist/internal/index.js +349 -141
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +327 -115
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +78 -0
- package/package.json +2 -2
- package/src/chat/openai-chat-language-model.ts +4 -1
- package/src/openai-tools.ts +12 -0
- package/src/responses/convert-to-openai-responses-input.ts +74 -0
- package/src/responses/openai-responses-api.ts +58 -0
- package/src/responses/openai-responses-language-model.ts +94 -9
- package/src/responses/openai-responses-prepare-tools.ts +41 -11
- package/src/tool/custom.ts +64 -0
|
@@ -345,6 +345,12 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
345
345
|
path: string;
|
|
346
346
|
diff: string;
|
|
347
347
|
};
|
|
348
|
+
} | {
|
|
349
|
+
type: "custom_tool_call";
|
|
350
|
+
id: string;
|
|
351
|
+
call_id: string;
|
|
352
|
+
name: string;
|
|
353
|
+
input: string;
|
|
348
354
|
} | {
|
|
349
355
|
type: "shell_call";
|
|
350
356
|
id: string;
|
|
@@ -387,6 +393,13 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
387
393
|
name: string;
|
|
388
394
|
arguments: string;
|
|
389
395
|
status: "completed";
|
|
396
|
+
} | {
|
|
397
|
+
type: "custom_tool_call";
|
|
398
|
+
id: string;
|
|
399
|
+
call_id: string;
|
|
400
|
+
name: string;
|
|
401
|
+
input: string;
|
|
402
|
+
status: "completed";
|
|
390
403
|
} | {
|
|
391
404
|
type: "code_interpreter_call";
|
|
392
405
|
id: string;
|
|
@@ -536,6 +549,11 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
536
549
|
item_id: string;
|
|
537
550
|
output_index: number;
|
|
538
551
|
delta: string;
|
|
552
|
+
} | {
|
|
553
|
+
type: "response.custom_tool_call_input.delta";
|
|
554
|
+
item_id: string;
|
|
555
|
+
output_index: number;
|
|
556
|
+
delta: string;
|
|
539
557
|
} | {
|
|
540
558
|
type: "response.image_generation_call.partial_image";
|
|
541
559
|
item_id: string;
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -345,6 +345,12 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
345
345
|
path: string;
|
|
346
346
|
diff: string;
|
|
347
347
|
};
|
|
348
|
+
} | {
|
|
349
|
+
type: "custom_tool_call";
|
|
350
|
+
id: string;
|
|
351
|
+
call_id: string;
|
|
352
|
+
name: string;
|
|
353
|
+
input: string;
|
|
348
354
|
} | {
|
|
349
355
|
type: "shell_call";
|
|
350
356
|
id: string;
|
|
@@ -387,6 +393,13 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
387
393
|
name: string;
|
|
388
394
|
arguments: string;
|
|
389
395
|
status: "completed";
|
|
396
|
+
} | {
|
|
397
|
+
type: "custom_tool_call";
|
|
398
|
+
id: string;
|
|
399
|
+
call_id: string;
|
|
400
|
+
name: string;
|
|
401
|
+
input: string;
|
|
402
|
+
status: "completed";
|
|
390
403
|
} | {
|
|
391
404
|
type: "code_interpreter_call";
|
|
392
405
|
id: string;
|
|
@@ -536,6 +549,11 @@ declare const openaiResponsesChunkSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
|
536
549
|
item_id: string;
|
|
537
550
|
output_index: number;
|
|
538
551
|
delta: string;
|
|
552
|
+
} | {
|
|
553
|
+
type: "response.custom_tool_call_input.delta";
|
|
554
|
+
item_id: string;
|
|
555
|
+
output_index: number;
|
|
556
|
+
delta: string;
|
|
539
557
|
} | {
|
|
540
558
|
type: "response.image_generation_call.partial_image";
|
|
541
559
|
item_id: string;
|