Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Anthropic default model from config if available #39

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

MattMorgis
Copy link
Contributor

I had this in my mcp_agent.config.yaml but my logs still indicated claude-3-5

# mcp_agent.config.yaml
anthropic:
  default_model: "claude-3-7-sonnet-latest"

Copy link
Collaborator

@saqadri saqadri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix @MattMorgis! I literally noticed this yesterday and had a fix in a private branch, so thanks for fixing :). Just requested a change to make it more robust (in the case that anthropic settings are defined but not default_model is specified, then it should still default to claude-3.7

@saqadri
Copy link
Collaborator

saqadri commented Mar 5, 2025

Amazing, thank you!!

@saqadri saqadri merged commit 5b0297b into lastmile-ai:main Mar 5, 2025
1 check passed
@MattMorgis MattMorgis deleted the fix-claude-default-model branch March 7, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants