@ai-sdk/openai 2.0.80 → 2.0.82
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 +13 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +11 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +11 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 2.0.82
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e31dfa4: feat(provider/openai): add support for OpenAI xhigh reasoning effort
|
|
8
|
+
|
|
9
|
+
## 2.0.81
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [ef6d784]
|
|
14
|
+
- @ai-sdk/provider-utils@3.0.19
|
|
15
|
+
|
|
3
16
|
## 2.0.80
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ declare const openaiChatLanguageModelOptions: _ai_sdk_provider_utils.LazyValidat
|
|
|
8
8
|
logprobs?: number | boolean | undefined;
|
|
9
9
|
parallelToolCalls?: boolean | undefined;
|
|
10
10
|
user?: string | undefined;
|
|
11
|
-
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | undefined;
|
|
11
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12
12
|
maxCompletionTokens?: number | undefined;
|
|
13
13
|
store?: boolean | undefined;
|
|
14
14
|
metadata?: Record<string, string> | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare const openaiChatLanguageModelOptions: _ai_sdk_provider_utils.LazyValidat
|
|
|
8
8
|
logprobs?: number | boolean | undefined;
|
|
9
9
|
parallelToolCalls?: boolean | undefined;
|
|
10
10
|
user?: string | undefined;
|
|
11
|
-
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | undefined;
|
|
11
|
+
reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
12
12
|
maxCompletionTokens?: number | undefined;
|
|
13
13
|
store?: boolean | undefined;
|
|
14
14
|
metadata?: Record<string, string> | undefined;
|
package/dist/index.js
CHANGED
|
@@ -449,7 +449,7 @@ var openaiChatLanguageModelOptions = (0, import_provider_utils4.lazyValidator)(
|
|
|
449
449
|
/**
|
|
450
450
|
* Reasoning effort for reasoning models. Defaults to `medium`.
|
|
451
451
|
*/
|
|
452
|
-
reasoningEffort: import_v43.z.enum(["none", "minimal", "low", "medium", "high"]).optional(),
|
|
452
|
+
reasoningEffort: import_v43.z.enum(["none", "minimal", "low", "medium", "high", "xhigh"]).optional(),
|
|
453
453
|
/**
|
|
454
454
|
* Maximum number of completion tokens to generate. Useful for reasoning models.
|
|
455
455
|
*/
|
|
@@ -2962,6 +2962,16 @@ var openaiResponsesProviderOptionsSchema = (0, import_provider_utils22.lazyValid
|
|
|
2962
2962
|
* @default 'in_memory'
|
|
2963
2963
|
*/
|
|
2964
2964
|
promptCacheRetention: import_v417.z.enum(["in_memory", "24h"]).nullish(),
|
|
2965
|
+
/**
|
|
2966
|
+
* Reasoning effort for reasoning models. Defaults to `medium`. If you use
|
|
2967
|
+
* `providerOptions` to set the `reasoningEffort` option, this model setting will be ignored.
|
|
2968
|
+
* Valid values: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'
|
|
2969
|
+
*
|
|
2970
|
+
* The 'none' type for `reasoningEffort` is only available for OpenAI's GPT-5.1
|
|
2971
|
+
* models. Also, the 'xhigh' type for `reasoningEffort` is only available for
|
|
2972
|
+
* OpenAI's GPT-5.1-Codex-Max model. Setting `reasoningEffort` to 'none' or 'xhigh' with unsupported models will result in
|
|
2973
|
+
* an error.
|
|
2974
|
+
*/
|
|
2965
2975
|
reasoningEffort: import_v417.z.string().nullish(),
|
|
2966
2976
|
reasoningSummary: import_v417.z.string().nullish(),
|
|
2967
2977
|
safetyIdentifier: import_v417.z.string().nullish(),
|
|
@@ -4541,7 +4551,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4541
4551
|
};
|
|
4542
4552
|
|
|
4543
4553
|
// src/version.ts
|
|
4544
|
-
var VERSION = true ? "2.0.
|
|
4554
|
+
var VERSION = true ? "2.0.82" : "0.0.0-test";
|
|
4545
4555
|
|
|
4546
4556
|
// src/openai-provider.ts
|
|
4547
4557
|
function createOpenAI(options = {}) {
|