-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Fix model name included in responses #24663
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
Conversation
Signed-off-by: Harry Mellor <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors the logic for determining the model name in responses to fix an issue where --served-model-name was being ignored. The logic is centralized into a new OpenAIServingModels.model_name method, and all call sites are updated accordingly. The change correctly enforces the use of the served model name, which aligns with the stated goal. I have one critical suggestion to prevent a potential server crash.
DarkLight1337
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a regression test?
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
#13568 made the
modelparameter optional when making requests to vLLM. Unfortunately, this broke the behaviour of https://docs.vllm.ai/en/latest/cli/serve.html#-served-model-name.This PR reinstates the original behaviour (while still allowing the
modelparameter to be optional).Fixes #15845