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

Add nullable annotations to ChatGptResponse and ChatGptChoice #98

Closed
marcominerva opened this issue Aug 3, 2023 · 0 comments · Fixed by #99
Closed

Add nullable annotations to ChatGptResponse and ChatGptChoice #98

marcominerva opened this issue Aug 3, 2023 · 0 comments · Fixed by #99
Assignees
Labels
enhancement New feature or request

Comments

@marcominerva
Copy link
Owner

marcominerva commented Aug 3, 2023

In the ChatGptResponse class, it is necessary to add nullable annotations for the following scenarios:

  • The PromptAnnotations property cannot be null when the IsPromptFiltered property is true.
  • The Error property is surely not null when the IsSuccessful property is false.

In the ChatGptChoice class, it is necessary to add nullable annotations for the following scenario:

  • The ContentFilterResults property cannot be null when the IsChoiceFiltered property is true.
@marcominerva marcominerva added the enhancement New feature or request label Aug 3, 2023
@marcominerva marcominerva self-assigned this Aug 3, 2023
marcominerva added a commit that referenced this issue Aug 3, 2023
marcominerva added a commit that referenced this issue Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant