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

Cannot stream output using the official deepseekAPI.

Open pandarusly opened this issue 9 months ago • 2 comments

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

Copilot version: v2.8.7

(Bug report without the above will be closed)

Describe how to reproduce When attempting to use the official deepseekAPI with Obsidian Copilot, the output cannot be streamed properly. The expected behavior would be to receive responses in real-time as they're generated, but instead the output appears all at once after completion.

Steps to reproduce:

  1. Configure Obsidian Copilot to use deepseekAPI
  2. Make a query that would normally generate a streamed response
  3. Observe that the response appears only after full completion

Expected behavior Responses should stream progressively as they're generated by the API.

Screenshots

Image

Image

Additional context Add any other context about the problem here.

pandarusly avatar Mar 26 '25 15:03 pandarusly

It's because you enabled CORS, CORS mode as no streaming support.

cc @Emt-lin should we be more clear with a hover message over CORS?

logancyang avatar Mar 26 '25 19:03 logancyang

It's because you enabled CORS, CORS mode as no streaming support.

cc @Emt-lin should we be more clear with a hover message over CORS?

yeah. I will optimize it.

Emt-lin avatar Mar 27 '25 01:03 Emt-lin