Commit acbe5ffa

Davor Runje <davor@airt.ai>
2023-12-24 07:22:43
added default value to logprobs (#1007)
1 parent f1c7d71
Changed files (1)
src
openai
src/openai/types/chat/chat_completion.py
@@ -30,7 +30,7 @@ class Choice(BaseModel):
     index: int
     """The index of the choice in the list of choices."""
 
-    logprobs: Optional[ChoiceLogprobs]
+    logprobs: Optional[ChoiceLogprobs] = None
     """Log probability information for the choice."""
 
     message: ChatCompletionMessage