mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
provider-OpenAI-API-compatible has a bug #147
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 @kongoldwant on GitHub (Mar 28, 2025).
Self Checks
Dify version
1.1.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
OpenAI-API-compatible version 0.0.11
when i use this plugin to add a rerank model from Llm studio,it returns a error message 'results'
tips:
i can use this plugin to add llm and text-embdding model from llm studio successfully
for the same parameter,if i change the model type to "text-embedding",it can add successfully
As shown in the figure below,if i change the model type to "text-embedding",it can add successfully

✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Mar 28, 2025):
Hello @kongoldwant! I'm here to assist you with any bugs, questions, or contributions you have for the OpenAI-API-compatible plugin. Let's work together to resolve your issue.
I found a similar open issue related to the 'Rerank' model type in the OpenAI-API-compatible plugin, which is experiencing a 400 error due to the
top_nparameter being set toNoneinrerank.py. This issue can be resolved by upgrading to Dify version 1.0.0 or higher and ensuring the OpenAI-API-compatible plugin is version 0.0.6 or higher [1].Additionally, the 'results' parameter in the OpenAI-API-compatible plugin is part of the JSON response from the
/rerankendpoint. It contains the reranked documents along with their relevance scores. In the context of the 'Rerank' model type, it is used to createRerankDocumentobjects, which include the index, text, and relevance score of each document. These objects are then filtered based on ascore_thresholdand returned as part of theRerankResult[2].If you are encountering an "invalid_param" error related to the "results" parameter, ensure that all required parameters are correctly configured and that the plugin version is up to date.
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
@kongoldwant commented on GitHub (Mar 30, 2025):
lm studio donot have a router named /rerank
@dosubot[bot] commented on GitHub (Aug 17, 2025):
Hi, @kongoldwant. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
top_nparameter in rerank.py causing a 400 error was suggested as a possible cause.Next Steps:
Thank you for your understanding and contribution!