Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update restful_client.py,修复python api 调用rerank模型报错 RuntimeError: rerank hasn't support extra parameter. #2625

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dujunjie123
Copy link

python api 调用rerank模型报错 RuntimeError: Failed to rerank documents, detail: rerank hasn't support extra parameter.

这是因为在RESTfulRerankModelHandle类中request_body传递参数时多了 "kwargs": json.dumps(kwargs) 这个参数。

在历史版本中并没有这个参数。

python api 调用rerank模型报错  RuntimeError: Failed to rerank documents, detail:  rerank hasn't support extra parameter.

这是因为在RESTfulRerankModelHandle类中request_body传递参数时多了 "kwargs": json.dumps(kwargs) 这个参数。

在历史版本中并没有这个参数。
@XprobeBot XprobeBot added this to the v1.x milestone Dec 3, 2024
@qinxuye
Copy link
Contributor

qinxuye commented Dec 3, 2024

对于服务端和客户端版本要匹配,现在服务端支持传入 rerank 额外参数。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants