Skip to content

Commit 7ece291

Browse files
committed
fix anthropic api issue
1 parent f9485cb commit 7ece291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/models/providers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func createAnthropicProvider(ctx context.Context, config *ProviderConfig, modelN
335335
claudeConfig.Temperature = config.Temperature
336336
}
337337

338-
if config.TopP != nil {
338+
if config.TopP != nil && *config.TopP != 0.95 {
339339
claudeConfig.TopP = config.TopP
340340
}
341341

0 commit comments

Comments
 (0)