mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-18 21:20:39 +01:00
Future-proofing
This commit is contained in:
parent
2b98e96784
commit
6180210170
@ -1107,7 +1107,7 @@ router.post('/generate', jsonParser, function (request, response) {
|
||||
...bodyParams,
|
||||
};
|
||||
|
||||
if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.OPENAI && String(requestBody.model).startsWith('o3-')) {
|
||||
if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.OPENAI && String(requestBody.model).startsWith('o3')) {
|
||||
delete requestBody.max_tokens;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user