@ai-sdk/openai 3.0.0-beta.25 → 3.0.0-beta.26
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 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +11 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +11 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2944,6 +2944,7 @@ var openaiResponsesProviderOptionsSchema = lazySchema15(
|
|
|
2944
2944
|
include: z17.array(
|
|
2945
2945
|
z17.enum([
|
|
2946
2946
|
"reasoning.encrypted_content",
|
|
2947
|
+
// handled internally by default, only needed for unknown reasoning models
|
|
2947
2948
|
"file_search_call.results",
|
|
2948
2949
|
"message.output_text.logprobs"
|
|
2949
2950
|
])
|
|
@@ -3196,7 +3197,11 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3196
3197
|
const strictJsonSchema = (_b = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _b : false;
|
|
3197
3198
|
let include = openaiOptions == null ? void 0 : openaiOptions.include;
|
|
3198
3199
|
function addInclude(key) {
|
|
3199
|
-
|
|
3200
|
+
if (include == null) {
|
|
3201
|
+
include = [key];
|
|
3202
|
+
} else if (!include.includes(key)) {
|
|
3203
|
+
include = [...include, key];
|
|
3204
|
+
}
|
|
3200
3205
|
}
|
|
3201
3206
|
function hasOpenAITool(id) {
|
|
3202
3207
|
return (tools == null ? void 0 : tools.find(
|
|
@@ -3216,6 +3221,10 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3216
3221
|
if (hasOpenAITool("openai.code_interpreter")) {
|
|
3217
3222
|
addInclude("code_interpreter_call.outputs");
|
|
3218
3223
|
}
|
|
3224
|
+
const store = openaiOptions == null ? void 0 : openaiOptions.store;
|
|
3225
|
+
if (store === false && modelConfig.isReasoningModel) {
|
|
3226
|
+
addInclude("reasoning.encrypted_content");
|
|
3227
|
+
}
|
|
3219
3228
|
const baseArgs = {
|
|
3220
3229
|
model: this.modelId,
|
|
3221
3230
|
input,
|
|
@@ -3243,7 +3252,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3243
3252
|
metadata: openaiOptions == null ? void 0 : openaiOptions.metadata,
|
|
3244
3253
|
parallel_tool_calls: openaiOptions == null ? void 0 : openaiOptions.parallelToolCalls,
|
|
3245
3254
|
previous_response_id: openaiOptions == null ? void 0 : openaiOptions.previousResponseId,
|
|
3246
|
-
store
|
|
3255
|
+
store,
|
|
3247
3256
|
user: openaiOptions == null ? void 0 : openaiOptions.user,
|
|
3248
3257
|
instructions: openaiOptions == null ? void 0 : openaiOptions.instructions,
|
|
3249
3258
|
service_tier: openaiOptions == null ? void 0 : openaiOptions.serviceTier,
|
|
@@ -4496,7 +4505,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4496
4505
|
};
|
|
4497
4506
|
|
|
4498
4507
|
// src/version.ts
|
|
4499
|
-
var VERSION = true ? "3.0.0-beta.
|
|
4508
|
+
var VERSION = true ? "3.0.0-beta.26" : "0.0.0-test";
|
|
4500
4509
|
|
|
4501
4510
|
// src/openai-provider.ts
|
|
4502
4511
|
function createOpenAI(options = {}) {
|