Future-proofing
| @@ -1107,7 +1107,7 @@ router.post('/generate', jsonParser, function (request, response) { | |||
| 1107 | ...bodyParams, | 1107 | ...bodyParams, |
| 1108 | }; | 1108 | }; |
| 1109 | 1109 | ||
| 1110 | if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.OPENAI && String(requestBody.model).startsWith('o3-')) { | 1110 | if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.OPENAI && String(requestBody.model).startsWith('o3')) { |
| 1111 | delete requestBody.max_tokens; | 1111 | delete requestBody.max_tokens; |
| 1112 | } | 1112 | } |
| 1113 | 1113 | ||