use sonnet 1022 by default

This commit is contained in:
Paul Gauthier 2024-10-22 10:09:35 -07:00
parent cfcb6656cb
commit 3c4dad7eb4
3 changed files with 3 additions and 2 deletions

View file

@ -58,7 +58,7 @@ def get_parser(default_config_files, git_root):
const=opus_model,
help=f"Use {opus_model} model for the main chat",
)
sonnet_model = "claude-3-5-sonnet-20240620"
sonnet_model = "anthropic/claude-3-5-sonnet-20241022"
group.add_argument(
"--sonnet",
action="store_const",

View file

@ -575,7 +575,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
if not args.model:
args.model = "gpt-4o-2024-08-06"
if os.environ.get("ANTHROPIC_API_KEY"):
args.model = "claude-3-5-sonnet-20240620"
args.model = "anthropic/claude-3-5-sonnet-20241022"
main_model = models.Model(
args.model,

View file

@ -56,6 +56,7 @@ claude-3-haiku-20240307
claude-3-opus-20240229
claude-3-sonnet-20240229
claude-3-5-sonnet-20240620
claude-3-5-sonnet-20241022
"""
ANTHROPIC_MODELS = [ln.strip() for ln in ANTHROPIC_MODELS.splitlines() if ln.strip()]