@ai-sdk/openai 3.0.0-beta.45 → 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 +8 -0
- package/dist/index.js +11 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -22
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +10 -21
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +10 -21
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.js
CHANGED
|
@@ -3667,8 +3667,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3667
3667
|
toolName: "image_generation",
|
|
3668
3668
|
result: {
|
|
3669
3669
|
result: part.result
|
|
3670
|
-
}
|
|
3671
|
-
providerExecuted: true
|
|
3670
|
+
}
|
|
3672
3671
|
});
|
|
3673
3672
|
break;
|
|
3674
3673
|
}
|
|
@@ -3759,8 +3758,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3759
3758
|
type: "tool-result",
|
|
3760
3759
|
toolCallId: part.id,
|
|
3761
3760
|
toolName: webSearchToolName != null ? webSearchToolName : "web_search",
|
|
3762
|
-
result: mapWebSearchOutput(part.action)
|
|
3763
|
-
providerExecuted: true
|
|
3761
|
+
result: mapWebSearchOutput(part.action)
|
|
3764
3762
|
});
|
|
3765
3763
|
break;
|
|
3766
3764
|
}
|
|
@@ -3779,8 +3777,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3779
3777
|
result: {
|
|
3780
3778
|
type: "computer_use_tool_result",
|
|
3781
3779
|
status: part.status || "completed"
|
|
3782
|
-
}
|
|
3783
|
-
providerExecuted: true
|
|
3780
|
+
}
|
|
3784
3781
|
});
|
|
3785
3782
|
break;
|
|
3786
3783
|
}
|
|
@@ -3805,8 +3802,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3805
3802
|
score: result.score,
|
|
3806
3803
|
text: result.text
|
|
3807
3804
|
}))) != null ? _n : null
|
|
3808
|
-
}
|
|
3809
|
-
providerExecuted: true
|
|
3805
|
+
}
|
|
3810
3806
|
});
|
|
3811
3807
|
break;
|
|
3812
3808
|
}
|
|
@@ -3827,8 +3823,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3827
3823
|
toolName: "code_interpreter",
|
|
3828
3824
|
result: {
|
|
3829
3825
|
outputs: part.outputs
|
|
3830
|
-
}
|
|
3831
|
-
providerExecuted: true
|
|
3826
|
+
}
|
|
3832
3827
|
});
|
|
3833
3828
|
break;
|
|
3834
3829
|
}
|
|
@@ -4052,8 +4047,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4052
4047
|
type: "tool-result",
|
|
4053
4048
|
toolCallId: value.item.id,
|
|
4054
4049
|
toolName: "web_search",
|
|
4055
|
-
result: mapWebSearchOutput(value.item.action)
|
|
4056
|
-
providerExecuted: true
|
|
4050
|
+
result: mapWebSearchOutput(value.item.action)
|
|
4057
4051
|
});
|
|
4058
4052
|
} else if (value.item.type === "computer_call") {
|
|
4059
4053
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4075,8 +4069,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4075
4069
|
result: {
|
|
4076
4070
|
type: "computer_use_tool_result",
|
|
4077
4071
|
status: value.item.status || "completed"
|
|
4078
|
-
}
|
|
4079
|
-
providerExecuted: true
|
|
4072
|
+
}
|
|
4080
4073
|
});
|
|
4081
4074
|
} else if (value.item.type === "file_search_call") {
|
|
4082
4075
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4093,8 +4086,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4093
4086
|
score: result.score,
|
|
4094
4087
|
text: result.text
|
|
4095
4088
|
}))) != null ? _c : null
|
|
4096
|
-
}
|
|
4097
|
-
providerExecuted: true
|
|
4089
|
+
}
|
|
4098
4090
|
});
|
|
4099
4091
|
} else if (value.item.type === "code_interpreter_call") {
|
|
4100
4092
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4104,8 +4096,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4104
4096
|
toolName: "code_interpreter",
|
|
4105
4097
|
result: {
|
|
4106
4098
|
outputs: value.item.outputs
|
|
4107
|
-
}
|
|
4108
|
-
providerExecuted: true
|
|
4099
|
+
}
|
|
4109
4100
|
});
|
|
4110
4101
|
} else if (value.item.type === "image_generation_call") {
|
|
4111
4102
|
controller.enqueue({
|
|
@@ -4114,8 +4105,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4114
4105
|
toolName: "image_generation",
|
|
4115
4106
|
result: {
|
|
4116
4107
|
result: value.item.result
|
|
4117
|
-
}
|
|
4118
|
-
providerExecuted: true
|
|
4108
|
+
}
|
|
4119
4109
|
});
|
|
4120
4110
|
} else if (value.item.type === "local_shell_call") {
|
|
4121
4111
|
ongoingToolCalls[value.output_index] = void 0;
|
|
@@ -4180,7 +4170,6 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4180
4170
|
result: {
|
|
4181
4171
|
result: value.partial_image_b64
|
|
4182
4172
|
},
|
|
4183
|
-
providerExecuted: true,
|
|
4184
4173
|
preliminary: true
|
|
4185
4174
|
});
|
|
4186
4175
|
} else if (isResponseCodeInterpreterCallCodeDeltaChunk(value)) {
|