fix: remove maxTokens for gpt-5 (#8843)

Co-authored-by: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com>
This commit is contained in:
Chandrapal Badshah
2025-10-06 20:55:20 +05:30
committed by GitHub
parent 736badb284
commit 76a55cdb54
2 changed files with 7 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ export const getModelParams = (config: any): ModelParams => {
if (modelId.startsWith("gpt-5")) {
params.temperature = undefined;
params.reasoningEffort = "minimal" as const;
params.maxTokens = undefined;
}
return params;