Skip to content

vLLM is returning the prompt with the result #1043

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

Closed
Stealthwriter opened this issue Sep 14, 2023 · 7 comments
Closed

vLLM is returning the prompt with the result #1043

Stealthwriter opened this issue Sep 14, 2023 · 7 comments

Comments

@Stealthwriter
Copy link

How to prevent vLLM from returning the prompt back with the result?

@teraktor2006
Copy link

If you use api_server then in vllm.entrypoints.api_server.py remove prompt from

text_outputs = [ prompt + output.text for output in request_output.outputs ]

@viktor-ferenczi
Copy link
Contributor

viktor-ferenczi commented Sep 15, 2023

It should be controlled by a flag in the request.

@Stealthwriter
Copy link
Author

It should be controlled by a flag in the request.

I added echo = false while sending the request, but I got an error. I think echo is not implemented?

@Stealthwriter
Copy link
Author

If you use api_server then in vllm.entrypoints.api_server.py remove prompt from

text_outputs = [ prompt + output.text for output in request_output.outputs ]

I will try this

@danilopeixoto
Copy link
Contributor

@viktor-ferenczi Is it implemented? Or can we prepare a PR?

@PeterXiaTian
Copy link

这个问题解决了吗?我现在也碰到这个问题了,在requests发请求的时候加参数提示没有这个参数

@PeterXiaTian
Copy link

If you use api_server then in vllm.entrypoints.api_server.py remove prompt from

text_outputs = [ prompt + output.text for output in request_output.outputs ]

这个是加上还是去掉prompt?

@hmellor hmellor closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
yiliu30 pushed a commit to yiliu30/vllm-fork that referenced this issue Apr 28, 2025
Bumps [xgrammar](https://github.com/mlc-ai/xgrammar) from 0.1.11 to
0.1.18.


Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michał Kuligowski <[email protected]>
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

No branches or pull requests

6 participants