-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error handling for unknown fields for chat completion detection r…
…equest (#296) * added serde deny_unknown_fields attribute to relevant chat completion request Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com> * added validation unit tests Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com> * modidified json_data to remove actual model and detector ids in unit tests Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com> * removed async from chat completions unit test Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com> --------- Signed-off-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com> Co-authored-by: Shonda-Adena-Witherspoon <shonda.adena.witherspoon@ibm.com>
- Loading branch information
Showing
2 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters