Skip to content
Discussion options

You must be logged in to vote

Hi @sgerard-irtjv, thanks for bringing this up!

The likely cause is the url in your config. Theia uses it as the base URL for the OpenAI client, which appends /chat/completions itself. So your requests end up going to https://codestral.mistral.ai/v1/chat/completions/chat/completions.

Could you try using just the base URL?

{
    "model": "codestral-latest",
    "url": "https://codestral.mistral.ai/v1",
    "id": "Codestral-latest-chat",
    "apiKey": "mykeytocodestral",
    "developerMessageSettings": "user"
},
{
    "model": "codestral-latest",
    "url": "https://codestral.mistral.ai/v1",
    "id": "Codestral-latest-completion",
    "apiKey": "mykeytocodestral",
    "developerMessageSett…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sgerard-irtjv
Comment options

Answer selected by sgerard-irtjv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants