#57 addtion of o3
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Generated
+444
-464
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@ import { ChatCompletionCreateParamsNonStreaming } from 'openai/resources/chat/co
|
||||
* @returns
|
||||
*/
|
||||
export function fixeO1(model: string, data: ChatCompletionCreateParamsNonStreaming) {
|
||||
if (!model.startsWith('o1')) return data;
|
||||
if (!model.startsWith('o1') && !model.startsWith('o3')) return data;
|
||||
|
||||
if (data.max_tokens) {
|
||||
data.max_completion_tokens = data.max_tokens;
|
||||
|
||||
Reference in New Issue
Block a user