Skip to content

Conversation

@davorrunje
Copy link
Contributor

@davorrunje davorrunje commented Dec 22, 2023

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Fixes #1006

#980 added token logprobs to chat completions of type Optional[ChoiceLogprobs] in openai.types.chat.chat_completion.Choice and openai.types.chat.chat_completion_chunk.Choice. In the latter, the default value is set to None, while in the former it is not set. This causes backward compatibility problems with code written for versions prior to 1.5.0.

This PR adds the default value to logprobs in openai.types.chat.chat_completion.Choice

Additional context & links

#1006

@rattrayalex rattrayalex changed the base branch from main to next December 23, 2023 23:05
@rattrayalex rattrayalex merged commit c71ff7a into openai:next Dec 23, 2023
stainless-bot pushed a commit that referenced this pull request Jan 9, 2024
megamanics pushed a commit to devops-testbed/openai-python that referenced this pull request Aug 14, 2024
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing default value to logprobs in openai.types.chat.chat_completion.Choice

2 participants