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

[OpenAI Extension] Add 'max_logits' parameter in logits endpoint #4916

Merged
merged 13 commits into from
Dec 15, 2023

Conversation

kimjaewon96
Copy link
Contributor

Checklist:

Fixes:

  1. Add 'max_logits' parameter in logits endpoint (default: 50)

Before, it only returned a fixed logit amount of 50 top tokens.
Now, users can choose how many logits of top tokens they want to get.

  1. Fix the API to return logits as float value

Before, the type of logit value was strings (because of compatibility with Gradio?)
Now, the API endpoint returns logit values as float, while retaining compatibility with Gradio Frontend.

@kimjaewon96 kimjaewon96 changed the base branch from main to dev December 14, 2023 03:08
@oobabooga
Copy link
Owner

That's an excellent addition. Thanks!

@oobabooga oobabooga merged commit e53f99f into oobabooga:dev Dec 15, 2023
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.

2 participants