mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Using the OpenAI-API-compatible connection model's API, the model is unable to output #67
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 @chongliujia on GitHub (Mar 12, 2025).
Self Checks
Dify version
1.0.1
Plugin version
OpenAI-API-compatible 0.0.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When I use the openai-api-compatible to connect to China Telecom's DeepSeek API via Dify, the connection appears to be established. However, during the test conversation, I noticed that the model is unable to generate any dialogue output.
✔️ Error log
No response
@QiQi-OvO commented on GitHub (Mar 12, 2025):
I had the same problem because there was no way to get the vocab.bpe file.
2025-03-13 01:40:53.103 ERROR [Dummy-44] [base_app_generate_response_converter.py:123] - {"args":{},"error_type":"ConnectTimeout","message":"HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /gpt-2/encodings/main/vocab.bpe (Caused by ConnectTimeoutError(\u003curllib3.connection.HTTPSConnection object at 0x7f585b772120\u003e, 'Connection to openaipublic.blob.core.windows.net timed out. (connect timeout=None)'))"}@caolicaoli commented on GitHub (Mar 13, 2025):
also error:
org.springframework.ai.retry.TransientAiException: 500 - {"code":-500,"message":"{"message":"{\"args\":{},\"error_type\":\"TypeError\",\"message\":\"dify_plugin.entities.model.llm.LLMModelConfig() got multiple values for keyword argument 'completion_params'\"}","error_type":"PluginDaemonInternalServerError","args":null}","data":null}
改一下代码就行了:
把
model_config=LLMModelConfig(
completion_params=llm.get("completion_params", {}), **llm
)
改成
model_config=LLMModelConfig(**llm)
@chongliujia commented on GitHub (Mar 13, 2025):
Thank you, but I checked the source code of Dify but couldn't find the relevant code snippet. Additionally, I have already installed the plugin.
@QiQi-OvO commented on GitHub (Mar 14, 2025):
Check this issue Issue14887 i has solved the problem :)
@zzb181 commented on GitHub (Mar 18, 2025):
@dosubot[bot] commented on GitHub (Aug 20, 2025):
Hi, @chongliujia. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!