Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default value to logprobs #1007

Merged
merged 2 commits into from
Dec 23, 2023

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
1 check passed
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
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