From c71ff7aee3e3eaaf86aac39bd3abb621205cdaca Mon Sep 17 00:00:00 2001 From: Davor Runje Date: Sun, 24 Dec 2023 00:22:43 +0100 Subject: [PATCH] added default value to logprobs (#1007) --- src/openai/types/chat/chat_completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openai/types/chat/chat_completion.py b/src/openai/types/chat/chat_completion.py index 055280c347..b2e98a3144 100644 --- a/src/openai/types/chat/chat_completion.py +++ b/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