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

[Bug]: unauthorized error with codestral api #4232

Closed
guyomes opened this issue Jun 17, 2024 · 4 comments
Closed

[Bug]: unauthorized error with codestral api #4232

guyomes opened this issue Jun 17, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@guyomes
Copy link

guyomes commented Jun 17, 2024

What happened?

The codestral api has changed. The free tier doesn't work with "https://api.mistral.ai". The endpoint should now be:
"https://codestral.mistral.ai"

The documentation also recommends "If you're building a plugin, or anything that exposes these endpoints directly to the user, and expect them to bring their own API keys, you should also target codestral.mistral.ai"
https://docs.mistral.ai/capabilities/code_generation/

Thank you for this great tool.

Relevant log output

No response

Twitter / LinkedIn details

No response

@guyomes guyomes added the bug Something isn't working label Jun 17, 2024
@ishaan-jaff
Copy link
Contributor

doing this today

@ishaan-jaff ishaan-jaff self-assigned this Jun 17, 2024
@ishaan-jaff
Copy link
Contributor

@guyomes we now support codestral API, live on main-latest: https://docs.litellm.ai/docs/providers/codestral

@ishaan-jaff
Copy link
Contributor

@guyomes any chance we can hop on a call ? I'd love to learn how how we can improve litellm for you.

Sharing a link to my cal for your convenience: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat
If you prefer DMs i'm also sharing a link to my linkedin: https://www.linkedin.com/in/reffajnaahsi/

@guyomes
Copy link
Author

guyomes commented Jun 25, 2024

Thank you for the patch. Is it also possible to update this file with the new codestral/codestral-latest provider and model:
https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants