@ai-sdk/openai 3.0.0-beta.44 → 3.0.0-beta.46
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 +14 -0
- package/dist/index.js +12 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -23
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +11 -22
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +11 -22
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -1661,7 +1661,7 @@ var openaiImageResponseSchema = lazySchema7(
|
|
|
1661
1661
|
data: z8.array(
|
|
1662
1662
|
z8.object({
|
|
1663
1663
|
b64_json: z8.string(),
|
|
1664
|
-
revised_prompt: z8.string().
|
|
1664
|
+
revised_prompt: z8.string().nullish()
|
|
1665
1665
|
})
|
|
1666
1666
|
)
|
|
1667
1667
|
})
|
|
@@ -3705,8 +3705,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3705
3705
|
toolName: "image_generation",
|
|
3706
3706
|
result: {
|
|
3707
3707
|
result: part.result
|
|
3708
|
-
}
|
|
3709
|
-
providerExecuted: true
|
|
3708
|
+
}
|
|
3710
3709
|
});
|
|
3711
3710
|
break;
|
|
3712
3711
|
}
|
|
@@ -3797,8 +3796,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3797
3796
|
type: "tool-result",
|
|
3798
3797
|
toolCallId: part.id,
|
|
3799
3798
|
toolName: webSearchToolName != null ? webSearchToolName : "web_search",
|
|
3800
|
-
result: mapWebSearchOutput(part.action)
|
|
3801
|
-
providerExecuted: true
|
|
3799
|
+
result: mapWebSearchOutput(part.action)
|
|
3802
3800
|
});
|
|
3803
3801
|
break;
|
|
3804
3802
|
}
|
|
@@ -3817,8 +3815,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3817
3815
|
result: {
|
|
3818
3816
|
type: "computer_use_tool_result",
|
|
3819
3817
|
status: part.status || "completed"
|
|
3820
|
-
}
|
|
3821
|
-
providerExecuted: true
|
|
3818
|
+
}
|
|
3822
3819
|
});
|
|
3823
3820
|
break;
|
|
3824
3821
|
}
|
|
@@ -3843,8 +3840,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3843
3840
|
score: result.score,
|
|
3844
3841
|
text: result.text
|
|
3845
3842
|
}))) != null ? _n : null
|
|
3846
|
-
}
|
|
3847
|
-
providerExecuted: true
|
|
3843
|
+
}
|
|
3848
3844
|
});
|
|
3849
3845
|
break;
|
|
3850
3846
|
}
|
|
@@ -3865,8 +3861,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3865
3861
|
toolName: "code_interpreter",
|
|
3866
3862
|
result: {
|
|
3867
3863
|
outputs: part.outputs
|
|
3868
|
-
}
|
|
3869
|
-
providerExecuted: true
|
|
3864
|
+
}
|
|
3870
3865
|
});
|
|
3871
3866
|
break;
|
|
3872
3867
|
}
|
|
@@ -4090,8 +4085,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4090
4085
|
type: "tool-result",
|
|
4091
4086
|
toolCallId: value.item.id,
|
|
4092
4087
|
toolName: "web_search",
|
|
4093
|
-
result: mapWebSearchOutput(value.item.action)
|
|
4094
|
-
providerExecuted: true
|
|
4088
|
+
result: mapWebSearchOutput(value.item.action)
|
|
4095
4089
|
});
|
|
4096
4090
|
} else if (value.item.type === "computer_call") {
|
|
4097
4091
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4113,8 +4107,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4113
4107
|
result: {
|
|
4114
4108
|
type: "computer_use_tool_result",
|
|
4115
4109
|
status: value.item.status || "completed"
|
|
4116
|
-
}
|
|
4117
|
-
providerExecuted: true
|
|
4110
|
+
}
|
|
4118
4111
|
});
|
|
4119
4112
|
} else if (value.item.type === "file_search_call") {
|
|
4120
4113
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4131,8 +4124,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4131
4124
|
score: result.score,
|
|
4132
4125
|
text: result.text
|
|
4133
4126
|
}))) != null ? _c : null
|
|
4134
|
-
}
|
|
4135
|
-
providerExecuted: true
|
|
4127
|
+
}
|
|
4136
4128
|
});
|
|
4137
4129
|
} else if (value.item.type === "code_interpreter_call") {
|
|
4138
4130
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4142,8 +4134,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4142
4134
|
toolName: "code_interpreter",
|
|
4143
4135
|
result: {
|
|
4144
4136
|
outputs: value.item.outputs
|
|
4145
|
-
}
|
|
4146
|
-
providerExecuted: true
|
|
4137
|
+
}
|
|
4147
4138
|
});
|
|
4148
4139
|
} else if (value.item.type === "image_generation_call") {
|
|
4149
4140
|
controller.enqueue({
|
|
@@ -4152,8 +4143,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4152
4143
|
toolName: "image_generation",
|
|
4153
4144
|
result: {
|
|
4154
4145
|
result: value.item.result
|
|
4155
|
-
}
|
|
4156
|
-
providerExecuted: true
|
|
4146
|
+
}
|
|
4157
4147
|
});
|
|
4158
4148
|
} else if (value.item.type === "local_shell_call") {
|
|
4159
4149
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4218,7 +4208,6 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4218
4208
|
result: {
|
|
4219
4209
|
result: value.partial_image_b64
|
|
4220
4210
|
},
|
|
4221
|
-
providerExecuted: true,
|
|
4222
4211
|
preliminary: true
|
|
4223
4212
|
});
|
|
4224
4213
|
} else if (isResponseCodeInterpreterCallCodeDeltaChunk(value)) {
|