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

DeepSeek integration in GPT menu #1140

Open
sigurd4 opened this issue Feb 28, 2025 · 17 comments
Open

DeepSeek integration in GPT menu #1140

sigurd4 opened this issue Feb 28, 2025 · 17 comments
Labels
FEATURE Feature advice/request

Comments

@sigurd4
Copy link

sigurd4 commented Feb 28, 2025

What would you like to be added?

Adding DeepSeek-V3 and DeepSeek-R1 to the GPT section of the sidebar.

How will it help?

DeepSeek-V3 and DeepSeek-R1 are a pretty good LLMs.

Extra info

DeepSeek's API should be perfectly compatible with other GPT API's.

I tried to add this myself by adding the following under sidebar/ai/extraGptModels:

'deepseek-v3': {
    'name': 'DeepSeek-V3',
    'logo_name': 'ai-deepseek-symbolic',
    'description': 'DeepSeek-V3, a strong Mixture-of-Experts (MoE) language model.',
    'base_url': 'https://api.deepseek.com/v1/chat/completions',
    'key_get_url': 'https://platform.deepseek.com/api_keys',
    'key_file': 'deepseek_key.txt',
    'model': 'deepseek-chat',
},
'deepseek-r1': {
    'name': 'DeepSeek-R1',
    'logo_name': 'ai-deepseek-symbolic',
    'description': 'DeepSeek-R1, DeepSeekAI\'s first-generation reasoning model.',
    'base_url': 'https://api.deepseek.com/v1/chat/completions',
    'key_get_url': 'https://platform.deepseek.com/api_keys',
    'key_file': 'deepseek_key.txt',
    'model': 'deepseek-reasoner',
},

Had to edit the default user_options.js that gets overwritten with each update, since it didn't work if i did it in the actual user-defined user_options.js.

But this results in an error when prompting:

Image

I'm not sure if this is a client-side error, but if i call the deepseek API normally with curl that works fine. Any help would be appreciated, as well as maybe adding this to the dotfile default options would probably be nice.

@sigurd4 sigurd4 added the FEATURE Feature advice/request label Feb 28, 2025
@sigurd4
Copy link
Author

sigurd4 commented Feb 28, 2025

As for the icon file, i think this one works nicely: https://api-docs.deepseek.com/img/favicon.svg

@enessmr
Copy link

enessmr commented Feb 28, 2025

Make a SVG without color instead. Icons are somewhere at . config/ags/(i forgot name of the dir probably assets.) /.

@sigurd4
Copy link
Author

sigurd4 commented Mar 2, 2025

I did this, and the icon works fine. What does not work seems to maybe be the API call (not sure)

@enessmr
Copy link

enessmr commented Mar 4, 2025

I did this, and the icon works fine. What does not work seems to maybe be the API call (not sure)

Your api call is INVALID

@x4132
Copy link

x4132 commented Mar 7, 2025

your base url should be https://api.deepseek.com/v1 not the completions endpoint

@enessmr
Copy link

enessmr commented Mar 9, 2025

Image
material compatible (i did modify this, no ai)

@x4132
Copy link

x4132 commented Mar 10, 2025

I can probably write a PR for this if you'd like

@sigurd4
Copy link
Author

sigurd4 commented Mar 10, 2025

Changed the API call to only https://api.deepseek.com/v1 and i got the same error

{
  "error_msg": "Not Found. Please check the configuration."
}
...

@sigurd4
Copy link
Author

sigurd4 commented Mar 10, 2025

I can probably write a PR for this if you'd like

If you got it working, go ahead.

@enessmr
Copy link

enessmr commented Mar 12, 2025

Hmmm... we could use the python/curl method to chat with it.
Thats also a option

@sigurd4
Copy link
Author

sigurd4 commented Mar 12, 2025

Is that possible to specify, just from the config file? If not, i have no idea where to begin with this, as i have no knowledge of the inner workings of the ags setup in this dotfile (i might take a closer look when i have time).

@enessmr
Copy link

enessmr commented Mar 12, 2025

I have some. i dont really know js 😂 (but i managed to make disk usage myself)

@enessmr
Copy link

enessmr commented Mar 12, 2025

you could specify commands..... it works (like the night light executes gammastep)

@enessmr
Copy link

enessmr commented Mar 12, 2025

targets: (skull)

  • HarmonyOS dotfiles
  • iOS dotfiles (i hate closed source ahh fuck appl-ˆCProcess terminated by SIGINT)
  • Win11 Dotfiles (fr this time but with ags)
  • Win10 dotfiles
  • Win7 dotfiles (the good old days... i can feel it....)
  • winXP dotfiles (The BEST days)
  • Win9x dotfiles (this design looks awful)
  • Win3.1 dotfiles (Same)
  • win1.0-3.0 dofiles (Literally the same design MS used in win 1.0 to 3.0...)

@enessmr
Copy link

enessmr commented Mar 12, 2025

I have a Huawei. (chineese song)

@x4132
Copy link

x4132 commented Mar 14, 2025

Okay, so it turns out that the official deepseek api is quite bad. It sends null/keepalive that is verbosely sent to the client. Will need to address that first.

Upon further review I would recommend simply using OpenRouter integration rather than deepseek's api as modifications would be quite invasive for proper support.

@enessmr
Copy link

enessmr commented Mar 14, 2025

I will just play around with scss and smth to make my other target dotfiles.

If the bar is puttable in left (or right), it could be windows. We need to make it mouse movable first. Win10 could be easier, it could still be a PAIN to make since we use PURE JAVASCRIPT for the code. (windows comment, from 10 going to 95 when its first added the taskbar, 3.1 would be more easie- I wont make 3.1 since yeah why, its a bit hard to navigate ui.)

We use execasync, i think to make it.

And I wont make my other dotfiles, I don't want to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEATURE Feature advice/request
Projects
None yet
Development

No branches or pull requests

3 participants