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

@@ -28,6 +28,12 @@ All notable changes to the **Prowler UI** are documented in this file.
---
## [1.12.4] (Prowler v5.12.4)
### 🐞 Fixed
- Remove maxTokens model param for GPT-5 models [(#8843)](https://github.com/prowler-cloud/prowler/pull/8843)
## [1.12.3] (Prowler v5.12.3)
### 🐞 Fixed

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;