Skip to content

Commit 74fff28

Browse files
committed
refactor(anthropic): improve model version detection using regex pattern
1 parent a0dc1c8 commit 74fff28

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') || !params.model.includes('claude')) {
44+
if (!/claude.*-4-5/.test(params.model)) {
4545
params.top_p = 0.1;
4646
}
4747

0 commit comments

Comments
 (0)