Skip to content

feat: reject unknown fields from API requests (fixes #478)#791

Open
mithilesh1909 wants to merge 1 commit into
predibase:mainfrom
mithilesh1909:feat/issue-478-deny-unknown-fields
Open

feat: reject unknown fields from API requests (fixes #478)#791
mithilesh1909 wants to merge 1 commit into
predibase:mainfrom
mithilesh1909:feat/issue-478-deny-unknown-fields

Conversation

@mithilesh1909

Copy link
Copy Markdown

What does this PR do?

added #[serde(deny_unknown_fields)] to 9 structs:

GenerateParameters, GenerateRequest, CompatGenerateRequest, TokenizeRequest
ChatCompletionRequest, CompletionRequest, EmbedRequest
ClassifyRequest, BatchClassifyRequest, BatchEmbedRequest

Fixes # 478

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Was this discussed/approved via a Github issue or the discord / slack channel? Please add a link
    to it if that's the case.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

Signed-off-by: mithilesh1909 <mittuayodhya@gmail.com>
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.

1 participant