unable add rerank model when using GPUStack #8440

Closed
opened 2026-02-21 18:25:42 -05:00 by yindo · 5 comments
Owner

Originally created by @liuw518 on GitHub (Feb 19, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

when add rerank model under GPUStack,occur 400 error.
Image
In GPUStack, test rerank service and api is OK

Image

✔️ Expected Behavior

can add rerank models normally

Actual Behavior

http 400 error

Originally created by @liuw518 on GitHub (Feb 19, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce when add rerank model under GPUStack,occur 400 error. <img width="1329" alt="Image" src="https://github.com/user-attachments/assets/3eaa08e6-14db-4865-b7f4-c0b827752cc2" /> In GPUStack, test rerank service and api is OK <img width="1414" alt="Image" src="https://github.com/user-attachments/assets/5b70cce4-3023-4509-ad66-7395961da723" /> ### ✔️ Expected Behavior can add rerank models normally ### ❌ Actual Behavior http 400 error
yindo added the 🐞 bug label 2026-02-21 18:25:42 -05:00
yindo closed this issue 2026-02-21 18:25:42 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 19, 2025):

@liuw518 Hello there! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's tackle this issue together!

A 400 error when adding a rerank model in Dify can often be caused by using the 'raw' body format in the HTTP request node when the query contains special characters like newlines ('\n'). To resolve this, ensure that the body format is set to 'JSON' in the HTTP request node configuration to properly escape special characters in the query string. Additionally, since you are using Dify version 0.15.1, make sure that your setup is compatible with GPUStack, as there might be specific configurations required for this integration that are not detailed in the available documentation [1][2].

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

@dosubot[bot] commented on GitHub (Feb 19, 2025): <!-- Greeting --> @liuw518 Hello there! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's tackle this issue together! <!-- Answer --> A 400 error when adding a rerank model in Dify can often be caused by using the 'raw' body format in the HTTP request node when the query contains special characters like newlines ('\n'). To resolve this, ensure that the body format is set to 'JSON' in the HTTP request node configuration to properly escape special characters in the query string. Additionally, since you are using Dify version 0.15.1, make sure that your setup is compatible with GPUStack, as there might be specific configurations required for this integration that are not detailed in the available documentation <sup>[[1]](https://github.com/langgenius/dify/issues/11643)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/12640)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/70a31e3e-416d-42a4-86d0-be6816327afe?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/70a31e3e-416d-42a4-86d0-be6816327afe?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/70a31e3e-416d-42a4-86d0-be6816327afe?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/70a31e3e-416d-42a4-86d0-be6816327afe?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/70a31e3e-416d-42a4-86d0-be6816327afe?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/70a31e3e-416d-42a4-86d0-be6816327afe?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/70a31e3e-416d-42a4-86d0-be6816327afe?feedback_type=other)</sup>
Author
Owner

@xtanitfy commented on GitHub (Feb 22, 2025):

i have this question too.

@xtanitfy commented on GitHub (Feb 22, 2025): i have this question too.
Author
Owner

@xtanitfy commented on GitHub (Feb 24, 2025):

I have solved the problem by using xinference.

@xtanitfy commented on GitHub (Feb 24, 2025): I have solved the problem by using xinference.
Author
Owner

@XuCe commented on GitHub (Feb 25, 2025):

i have this question too.

@XuCe commented on GitHub (Feb 25, 2025): i have this question too.
Author
Owner

@crazywoola commented on GitHub (Mar 4, 2025):

Please see Please see https://github.com/langgenius/dify-official-plugins/pull/382

@crazywoola commented on GitHub (Mar 4, 2025): Please see Please see https://github.com/langgenius/dify-official-plugins/pull/382
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8440