Open RomneyDa opened 1 day ago
Same issue happening to me. I will paste here my logs and config.json if it helps:
Log Output
[Extension Host] Error handling webview message: {
"msg": {
"messageId": "f4f6092f-33ff-462b-b1ca-343aa95ae1be",
"messageType": "llm/streamChat",
"data": {
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "please help me with my first golang project"
}
]
},
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "Of course, I'd be happy to help you..."
}
]
},
{
"role": "user",
"content": [
{
"type": "text",
"text": "hi"
}
]
}
],
"title": "Codestral",
"completionOptions": {}
}
}
}
Error: HTTP 422 Unprocessable Entity from https://codestral.mistral.ai/v1/chat/completions
{"object":"error","message":{"detail":[{"type":"extra_forbidden","loc":["body","messages",1,"assistant","references"],"msg":"Extra inputs are not permitted","input":null}]},"type":"invalid_request_error","param":null,"code":null}
Config.json
{
"models": [
{
"title": "Codestral",
"provider": "mistral",
"model": "codestral-latest",
"apiKey": "[API_KEY]",
"apiBase": "https://codestral.mistral.ai/v1/"
}
],
"tabAutocompleteModel": {
"title": "Codestral",
"provider": "mistral",
"model": "codestral-latest",
"apiKey": "[API_KEY]",
"apiBase": "https://codestral.mistral.ai/v1/"
}
}
Before submitting your bug report
Relevant environment info
Description
No response
To reproduce
Use configs above
Log output