From 74fff2861b60e53dbffa7037a4792046a2f9a65a Mon Sep 17 00:00:00 2001 From: municorn Date: Wed, 22 Oct 2025 08:33:33 -0600 Subject: [PATCH] refactor(anthropic): improve model version detection using regex pattern --- src/engine/anthropic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/anthropic.ts b/src/engine/anthropic.ts index 1543efa..8c7d4c5 100644 --- a/src/engine/anthropic.ts +++ b/src/engine/anthropic.ts @@ -41,7 +41,7 @@ export class AnthropicEngine implements AiEngine { }; // add top_p for non-4.5 models - if (!params.model.includes('-4-5') || !params.model.includes('claude')) { + if (!/claude.*-4-5/.test(params.model)) { params.top_p = 0.1; }