Replies: 2 comments
-
|
@sharpdima, there are a few things to check here based on similar reports: For streaming not working:
For the This error ( Also, if you're on Dify 1.13.1, there was a plugin invocation bug (fixed in 1.13.2) that caused serialization failures with the OpenAI-API-Compatible provider [5]. Upgrading to 1.13.2+ may resolve both issues. Quick checklist:
These details would help narrow down the root cause further. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
This is a very practical issue, and it is good that you are testing DeepSeek through the OpenAI-compatible provider directly instead of only checking a normal non-streaming response. For the streaming part, I’d first isolate where the stream is being buffered or lost:
For the second provider error, For Dify + DeepSeek, the first successful chat completion is not enough. Streaming, provider validation, timeout behavior, and fallback endpoint setup all need to be tested separately. If you can share whether curl streaming works directly against |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
Hi Dify team,
I've set up DeepSeek's official API (https://api.deepseek.com/v1) using the OpenAI-API-Compatible provider in Dify. I've enabled the Stream toggle in the provider settings, but streaming is not being applied—responses still arrive all at once instead of token-by-token.
Additionally, when I try to add a second OpenAI-API-Compatible provider (for a different DeepSeek endpoint), I get the following error after saving:
text
PluginInvokeError: {"args":{},"error_type":"UnboundLocalError","message":"cannot access local variable 'response' where it is not associated with a value"}
My goal is simple: I want streaming to work with my DeepSeek API key directly from DeepSeek's own servers. Could you please advise on how to fix this, or let me know if there's a known issue with streaming on this provider?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions