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

feat: add claude-3-7-sonnet-20250219 #369

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

rmarescu
Copy link
Member

No description provided.

Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
shortest ⬜️ Ignored (Inspect) Feb 28, 2025 7:04am

@rmarescu
Copy link
Member Author

Adding support for Claude 3.7 is not as simple as I thought. Some things I've noticed so far:

  1. Vercel AI SDK (@ai-sdk/anthropic 1.1.12) doesn't yet support the new bash_20250124 tool that is required by the new model. I'll open a PR with them unless someone else does it before.

    {
      "type": "error",
      "error": {
        "type": "invalid_request_error",
        "message": "'claude-3-7-sonnet-20250219' does not support tool types: bash_20241022, text_editor_20241022. Did you mean one of bash_20250124, computer_20250124, text_editor_20250124?"
      }
    }
  2. The new computer_20250124 tool comes with new actions (vs computer_20241022), like: hold_key, left_mouse_down, left_mouse_up, triple_click, scroll, wait.

  3. Our BrowserActionEnum only supports the existing actions (expected), plus our own custom actions (like navigate, check_email, etc). Needs to support the new actions from computer_20250124

High-level, we need some sort of tools registry to handle this:

  • register all available tools supported (from providers and ours)
  • AIClient uses a single interface to access available tools, which are determined based on the selected config.ai.model
  • provide tool version-specific adapter that determines which actions are available for a given tool

@rmarescu
Copy link
Member Author

rmarescu commented Mar 1, 2025

For 1 I've created vercel/ai#5024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant