You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -104,6 +105,7 @@ gptel uses Curl if available, but falls back to the built-in url-retrieve to wor
104
105
- [[#perplexity][Perplexity]]
105
106
- [[#anthropic-claude][Anthropic (Claude)]]
106
107
- [[#groq][Groq]]
108
+
- [[#mistral-le-chat][Mistral Le Chat]]
107
109
- [[#openrouter][OpenRouter]]
108
110
- [[#privategpt][PrivateGPT]]
109
111
- [[#deepseek][DeepSeek]]
@@ -603,6 +605,41 @@ The above code makes the backend available to select. If you want it to be the
603
605
#+html: </details>
604
606
605
607
#+html: <details><summary>
608
+
**** Mistral Le Chat
609
+
#+html: </summary>
610
+
611
+
Register a backend with
612
+
#+begin_src emacs-lisp
613
+
;; Mistral offers an OpenAI compatible API
614
+
(gptel-make-openai "MistralLeChat" ;Any name you want
615
+
:host "api.mistral.ai"
616
+
:endpoint "/v1/chat/completions"
617
+
:protocol "https"
618
+
:key "your-api-key" ;can be a function that returns the key
619
+
:models '("mistral-small"))
620
+
#+end_src
621
+
622
+
You can pick this backend from the menu when using gptel (see [[#usage][Usage]]).
623
+
624
+
***** (Optional) Set as the default gptel backend
625
+
626
+
The above code makes the backend available to select. If you want it to be the default backend for gptel, you can set this as the value of =gptel-backend=. Use this instead of the above.
627
+
#+begin_src emacs-lisp
628
+
;; OPTIONAL configuration
629
+
(setq gptel-model 'mistral-small
630
+
gptel-backend
631
+
(gptel-make-openai "MistralLeChat" ;Any name you want
632
+
:host "api.mistral.ai"
633
+
:endpoint "/v1/chat/completions"
634
+
:protocol "https"
635
+
:key "your-api-key" ;can be a function that returns the key
0 commit comments