0.9.244: "message":"Unauthorized" when using codestral autocomplete default configuration #3375
Open
3 tasks done
Labels
area:autocomplete
Relates to the auto complete feature
ide:vscode
Relates specifically to VS Code extension
kind:bug
Indicates an unexpected problem or unintended behavior
"needs-triage"
Before submitting your bug report
Relevant environment info
Description
By using default config.json with a codestral API key (not the general one), I get an error popup:
"message":"Unauthorized"
on each completion attempt:This can be fixed by adding:
"apiBase": "https://codestral.mistral.ai/v1"
to thetabAutocompleteModel
But according to documentation (https://docs.continue.dev/autocomplete/model-setup), I understand that i should set apiBase only when using the general API.
Here i understand that
https://codestral.mistral.ai/v1
is the default value when using codestral:https://github.com/continuedev/continue/blob/main/core/llm/llms/Mistral.ts#L23
But somehow, this does not seems to be taken into account.
I do not know if the code should be fixed to use it as default apiBase, or if the documentation should be modified to be more explicit about setting apiBase when using codestral
This make the default configuration not working out of the box.
This issue is not present in 0.9.241 and was introduced in 0.9.242.
(with 0.9.241, there is no need to set apiBase in tabAutocompleteModel)
To reproduce
Log output
The text was updated successfully, but these errors were encountered: