From 7ece291d9a8aabb4bfaaada4c252d76273b571e9 Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Fri, 9 Jan 2026 17:39:30 +0300 Subject: [PATCH] fix anthropic api issue --- internal/models/providers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/models/providers.go b/internal/models/providers.go index 4f2caedc..6a337f65 100644 --- a/internal/models/providers.go +++ b/internal/models/providers.go @@ -335,7 +335,7 @@ func createAnthropicProvider(ctx context.Context, config *ProviderConfig, modelN claudeConfig.Temperature = config.Temperature } - if config.TopP != nil { + if config.TopP != nil && *config.TopP != 0.95 { claudeConfig.TopP = config.TopP }