Skip to content

Conversation

TyperEJ
Copy link
Contributor

@TyperEJ TyperEJ commented Apr 11, 2025

What:

  • Bug Fix
  • New Feature

Description:

As it has been some time since I last forked the repository, I noticed from OpenAI's documentation that the chat completion's 'choices' now includes a 'logprobs' field. However, Google Gemini's OpenAI compatibility layer doesn't yet support this field. Therefore, I've modified the code to allow chat completion 'choices' to function without requiring the 'logprobs' field.

Related:

fixes: #502

@iBotPeaches iBotPeaches added bug Something isn't working Non-OpenAI Model Not an OpenAI Model. labels Apr 11, 2025
@iBotPeaches iBotPeaches merged commit ad7743d into openai-php:main Apr 11, 2025
10 checks passed
@iBotPeaches
Copy link
Collaborator

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Non-OpenAI Model Not an OpenAI Model.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants