Skip to content

Commit 73a1672

Browse files
davorrunjemegamanics
authored andcommitted
added default value to logprobs (openai#1007)
1 parent 99f29d6 commit 73a1672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)