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

Co-authored-by: Chandrapal Badshah <Chan9390@users.noreply.github.com>
This commit is contained in:
Prowler Bot
2025-10-07 10:26:54 +02:00
committed by GitHub
parent bf7e363415
commit c66ef6b4db
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -3,6 +3,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
+2 -1
View File
@@ -60,7 +60,8 @@ export const getModelParams = (config: any): ModelParams => {
if (modelId.startsWith("gpt-5")) {
params.temperature = undefined;
params.reasoningEffort = "minimal";
params.reasoningEffort = "minimal" as const;
params.maxTokens = undefined;
}
return params;