mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
OpenAI-API-compatible bug #94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @XiaoCC on GitHub (Mar 20, 2025).
Self Checks
Dify version
1.1.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
添加火山云的联网搜索bot应用模型 成功 但是调用llm没有返回值!
The network search bot application model for adding Volcano Cloud was successful, but calling LLM did not return any value!
✔️ Expected Behavior
希望能正常使用火山云的联网搜索bot应用模型
I hope to be able to use the Volcano Cloud's networked search bot application model normally
❌ Actual Behavior
@dosubot[bot] commented on GitHub (Mar 20, 2025):
I found a similar unsolved discussion regarding adding a self-deployed LLM model and encountering errors [1].
For the issue you're experiencing with the LLM not returning values, there are a few common causes and solutions you can consider:
Multiple End Blocks: Ensure your workflow contains only one end block. Restructure your workflow to converge all branches into a single endpoint [2].
Runtime Errors: Check for common runtime errors such as Variable Not Found Error, Invalid Context Structure Error, Invalid Variable Type Error, Model Not Exist Error, LLM Authorization Required Error, and No Prompt Found Error. Ensure variables and prompts are correctly set, the context structure is valid, a model is selected and authorized, and prompts are not empty [3].
IF-ELSE Conditions: If you are using IF-ELSE conditions and experiencing issues with LLM node streaming output, this may be due to a known issue in Dify version 0.14.2. This problem has been resolved in a recent update through PR langgenius/dify#12105. Ensure you are using the latest version of Dify that includes this fix [4].
These steps should help you troubleshoot and resolve the issue with the LLM not returning values.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@XiaoCC commented on GitHub (Mar 20, 2025):
{
"text": "",
"usage": {
"prompt_tokens": 0,
"prompt_unit_price": "0",
"prompt_price_unit": "0",
"prompt_price": "0",
"completion_tokens": 0,
"completion_unit_price": "0",
"completion_price_unit": "0",
"completion_price": "0",
"total_tokens": 0,
"total_price": "0",
"currency": "USD",
"latency": 1.062202364206314
},
"finish_reason": "Non-JSON encountered."
}
这是调用模型返回值 Non-JSON encountered. @Dosu
@XiaoCC commented on GitHub (Mar 20, 2025):
{
"model_mode": "chat",
"prompts": [
{
"role": "system",
"text": "回答用户的问题",
"files": []
},
{
"role": "user",
"text": "你好",
"files": []
}
],
"model_provider": "langgenius/openai_api_compatible/openai_api_compatible",
"model_name": "bot-20250320104820-xq7sc"
}
"model_mode": "chat", 是不是OpenAI-API-compatible的类型除了chat还得加一个bot
@dosubot[bot] commented on GitHub (Aug 18, 2025):
Hi, @XiaoCC. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
What's Next:
Thank you for your understanding and contribution!