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
@@ -67,6 +68,7 @@ gptel uses Curl if available, but falls back to url-retrieve to work without ext
67
68
- [[#groq][Groq]]
68
69
- [[#openrouter][OpenRouter]]
69
70
- [[#privategpt][PrivateGPT]]
71
+
- [[#deepseek][DeepSeek]]
70
72
- [[#usage][Usage]]
71
73
- [[#in-any-buffer][In any buffer:]]
72
74
- [[#in-a-dedicated-chat-buffer][In a dedicated chat buffer:]]
@@ -595,6 +597,41 @@ The above code makes the backend available to select. If you want it to be the
595
597
596
598
#+end_src
597
599
600
+
#+html: </details>
601
+
#+html: <details><summary>
602
+
**** DeepSeek
603
+
#+html: </summary>
604
+
605
+
Register a backend with
606
+
#+begin_src emacs-lisp
607
+
;; DeepSeek offers an OpenAI compatible API
608
+
(gptel-make-openai "DeepSeek" ;Any name you want
609
+
:host "api.deepseek.com"
610
+
:endpoint "/chat/completions"
611
+
:stream t
612
+
:key "your-api-key" ;can be a function that returns the key
613
+
:models '("deepseek-chat" "deepseek-coder"))
614
+
615
+
#+end_src
616
+
617
+
You can pick this backend from the menu when using gptel (see [[#usage][Usage]]).
618
+
619
+
***** (Optional) Set as the default gptel backend
620
+
621
+
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.
622
+
#+begin_src emacs-lisp
623
+
;; OPTIONAL configuration
624
+
(setq gptel-model "deepseek-chat"
625
+
gptel-backend
626
+
(gptel-make-openai "DeepSeek" ;Any name you want
627
+
:host "api.deepseek.com"
628
+
:endpoint "/chat/completions"
629
+
:stream t
630
+
:key "your-api-key" ;can be a function that returns the key
0 commit comments