simonw / simonw/llm

New Deepseek API (and other extra api's) not working - Update: Solution found.

Open
#393 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

Hi, deepseek have released their own api for deepseek-coder and deepseek-chat with 10M free tokens.

https://platform.deepseek.com/docs

They offer an openai compatible api, but for some reason, it works in curl but not in LLM, where it says "Error: Invalid response object from API: '{"detail":"Authentication Fails"}' (HTTP response code was 401)"

I tried adding it to extra-openai-models.yaml like so:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report centers on extra-openai-models.yaml and the DeepSeek API documentation; start by reproducing the curl and configured LLM requests with the shown endpoint and key handling. Compare their responses using the reported 401 error as the failure signal. The title says a solution was found, so verify whether any project change remains before taking this on.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.