chathub-dev / chathub

All-in-one chatbot client
https://chathub.gg/?utm_source=github
GNU General Public License v3.0
9.97k stars 1.02k forks source link

Claude API max_tokens error #1222

Closed SimbaAowhoo closed 3 months ago

SimbaAowhoo commented 3 months ago

Describe the bug I'm encountering an error when using my own Claude API key. The error message is:

400 {"type":"error","error":{"type":"invalid_request_error","message":"max_tokens: 32000 > 4096, which is the maximum allowed number of output tokens for claude-3-opus-20240229"}}

The Claude API was working fine last month, but this error started recently. I'm currently able to use the GPT API without any issues. I have tried the following troubleshooting steps but they did not resolve the issue:

Desktop (please complete the following information):

wong2 commented 3 months ago

I have submitted a fix, please wait a few hours.

wong2 commented 3 months ago

Fixed in v3.23.3, please upgrade.