Skip to content

Commit a0dc1c8

Browse files
committed
fix(anthropic): correct model detection logic to properly identify Claude 4.5 models
1 parent d65547d commit a0dc1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/anthropic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class AnthropicEngine implements AiEngine {
4141
};
4242

4343
// add top_p for non-4.5 models
44-
if (!params.model.includes('-4-5')) {
44+
if (!params.model.includes('-4-5') || !params.model.includes('claude')) {
4545
params.top_p = 0.1;
4646
}
4747

0 commit comments

Comments
 (0)