@ai-sdk/openai 3.0.0-beta.85 → 3.0.0-beta.87
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 +14 -0
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -17
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +19 -16
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +19 -16
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1612,6 +1612,7 @@ var OpenAIEmbeddingModel = class {
|
|
|
1612
1612
|
fetch: this.config.fetch
|
|
1613
1613
|
});
|
|
1614
1614
|
return {
|
|
1615
|
+
warnings: [],
|
|
1615
1616
|
embeddings: response.data.map((item) => item.embedding),
|
|
1616
1617
|
usage: response.usage ? { tokens: response.usage.prompt_tokens } : void 0,
|
|
1617
1618
|
response: { headers: responseHeaders, body: rawValue }
|
|
@@ -3922,22 +3923,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3922
3923
|
}
|
|
3923
3924
|
}
|
|
3924
3925
|
};
|
|
3925
|
-
if (modelCapabilities.isReasoningModel
|
|
3926
|
-
if (
|
|
3927
|
-
baseArgs.temperature
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
baseArgs.top_p
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3926
|
+
if (modelCapabilities.isReasoningModel) {
|
|
3927
|
+
if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
3928
|
+
if (baseArgs.temperature != null) {
|
|
3929
|
+
baseArgs.temperature = void 0;
|
|
3930
|
+
warnings.push({
|
|
3931
|
+
type: "unsupported",
|
|
3932
|
+
feature: "temperature",
|
|
3933
|
+
details: "temperature is not supported for reasoning models"
|
|
3934
|
+
});
|
|
3935
|
+
}
|
|
3936
|
+
if (baseArgs.top_p != null) {
|
|
3937
|
+
baseArgs.top_p = void 0;
|
|
3938
|
+
warnings.push({
|
|
3939
|
+
type: "unsupported",
|
|
3940
|
+
feature: "topP",
|
|
3941
|
+
details: "topP is not supported for reasoning models"
|
|
3942
|
+
});
|
|
3943
|
+
}
|
|
3941
3944
|
}
|
|
3942
3945
|
} else {
|
|
3943
3946
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|
|
@@ -5479,7 +5482,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5479
5482
|
};
|
|
5480
5483
|
|
|
5481
5484
|
// src/version.ts
|
|
5482
|
-
var VERSION = true ? "3.0.0-beta.
|
|
5485
|
+
var VERSION = true ? "3.0.0-beta.87" : "0.0.0-test";
|
|
5483
5486
|
|
|
5484
5487
|
// src/openai-provider.ts
|
|
5485
5488
|
function createOpenAI(options = {}) {
|