@ai-sdk/openai 2.0.0-canary.8 → 2.0.0-canary.9
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +3 -2
- package/dist/internal/index.d.ts +3 -2
- package/dist/internal/index.js +4 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -515,13 +515,13 @@ var OpenAIChatLanguageModel = class {
|
|
|
515
515
|
}
|
|
516
516
|
baseArgs.max_tokens = void 0;
|
|
517
517
|
}
|
|
518
|
-
} else if (this.modelId.startsWith("gpt-4o-search-preview")) {
|
|
518
|
+
} else if (this.modelId.startsWith("gpt-4o-search-preview") || this.modelId.startsWith("gpt-4o-mini-search-preview")) {
|
|
519
519
|
if (baseArgs.temperature != null) {
|
|
520
520
|
baseArgs.temperature = void 0;
|
|
521
521
|
warnings.push({
|
|
522
522
|
type: "unsupported-setting",
|
|
523
523
|
setting: "temperature",
|
|
524
|
-
details: "temperature is not supported for the
|
|
524
|
+
details: "temperature is not supported for the search preview models and has been removed."
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
}
|
|
@@ -908,7 +908,7 @@ var openaiChatChunkSchema = z3.union([
|
|
|
908
908
|
openaiErrorDataSchema
|
|
909
909
|
]);
|
|
910
910
|
function isReasoningModel(modelId) {
|
|
911
|
-
return modelId
|
|
911
|
+
return modelId.startsWith("o");
|
|
912
912
|
}
|
|
913
913
|
function isAudioModel(modelId) {
|
|
914
914
|
return modelId.startsWith("gpt-4o-audio-preview");
|
|
@@ -1958,6 +1958,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
1958
1958
|
constructor(modelId, config) {
|
|
1959
1959
|
this.specificationVersion = "v2";
|
|
1960
1960
|
this.defaultObjectGenerationMode = "json";
|
|
1961
|
+
this.supportsStructuredOutputs = true;
|
|
1961
1962
|
this.modelId = modelId;
|
|
1962
1963
|
this.config = config;
|
|
1963
1964
|
}
|