mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
refactor(anthropic): improve model version detection using regex pattern
This commit is contained in:
@@ -41,7 +41,7 @@ export class AnthropicEngine implements AiEngine {
|
||||
};
|
||||
|
||||
// add top_p for non-4.5 models
|
||||
if (!params.model.includes('-4-5') || !params.model.includes('claude')) {
|
||||
if (!/claude.*-4-5/.test(params.model)) {
|
||||
params.top_p = 0.1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user