From 568aa0b5e007730d00474f9fd9a705716cece02a Mon Sep 17 00:00:00 2001 From: richardclim <61879224+richardclim@users.noreply.github.com> Date: Wed, 26 Feb 2025 00:57:13 -0500 Subject: [PATCH] sonnet 3.7 update fix change temp to 1 if sonnet 3.7. otherwise use userSelection and removed top_k --- app/client/platforms/anthropic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/platforms/anthropic.ts b/app/client/platforms/anthropic.ts index 2cf1d852b..634dec0ea 100644 --- a/app/client/platforms/anthropic.ts +++ b/app/client/platforms/anthropic.ts @@ -189,10 +189,10 @@ export class ClaudeApi implements LLMApi { model: modelConfig.model, max_tokens: modelConfig.max_tokens, - temperature: modelConfig.temperature, + temperature: modelConfig.model === "claude-3-7-sonnet-20250219" ? 1 : modelConfig.temperature, top_p: modelConfig.top_p, // top_k: modelConfig.top_k, - top_k: 5, + // top_k: 5, thinking: { type: "enabled", budget_tokens: modelConfig.max_tokens - 1, // Default value from example