Skip to content

Commit a466baa

Browse files
davorrunjestainless-bot
authored andcommitted
added default value to logprobs (openai#1007)
1 parent be5f689 commit a466baa

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)