Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark all properties in "choices" as required
I'm not sure whether this is actually the case (please decline the PR if not!) but I would expect all keys of this object to be present in all responses (though of course logprobs is marked as sometimes having a `null` value). Making this change would enable nicer types, eg, `response.choices[0].text.length` rather than `response.choices[0].text?.length`
- Loading branch information