Skip to content

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
@DarkLight1337
Copy link
Member Author

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

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