mattermost / mattermost-plugin-ai

Mattermost Copilot plugin supporting multiple LLMs
https://mattermost.com/copilot
Apache License 2.0
137 stars 31 forks source link

Integration with mistral ? #250

Open txfab opened 1 month ago

txfab commented 1 month ago

Hello Guys !

I'm trying to integrate mistral with copilot. Trying to put the

I have in my logs the message : { "caller": "app/plugin_api.go:1011", "error": "error, status code: 401, message: %!s()", "level": "error", "msg": "Streaming result to post failed partway", "plugin_id": "mattermost-ai", "timestamp": "2024-10-07 17:32:58.768 +08:00" }

I then tried to put

But still same, has anyone done it before?

Thank you!

azigler commented 1 month ago

What is the base URL you are using for the model's address? I believe it needs to end with /v1 to work as an OpenAI API-compatible service.

txfab commented 1 month ago

Hi @azigler

actually I used : https://api.mistral.ai/v1/chat/completions I gave a try with : https://api.mistral.ai/v1/

but it gave the same error message.

2024-10-14_10-14-29

Thank you