@ai-sdk/openai-compatible 3.0.0-beta.8 → 3.0.0-beta.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.
@@ -18,6 +18,7 @@ import {
18
18
  createJsonResponseHandler,
19
19
  FetchFunction,
20
20
  generateId,
21
+ isCustomReasoning,
21
22
  isParsableJson,
22
23
  parseProviderOptions,
23
24
  ParseResult,
@@ -119,6 +120,7 @@ export class OpenAICompatibleChatLanguageModel implements LanguageModelV4 {
119
120
  topK,
120
121
  frequencyPenalty,
121
122
  presencePenalty,
123
+ reasoning,
122
124
  providerOptions,
123
125
  stopSequences,
124
126
  responseFormat,
@@ -227,7 +229,11 @@ export class OpenAICompatibleChatLanguageModel implements LanguageModelV4 {
227
229
  ),
228
230
  ),
229
231
 
230
- reasoning_effort: compatibleOptions.reasoningEffort,
232
+ reasoning_effort:
233
+ compatibleOptions.reasoningEffort ??
234
+ (isCustomReasoning(reasoning) && reasoning !== 'none'
235
+ ? reasoning
236
+ : undefined),
231
237
  verbosity: compatibleOptions.textVerbosity,
232
238
 
233
239
  // messages: