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

llm:调用vllm部署的大模型openai接口时报错 #489

Open
2 of 3 tasks
mengxianglong123 opened this issue Jun 13, 2024 · 2 comments
Open
2 of 3 tasks

llm:调用vllm部署的大模型openai接口时报错 #489

mengxianglong123 opened this issue Jun 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mengxianglong123
Copy link

Initial Checks

  • I have searched GitHub for a duplicate issue and I'm sure this is something new
  • I have read and followed the docs & demos and still think this is a bug
  • I am confident that the issue is with modelscope-agent (not my code, or another library in the ecosystem)

What happened + What you expected to happen

调用基于vllm部署的大模型openai接口时报错

openai.BadRequestError: Error code: 400 - {'object': 'error', 'message': "[{'type': 'extra_forbidden', 'loc': ('body', 'stream_options'), 'msg': 'Extra inputs are not permitted', 'input': {}}]", 'type': 'BadRequestError', 'param': None, 'code': 400}

大致原因是多了一个参数stream_options,在源代码中注释掉该参数便可以正常请求
image

Versions / Dependencies

v0.6.1

Reproduction script

直接使用最新版vllm部署模型,并以openai接口启动

Issue Severity

None

@mengxianglong123 mengxianglong123 added the bug Something isn't working label Jun 13, 2024
@zzhangpurdue
Copy link
Collaborator

好的,这里我们看一下。

@zzhangpurdue zzhangpurdue assigned mushenL and unassigned zzhangpurdue and suluyana Jun 13, 2024
@zzhangpurdue
Copy link
Collaborator

solved in 0.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants