converse-mcp-server 1.17.0 → 1.17.2
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/package.json +1 -1
- package/src/providers/openai.js +6 -2
package/package.json
CHANGED
package/src/providers/openai.js
CHANGED
|
@@ -404,8 +404,10 @@ export const openaiProvider = {
|
|
|
404
404
|
|
|
405
405
|
// Add reasoning effort for thinking models (o3 series and GPT-5 family)
|
|
406
406
|
if ((resolvedModel.startsWith('o3') || resolvedModel.startsWith('gpt-5')) && reasoning_effort) {
|
|
407
|
+
// GPT-5 Pro only supports 'high' reasoning effort
|
|
408
|
+
const effectiveEffort = resolvedModel === 'gpt-5-pro' ? 'high' : reasoning_effort;
|
|
407
409
|
requestPayload.reasoning = {
|
|
408
|
-
effort:
|
|
410
|
+
effort: effectiveEffort,
|
|
409
411
|
summary: 'auto' // Enable reasoning summaries
|
|
410
412
|
};
|
|
411
413
|
}
|
|
@@ -431,7 +433,9 @@ export const openaiProvider = {
|
|
|
431
433
|
|
|
432
434
|
// Add reasoning effort for thinking models (o3 series and GPT-5 family)
|
|
433
435
|
if ((resolvedModel.startsWith('o3') || resolvedModel.startsWith('gpt-5')) && reasoning_effort) {
|
|
434
|
-
|
|
436
|
+
// GPT-5 Pro only supports 'high' reasoning effort
|
|
437
|
+
const effectiveEffort = resolvedModel === 'gpt-5-pro' ? 'high' : reasoning_effort;
|
|
438
|
+
requestPayload.reasoning_effort = effectiveEffort;
|
|
435
439
|
}
|
|
436
440
|
|
|
437
441
|
// Add verbosity for GPT-5 models
|