From c66ef6b4db237bd3f9026de05092543c8adc4079 Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Tue, 7 Oct 2025 10:26:54 +0200 Subject: [PATCH] fix: remove maxTokens for gpt-5 (#8857) Co-authored-by: Chandrapal Badshah --- ui/CHANGELOG.md | 6 ++++++ ui/lib/lighthouse/utils.ts | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index 4e17efd6b8..66594f5f9a 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -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 diff --git a/ui/lib/lighthouse/utils.ts b/ui/lib/lighthouse/utils.ts index 78f760c8c7..c6ec19d9f4 100644 --- a/ui/lib/lighthouse/utils.ts +++ b/ui/lib/lighthouse/utils.ts @@ -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;