Theia AI - Codestral issue #17331
-
DiscussionDear all, { A priori, I have my key for codestral is valid because when I test it directly. I get an answer to the next request : curl -X POST https://codestral.mistral.ai/v1/chat/completions But when I asked the Coder agent a question in the chat window, I got a 504 error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @sgerard-irtjv, thanks for starting this discussion! 👋 The Theia community will take a look soon. In the meantime, you might find helpful information in: 💙 Eclipse Theia is built and maintained by a community of contributors and sponsors. If Theia is valuable to your work, consider sponsoring the project. For professional support, training, or consulting services, learn more about available options. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @sgerard-irtjv, thanks for bringing this up! The likely cause is the 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",
"developerMessageSettings": "user"
}If the 504 persists after that, could you share the backend logs? You'll find them in the terminal where you started Theia (browser app) or in the Electron main process output. Starting with |
Beta Was this translation helpful? Give feedback.
Hi @sgerard-irtjv, thanks for bringing this up!
The likely cause is the
urlin your config. Theia uses it as the base URL for the OpenAI client, which appends/chat/completionsitself. So your requests end up going tohttps://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…