karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.03k stars 111 forks source link

Plans to add DeepSeek API support? #333

Closed jamorphy closed 4 days ago

jamorphy commented 5 days ago

Or is OpenRouter the only possible way for now?

karthink commented 5 days ago

I hadn't heard of DeepSeek. From a cursory glance, it looks like it supports the OpenAI API, so you should already be able to use it with gptel.

Can you link me to the DeepSeek API reference page? When I try it asks me to create an account. I can provide more specific instructions if I can see the API docs.

jamorphy commented 4 days ago

I've been using it via openrouter but I'll try with the OpenAI format. The API docs are here: https://platform.deepseek.com/api-docs/

Thanks for your work on the package, it's great

karthink commented 4 days ago

Looks like it's as simple as

(gptel-make-openai "DeepSeek"
  :stream t
  :key "your-deepseek-api-key-or-function"
  :host "api.deepseek.com"
  :endpoint "/chat/completions"
  :models '("deepseek-chat" "deepseek-coder"))

Could you test this? If it works I can add it to the README.

jamorphy commented 4 days ago

Tested it, works as expected.

karthink commented 4 days ago

Thank you. Added instructions to the README.