New Deepseek API (and other extra api's) not working - Update: Solution found.
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:
- model_id: deepseek-chat
model_name: deepseek-chat
api_base: "https://api.deepseek.com/v1"
api_key: pasted_the_api_key_here
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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