Fix errors with o1-preview and o1-mini

This commit is contained in:
user
2025-01-03 04:41:29 +00:00
parent 25ba8447d9
commit f522dba6a3
+1 -1
View File
@@ -235,7 +235,7 @@ function fixupMaxTokens(req: Request) {
}
function isO1Model(model: string): boolean {
return model === 'o1' || model.includes('o1-');
return model === 'o1' || model === 'o1-2024-12-17';
}
// most frontends don't currently support custom reasoning effort for o1