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

[Frontend][Bugfix] Disallow extra fields in OpenAI API #4355

Merged
merged 3 commits into from
Apr 27, 2024

Conversation

DarkLight1337
Copy link
Member

@DarkLight1337 DarkLight1337 commented Apr 25, 2024

This PR updates the Pydantic models for OpenAI API such that an error is raised when the API is called with extra fields. It also improves general type annotations in the entrypoints subpackage.

FIX #4339

Compatibility Changes

  • openai will be upgraded to a common dependency (from dev) since users of the package may serve the OpenAI API. IMO, this should have been the case from the start.

@DarkLight1337 DarkLight1337 changed the title [Frontend] Disallow extra fields in OpenAI API [Frontend][Bugfix] Disallow extra fields in OpenAI API Apr 25, 2024
- Also improve type annotations in the process
@DarkLight1337
Copy link
Member Author

The lora-test-3 failed because of connection issues, which is probably unrelated to this change.

@simon-mo simon-mo enabled auto-merge (squash) April 26, 2024 23:12
@simon-mo simon-mo merged commit 8947bc3 into vllm-project:main Apr 27, 2024
48 checks passed
@DarkLight1337 DarkLight1337 deleted the openai-no-extra-fields branch April 27, 2024 05:09
z103cb pushed a commit to z103cb/opendatahub_vllm that referenced this pull request May 7, 2024
Temirulan pushed a commit to Temirulan/vllm-whisper that referenced this pull request Sep 6, 2024
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.

[Bug]: Invalid inputs do not result in error
2 participants