@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/dist/index.mjs
CHANGED
|
@@ -444,7 +444,7 @@ var openaiChatLanguageModelOptions = lazyValidator2(
|
|
|
444
444
|
/**
|
|
445
445
|
* Reasoning effort for reasoning models. Defaults to `medium`.
|
|
446
446
|
*/
|
|
447
|
-
reasoningEffort: z3.enum(["none", "minimal", "low", "medium", "high"]).optional(),
|
|
447
|
+
reasoningEffort: z3.enum(["none", "minimal", "low", "medium", "high", "xhigh"]).optional(),
|
|
448
448
|
/**
|
|
449
449
|
* Maximum number of completion tokens to generate. Useful for reasoning models.
|
|
450
450
|
*/
|
|
@@ -3033,6 +3033,16 @@ var openaiResponsesProviderOptionsSchema = lazyValidator9(
|
|
|
3033
3033
|
* @default 'in_memory'
|
|
3034
3034
|
*/
|
|
3035
3035
|
promptCacheRetention: z17.enum(["in_memory", "24h"]).nullish(),
|
|
3036
|
+
/**
|
|
3037
|
+
* Reasoning effort for reasoning models. Defaults to `medium`. If you use
|
|
3038
|
+
* `providerOptions` to set the `reasoningEffort` option, this model setting will be ignored.
|
|
3039
|
+
* Valid values: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'
|
|
3040
|
+
*
|
|
3041
|
+
* The 'none' type for `reasoningEffort` is only available for OpenAI's GPT-5.1
|
|
3042
|
+
* models. Also, the 'xhigh' type for `reasoningEffort` is only available for
|
|
3043
|
+
* OpenAI's GPT-5.1-Codex-Max model. Setting `reasoningEffort` to 'none' or 'xhigh' with unsupported models will result in
|
|
3044
|
+
* an error.
|
|
3045
|
+
*/
|
|
3036
3046
|
reasoningEffort: z17.string().nullish(),
|
|
3037
3047
|
reasoningSummary: z17.string().nullish(),
|
|
3038
3048
|
safetyIdentifier: z17.string().nullish(),
|
|
@@ -4632,7 +4642,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4632
4642
|
};
|
|
4633
4643
|
|
|
4634
4644
|
// src/version.ts
|
|
4635
|
-
var VERSION = true ? "2.0.
|
|
4645
|
+
var VERSION = true ? "2.0.82" : "0.0.0-test";
|
|
4636
4646
|
|
|
4637
4647
|
// src/openai-provider.ts
|
|
4638
4648
|
function createOpenAI(options = {}) {
|