@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/index.mjs
CHANGED
|
@@ -521,13 +521,13 @@ var OpenAIChatLanguageModel = class {
|
|
|
521
521
|
}
|
|
522
522
|
baseArgs.max_tokens = void 0;
|
|
523
523
|
}
|
|
524
|
-
} else if (this.modelId.startsWith("gpt-4o-search-preview")) {
|
|
524
|
+
} else if (this.modelId.startsWith("gpt-4o-search-preview") || this.modelId.startsWith("gpt-4o-mini-search-preview")) {
|
|
525
525
|
if (baseArgs.temperature != null) {
|
|
526
526
|
baseArgs.temperature = void 0;
|
|
527
527
|
warnings.push({
|
|
528
528
|
type: "unsupported-setting",
|
|
529
529
|
setting: "temperature",
|
|
530
|
-
details: "temperature is not supported for the
|
|
530
|
+
details: "temperature is not supported for the search preview models and has been removed."
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -914,7 +914,7 @@ var openaiChatChunkSchema = z3.union([
|
|
|
914
914
|
openaiErrorDataSchema
|
|
915
915
|
]);
|
|
916
916
|
function isReasoningModel(modelId) {
|
|
917
|
-
return modelId
|
|
917
|
+
return modelId.startsWith("o");
|
|
918
918
|
}
|
|
919
919
|
function isAudioModel(modelId) {
|
|
920
920
|
return modelId.startsWith("gpt-4o-audio-preview");
|
|
@@ -1881,6 +1881,7 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
1881
1881
|
constructor(modelId, config) {
|
|
1882
1882
|
this.specificationVersion = "v2";
|
|
1883
1883
|
this.defaultObjectGenerationMode = "json";
|
|
1884
|
+
this.supportsStructuredOutputs = true;
|
|
1884
1885
|
this.modelId = modelId;
|
|
1885
1886
|
this.config = config;
|
|
1886
1887
|
}
|