Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip for getting gptel to work with Mistral Le Chat #703

Open
mok0 opened this issue Mar 14, 2025 · 1 comment
Open

Tip for getting gptel to work with Mistral Le Chat #703

mok0 opened this issue Mar 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@mok0
Copy link

mok0 commented Mar 14, 2025

After a bunch of trial and error I found the following config allows me to connect to Le Chat using gptel.

(setq gptel-model 'mistral-small)

(setq gptel-backend
	  (gptel-make-openai "MistralLeChat"
            :host "api.mistral.ai/v1"
	    :endpoint "/chat/completions"
            :protocol "https"
            :key (get-mistral-api-key)
            :models '("mistral-small")))

The function get-mistral-api-key() simply does that, gets my personal API key as a string.

As far as I can see Mistral is not mentioned in the docs, but it works fine.

@mok0 mok0 added the enhancement New feature or request label Mar 14, 2025
@karthink
Copy link
Owner

@mok0 Thanks! I didn't even know you could access Mistral directly. Would you consider adding a section in the README about this configuration? You can copy one of the other sections, like Groq, and modify that.

karthink pushed a commit that referenced this issue Apr 7, 2025
README.org: Add instructions for Mistral Le Chat,
 addressing issue #703.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants