@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.87
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [53f3368]
|
|
8
|
+
- @ai-sdk/provider@3.0.0-beta.25
|
|
9
|
+
- @ai-sdk/provider-utils@4.0.0-beta.44
|
|
10
|
+
|
|
11
|
+
## 3.0.0-beta.86
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 0153bfa: fix(openai): fix parameter exclusion logic
|
|
16
|
+
|
|
3
17
|
## 3.0.0-beta.85
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1605,6 +1605,7 @@ var OpenAIEmbeddingModel = class {
|
|
|
1605
1605
|
fetch: this.config.fetch
|
|
1606
1606
|
});
|
|
1607
1607
|
return {
|
|
1608
|
+
warnings: [],
|
|
1608
1609
|
embeddings: response.data.map((item) => item.embedding),
|
|
1609
1610
|
usage: response.usage ? { tokens: response.usage.prompt_tokens } : void 0,
|
|
1610
1611
|
response: { headers: responseHeaders, body: rawValue }
|
|
@@ -3856,22 +3857,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3856
3857
|
}
|
|
3857
3858
|
}
|
|
3858
3859
|
};
|
|
3859
|
-
if (modelCapabilities.isReasoningModel
|
|
3860
|
-
if (
|
|
3861
|
-
baseArgs.temperature
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
baseArgs.top_p
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3860
|
+
if (modelCapabilities.isReasoningModel) {
|
|
3861
|
+
if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
3862
|
+
if (baseArgs.temperature != null) {
|
|
3863
|
+
baseArgs.temperature = void 0;
|
|
3864
|
+
warnings.push({
|
|
3865
|
+
type: "unsupported",
|
|
3866
|
+
feature: "temperature",
|
|
3867
|
+
details: "temperature is not supported for reasoning models"
|
|
3868
|
+
});
|
|
3869
|
+
}
|
|
3870
|
+
if (baseArgs.top_p != null) {
|
|
3871
|
+
baseArgs.top_p = void 0;
|
|
3872
|
+
warnings.push({
|
|
3873
|
+
type: "unsupported",
|
|
3874
|
+
feature: "topP",
|
|
3875
|
+
details: "topP is not supported for reasoning models"
|
|
3876
|
+
});
|
|
3877
|
+
}
|
|
3875
3878
|
}
|
|
3876
3879
|
} else {
|
|
3877
3880
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|
|
@@ -5401,7 +5404,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5401
5404
|
};
|
|
5402
5405
|
|
|
5403
5406
|
// src/version.ts
|
|
5404
|
-
var VERSION = true ? "3.0.0-beta.
|
|
5407
|
+
var VERSION = true ? "3.0.0-beta.87" : "0.0.0-test";
|
|
5405
5408
|
|
|
5406
5409
|
// src/openai-provider.ts
|
|
5407
5410
|
function createOpenAI(options = {}) {
|