| 1273 | } | 1273 | } |
| 1274 | | 1274 | |
| 1275 | // A few of OpenAIs reasoning models support reasoning effort | 1275 | // A few of OpenAIs reasoning models support reasoning effort |
| 1276 | if ([CHAT_COMPLETION_SOURCES.CUSTOM, CHAT_COMPLETION_SOURCES.OPENAI].includes(request.body.chat_completion_source)) { | 1276 | if (request.body.reasoning_effort && [CHAT_COMPLETION_SOURCES.CUSTOM, CHAT_COMPLETION_SOURCES.OPENAI].includes(request.body.chat_completion_source)) { |
| 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)) { | 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 | bodyParams['reasoning_effort'] = request.body.reasoning_effort; | 1278 | bodyParams['reasoning_effort'] = request.body.reasoning_effort; |
| 1279 | } | 1279 | } |