Skip to content

Commit

Permalink
🧠 Add claude 3.7 alias (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
dexhunter authored Feb 26, 2025
1 parent b606518 commit 67fa666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aide/backend/backend_anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
)

ANTHROPIC_MODEL_ALIASES = {
"claude-3.5-sonnet": "claude-3-sonnet-20241022",
"claude-3.5-sonnet": "claude-3-5-sonnet-20241022",
"claude-3.7-sonnet": "claude-3-7-sonnet-20250219",
}


Expand Down Expand Up @@ -49,6 +50,8 @@ def query(

if model_name in ANTHROPIC_MODEL_ALIASES:
model_name = ANTHROPIC_MODEL_ALIASES[model_name]
filtered_kwargs["model"] = model_name
logger.debug(f"Using aliased model name: {model_name}")

if func_spec is not None and func_spec.name == "submit_review":
filtered_kwargs["tools"] = [func_spec.as_anthropic_tool_dict]
Expand Down

0 comments on commit 67fa666

Please sign in to comment.