Skip to content

Commit c71ff7a

Browse files
authored
added default value to logprobs (#1007)
1 parent f1c7d71 commit c71ff7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/openai/types/chat/chat_completion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Choice(BaseModel):
3030
index: int
3131
"""The index of the choice in the list of choices."""
3232

33-
logprobs: Optional[ChoiceLogprobs]
33+
logprobs: Optional[ChoiceLogprobs] = None
3434
"""Log probability information for the choice."""
3535

3636
message: ChatCompletionMessage

0 commit comments

Comments
 (0)