tak-bro / aicommit2

A Reactive CLI that generates git commit messages with Ollama, ChatGPT, Gemini, Claude, Mistral and other AI
https://www.npmjs.com/package/aicommit2
MIT License
77 stars 4 forks source link

Support new Claude 3 models #30

Closed ryicoh closed 2 months ago

ryicoh commented 2 months ago

Feature request

Support new Claude 3 models: Haiku, Sonnet, Opus.

claude-2.1 is a legecy model.

https://www.anthropic.com/api

Why?

New models has more inteligence and lower cost.

Alternatives

No response

Additional context

No response

tak-bro commented 2 months ago

@ryicoh thanks for your interest. I updated the code to support the claude3 model. It support from version 1.8.4. Please upgrade aicommit2 and take a look at this docs.

ryicoh commented 2 months ago

Thank you so much.

I've confirmed that the Haiku is set as the default now.

$ aicommit2 config get ANTHROPIC_MODEL
ANTHROPIC_MODEL=claude-3-haiku-20240307