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

Cannot use Claude models #889

Open
devictang opened this issue Dec 24, 2024 · 1 comment
Open

Cannot use Claude models #889

devictang opened this issue Dec 24, 2024 · 1 comment

Comments

@devictang
Copy link

Describe the bug

I have paid credits in my claude account, after I input Claude key in .env file, it is still not working when I choose to use Claude model in bolt.diy

Link to the Bolt URL that caused the error

http://localhost:5173/chat/27

Steps to reproduce

  1. Go to bolt.diy
  2. Choose Claude 3.5 Sonnet model (new or old)
  3. Type a prompt
  4. Submit

Expected behavior

Starts running and give me response

Screen Recording / Screenshot

螢幕截圖 2024-12-24 下午6 55 35 螢幕截圖 2024-12-24 下午6 59 27

Platform

  • OS: macOS
  • Browser: Arc

Provider Used

Native without docker (pnpm run dev)

Model Used

Claude 3.5 Sonnet

Additional context

No response

@leex279
Copy link

leex279 commented Dec 25, 2024

Hi,

did you test with a simple curl to verify your anthropic key etc. is working well?

curl https://api.anthropic.com/v1/messages \ -H "Content-Type: application/json" \ -H "X-API-Key: my_api_key" \ -d '{ "model": "claude-3-5-sonnet-20241022", "max_tokens": 8192, "temperature": 0, "messages": [] }'

If e.g. test it I get an error because I dont have balance/credits. maybe you get another error.

{"type":"error","error":{"type":"invalid_request_error","message":"Your credit balance is too low to access the Anthro pic API. Please go to Plans & Billing to upgrade or purchase credits."}}

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

No branches or pull requests

2 participants