obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

DeepSeek API 400 no body

Open gedo123 opened this issue 10 months ago • 3 comments

  • [x] Disable all other plugins besides Copilot (required)
  • [x] Screenshot of note + Copilot chat pane + dev console added (required)

Copilot version:

(Bug report without the above will be closed)

Describe how to reproduce A 400 status code occurs during the second Q&A session. Attempts to switch to other models have been made, but the issue persists. According to the service provider's error documentation, the problem is attributed to an incorrect request body format.

New LLM chain created. 3app.js:1 Measure loop restarted more than 5 times (匿名) @ app.js:1 plugin:copilot:528 Connection error. more message: Request failed, status 400

handleError @ plugin:copilot:528 app.js:1 Measure loop restarted more than 5 times (匿名) @ app.js:1 e.onScrollChanged @ app.js:1 (匿名) @ app.js:1 plugin:copilot:528 Connection error. more message: Request failed, status 400

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Image

Image

Additional context Add any other context about the problem here.

gedo123 avatar Feb 28 '25 04:02 gedo123

  • what's the provider?
  • how did you add it?

logancyang avatar Feb 28 '25 23:02 logancyang

sames here

peiyaoli avatar Mar 13 '25 06:03 peiyaoli

一开始同样的错误,但排查之后发现是Token limit设置过大了,调整为8000后,正常。我reset setting后,设置key,只保留了DeepSeek两个模型。目前使用正常。

不知道是否对你有帮助

JayceTsien avatar Mar 31 '25 14:03 JayceTsien