@ai-sdk/openai 1.3.12 → 1.3.14
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 +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/internal/dist/index.d.mts +2 -1
- package/internal/dist/index.d.ts +2 -1
- package/internal/dist/index.js +3 -2
- package/internal/dist/index.js.map +1 -1
- package/internal/dist/index.mjs +3 -2
- package/internal/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/internal/dist/index.mjs
CHANGED
|
@@ -520,13 +520,13 @@ var OpenAIChatLanguageModel = class {
|
|
|
520
520
|
}
|
|
521
521
|
baseArgs.max_tokens = void 0;
|
|
522
522
|
}
|
|
523
|
-
} else if (this.modelId.startsWith("gpt-4o-search-preview")) {
|
|
523
|
+
} else if (this.modelId.startsWith("gpt-4o-search-preview") || this.modelId.startsWith("gpt-4o-mini-search-preview")) {
|
|
524
524
|
if (baseArgs.temperature != null) {
|
|
525
525
|
baseArgs.temperature = void 0;
|
|
526
526
|
warnings.push({
|
|
527
527
|
type: "unsupported-setting",
|
|
528
528
|
setting: "temperature",
|
|
529
|
-
details: "temperature is not supported for the
|
|
529
|
+
details: "temperature is not supported for the search preview models and has been removed."
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
532
|
}
|
|
@@ -2134,6 +2134,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
2134
2134
|
constructor(modelId, config) {
|
|
2135
2135
|
this.specificationVersion = "v1";
|
|
2136
2136
|
this.defaultObjectGenerationMode = "json";
|
|
2137
|
+
this.supportsStructuredOutputs = true;
|
|
2137
2138
|
this.modelId = modelId;
|
|
2138
2139
|
this.config = config;
|
|
2139
2140
|
}
|