@ai-sdk/openai 3.0.125 → 3.0.126
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 +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +11 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +11 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/responses/openai-responses-language-model.ts +15 -1
package/dist/index.mjs
CHANGED
|
@@ -7028,6 +7028,11 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
7028
7028
|
id: value.item.call_id,
|
|
7029
7029
|
toolName
|
|
7030
7030
|
});
|
|
7031
|
+
controller.enqueue({
|
|
7032
|
+
type: "tool-input-delta",
|
|
7033
|
+
id: value.item.call_id,
|
|
7034
|
+
delta: '"'
|
|
7035
|
+
});
|
|
7031
7036
|
} else if (value.item.type === "web_search_call") {
|
|
7032
7037
|
ongoingToolCalls[value.output_index] = {
|
|
7033
7038
|
toolName: toolNameMapping.toCustomToolName(
|
|
@@ -7316,6 +7321,11 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
7316
7321
|
const toolName = toolNameMapping.toCustomToolName(
|
|
7317
7322
|
value.item.name
|
|
7318
7323
|
);
|
|
7324
|
+
controller.enqueue({
|
|
7325
|
+
type: "tool-input-delta",
|
|
7326
|
+
id: value.item.call_id,
|
|
7327
|
+
delta: '"'
|
|
7328
|
+
});
|
|
7319
7329
|
controller.enqueue({
|
|
7320
7330
|
type: "tool-input-end",
|
|
7321
7331
|
id: value.item.call_id
|
|
@@ -7642,7 +7652,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
7642
7652
|
controller.enqueue({
|
|
7643
7653
|
type: "tool-input-delta",
|
|
7644
7654
|
id: toolCall.toolCallId,
|
|
7645
|
-
delta: value.delta
|
|
7655
|
+
delta: escapeJSONDelta(value.delta)
|
|
7646
7656
|
});
|
|
7647
7657
|
}
|
|
7648
7658
|
} else if (isResponseApplyPatchCallOperationDiffDeltaChunk(value)) {
|
|
@@ -8425,7 +8435,7 @@ var OpenAITranscriptionModel = class {
|
|
|
8425
8435
|
};
|
|
8426
8436
|
|
|
8427
8437
|
// src/version.ts
|
|
8428
|
-
var VERSION = true ? "3.0.
|
|
8438
|
+
var VERSION = true ? "3.0.126" : "0.0.0-test";
|
|
8429
8439
|
|
|
8430
8440
|
// src/openai-provider.ts
|
|
8431
8441
|
function createOpenAI(options = {}) {
|