-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[Log][Bugfix] Fix default value check for image_url.detail
#9663
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
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.
Technically None
is not allowed according to OpenAI spec, but I guess this makes it more robust.
Oh I see, I was looking in the wrong place in the OpenAI library. The usage I saw this clear with was on |
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
…oject#9663) Signed-off-by: Erkin Sagiroglu <erkin@infra-aipipeline-1-at1-prox-prod-a.ipa.corp.telnyx.com>
…oject#9663) Signed-off-by: Shanshan Wang <shanshan.wang@h2o.ai>
…oject#9663) Signed-off-by: Shanshan Wang <shanshan.wang@h2o.ai>
…oject#9663) Signed-off-by: qishuai <ferdinandzhong@gmail.com>
…oject#9663) Signed-off-by: NickLucche <nlucches@redhat.com>
…oject#9663) Signed-off-by: NickLucche <nlucches@redhat.com>
…oject#9663) Signed-off-by: Linkun Chen <github+anyscale@lkchen.net>
…oject#9663) Signed-off-by: Sumit Dubey <sumit.dubey2@ibm.com>
…oject#9663) Signed-off-by: Maxime Fournioux <55544262+mfournioux@users.noreply.github.com>
…oject#9663) Signed-off-by: Tyler Michael Smith <tyler@neuralmagic.com>
The warning about not supporting
image_url.detail
is overzealous as it doesn't deal withdetail == None
, which can be the default case. This PR simply has None represented as"auto"
by default, which matches OpenAI: https://github.com/openai/openai-python/blob/e1b2f8216cc69e802475a0d438e40e0e74510de4/src/openai/types/beta/threads/image_url.py#L18-L23Example of annoying warning on requests: