@ai-sdk/openai 3.0.0-beta.78 → 3.0.0-beta.79
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 +9 -0
- package/dist/index.js +7 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -11
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +6 -10
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +6 -10
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -506,8 +506,7 @@ import {
|
|
|
506
506
|
} from "@ai-sdk/provider";
|
|
507
507
|
function prepareChatTools({
|
|
508
508
|
tools,
|
|
509
|
-
toolChoice
|
|
510
|
-
strictJsonSchema
|
|
509
|
+
toolChoice
|
|
511
510
|
}) {
|
|
512
511
|
tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
|
|
513
512
|
const toolWarnings = [];
|
|
@@ -524,7 +523,7 @@ function prepareChatTools({
|
|
|
524
523
|
name: tool.name,
|
|
525
524
|
description: tool.description,
|
|
526
525
|
parameters: tool.inputSchema,
|
|
527
|
-
strict:
|
|
526
|
+
...tool.strict != null ? { strict: tool.strict } : {}
|
|
528
527
|
}
|
|
529
528
|
});
|
|
530
529
|
break;
|
|
@@ -744,8 +743,7 @@ var OpenAIChatLanguageModel = class {
|
|
|
744
743
|
toolWarnings
|
|
745
744
|
} = prepareChatTools({
|
|
746
745
|
tools,
|
|
747
|
-
toolChoice
|
|
748
|
-
strictJsonSchema
|
|
746
|
+
toolChoice
|
|
749
747
|
});
|
|
750
748
|
return {
|
|
751
749
|
args: {
|
|
@@ -3471,8 +3469,7 @@ import {
|
|
|
3471
3469
|
import { validateTypes as validateTypes2 } from "@ai-sdk/provider-utils";
|
|
3472
3470
|
async function prepareResponsesTools({
|
|
3473
3471
|
tools,
|
|
3474
|
-
toolChoice
|
|
3475
|
-
strictJsonSchema
|
|
3472
|
+
toolChoice
|
|
3476
3473
|
}) {
|
|
3477
3474
|
tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
|
|
3478
3475
|
const toolWarnings = [];
|
|
@@ -3488,7 +3485,7 @@ async function prepareResponsesTools({
|
|
|
3488
3485
|
name: tool.name,
|
|
3489
3486
|
description: tool.description,
|
|
3490
3487
|
parameters: tool.inputSchema,
|
|
3491
|
-
strict:
|
|
3488
|
+
...tool.strict != null ? { strict: tool.strict } : {}
|
|
3492
3489
|
});
|
|
3493
3490
|
break;
|
|
3494
3491
|
case "provider": {
|
|
@@ -3854,8 +3851,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3854
3851
|
toolWarnings
|
|
3855
3852
|
} = await prepareResponsesTools({
|
|
3856
3853
|
tools,
|
|
3857
|
-
toolChoice
|
|
3858
|
-
strictJsonSchema
|
|
3854
|
+
toolChoice
|
|
3859
3855
|
});
|
|
3860
3856
|
return {
|
|
3861
3857
|
webSearchToolName,
|
|
@@ -5331,7 +5327,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5331
5327
|
};
|
|
5332
5328
|
|
|
5333
5329
|
// src/version.ts
|
|
5334
|
-
var VERSION = true ? "3.0.0-beta.
|
|
5330
|
+
var VERSION = true ? "3.0.0-beta.79" : "0.0.0-test";
|
|
5335
5331
|
|
|
5336
5332
|
// src/openai-provider.ts
|
|
5337
5333
|
function createOpenAI(options = {}) {
|