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 request failing #601

Open
giofcosta opened this issue Jan 27, 2025 · 9 comments
Open

Deepseek request failing #601

giofcosta opened this issue Jan 27, 2025 · 9 comments
Labels
bug Something isn't working

Comments

@giofcosta
Copy link

Which version of the app are you using?

3.3.3

Which API Provider are you using?

DeepSeek

Which Model are you using?

reasoner

What happened?

Api request Failed
invalid json response body at https://api.deepseek.com/v1/chat/completions reason: Unexpected end of JSON input

Requests are failing using deepseek-reasoner

Steps to reproduce

  1. Api provider DeepSeek
  2. Model deeepseek-reasoner
  3. Ask anything like "hello?"

Relevant API REQUEST output

Additional context

No response

@giofcosta giofcosta added the bug Something isn't working label Jan 27, 2025
@g4ny4
Copy link

g4ny4 commented Jan 27, 2025

Same as me. I run a python client to check my API and it works normaly but not in Roo, even not working in Cline. Maybe DeepSeek changes the way how conect (interact) to the API service

api_key='API_KEY'
from openai import OpenAI
for api_key in deepseek_api_keys:
client = OpenAI(api_key=api_key, base_url="https://api.deepseek.com")
response = client.chat.completions.create(
model="deepseek-chat",
messages=[
{"role": "system", "content": "You are a helpful assistant"},
{"role": "user", "content": "Hello"},
],
stream=False
)
print(response.choices[0].message.content)

The console:
Hello! How can I assist you today? 😊

@mrubens
Copy link
Collaborator

mrubens commented Jan 27, 2025

I think they’re prioritizing short requests over long requests while they’re under heavy load.

@KamalikaPoddar
Copy link

Looks more like they upgraded their API request body and forgot to publish that contract to other API consumers?

@antonlvovych
Copy link

Same. Curl is working for me now, but both Cline and Roo Code still aren’t. I’m using both the V3 and R1 models directly from DeepSeek, and it seems like they might be blocking requests or something has changed on their end.

@kdmgs110
Copy link

kdmgs110 commented Jan 28, 2025

Same.

  1. Api provider DeepSeek
  2. Model deeepseek-chat
  3. Ask anything like "hello?"

Image
Image
Image
It says 400 Model Not Exist
Is the api endpoint changed?

@Dieselmjk
Copy link

I'm having the same issue with both cline and roo code.
invalid json response body at https://api.deepseek.com/v1/chat/completions reason: Unexpected end of JSON input
I can get a response from curl using deepseek-chat model
Response fails with deepseek-reasoning model

@vjarysta
Copy link

Same here, with deepseek-reasoning

@SyntaxFear
Copy link

Image

same here, with both models. last 2 day.
api dashboard is under maintenance
hope it will be back soon

@Ranteck
Copy link

Ranteck commented Jan 28, 2025

Same, I guess its because they are under heavy load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants