Skip to content

Commit f79c9d0

Browse files
authored
README: Instructions for Mistral Le Chat (#766)
README.org: Add instructions for Mistral Le Chat, addressing issue #703.
1 parent 4b505e7 commit f79c9d0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

README.org

+37
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gptel is a simple Large Language Model chat client for Emacs, with support for m
2121
| Kagi Summarizer | ✓ | [[https://kagi.com/settings?p=api][API key]] |
2222
| Azure | ✓ | Deployment and API key |
2323
| Groq | ✓ | [[https://console.groq.com/keys][API key]] |
24+
| Mistral Le Chat | ✓ | [[https://console.mistral.ai/api-keys][API key]] |
2425
| Perplexity | ✓ | [[https://docs.perplexity.ai/docs/getting-started][API key]] |
2526
| OpenRouter | ✓ | [[https://openrouter.ai/keys][API key]] |
2627
| together.ai | ✓ | [[https://api.together.xyz/settings/api-keys][API key]] |
@@ -104,6 +105,7 @@ gptel uses Curl if available, but falls back to the built-in url-retrieve to wor
104105
- [[#perplexity][Perplexity]]
105106
- [[#anthropic-claude][Anthropic (Claude)]]
106107
- [[#groq][Groq]]
108+
- [[#mistral-le-chat][Mistral Le Chat]]
107109
- [[#openrouter][OpenRouter]]
108110
- [[#privategpt][PrivateGPT]]
109111
- [[#deepseek][DeepSeek]]
@@ -603,6 +605,41 @@ The above code makes the backend available to select. If you want it to be the
603605
#+html: </details>
604606

605607
#+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
636+
:models '("mistral-small")))
637+
#+end_src
638+
639+
#+html: </details>
640+
641+
#+html: <details><summary>
642+
606643
**** OpenRouter
607644
#+html: </summary>
608645

0 commit comments

Comments
 (0)