Make auto (undefined) actually work
| @@ -883,7 +883,7 @@ async function sendXaiRequest(request, response) { | ||
| 883 | 883 | bodyParams['stop'] = request.body.stop; |
| 884 | 884 | } |
| 885 | 885 | |
| 886 | 886 | if (request.body.reasoning_effort && ['grok-3-mini-beta', 'grok-3-mini-fast-beta'].includes(request.body.model)) { |
| 887 | 887 | bodyParams['reasoning_effort'] = request.body.reasoning_effort === 'high' ? 'high' : 'low'; |
| 888 | 888 | } |
| 889 | 889 | |
| @@ -1273,7 +1273,7 @@ router.post('/generate', function (request, response) { | ||
| 1273 | 1273 | } |
| 1274 | 1274 | |
| 1275 | 1275 | // A few of OpenAIs reasoning models support reasoning effort |
| 1276 | 1276 | if (request.body.reasoning_effort && [CHAT_COMPLETION_SOURCES.CUSTOM, CHAT_COMPLETION_SOURCES.OPENAI].includes(request.body.chat_completion_source)) { |
| 1277 | 1277 | if (['o1', 'o3-mini', 'o3-mini-2025-01-31', 'o4-mini', 'o4-mini-2025-04-16', 'o3', 'o3-2025-04-16'].includes(request.body.model)) { |
| 1278 | 1278 | bodyParams['reasoning_effort'] = request.body.reasoning_effort; |
| 1279 | 1279 | } |