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 deprecation warning to OpenAI models: OpenAI has deprecated their logprobs API for user input #15

Closed
aalok-sathe opened this issue Nov 2, 2023 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on

Comments

@aalok-sathe
Copy link
Owner

OpenAI no longer provides log probs for the prompt, making it impossible to use as a probability over a string function. It does, however, continue to provide logprobs over its own completions.

E.g.:

Originally reported on twitter.

@aalok-sathe aalok-sathe added the documentation Improvements or additions to documentation label Nov 2, 2023
@aalok-sathe aalok-sathe self-assigned this Nov 2, 2023
aalok-sathe added a commit that referenced this issue Nov 21, 2023
- disambiguate install section by making it clearer
- add note for #15
- add ref to #9 in readme
@aalok-sathe
Copy link
Owner Author

aalok-sathe commented Dec 18, 2023

Reopening, as reported by OpenAI on X, log probs seem to be available again, so it would be nice to re-build and test the (existing) support for this in our package. Thanks @jennhu!

openAI docs

@aalok-sathe
Copy link
Owner Author

@jennhu do you have a MWE for this with the new API? I just haven't used openai models in a while so if you have something that already works I wouldn't have to start over:)

@aalok-sathe
Copy link
Owner Author

if you have the bandwidth to PR even better but if not I'll take anything to start off of!

@jennhu
Copy link

jennhu commented Feb 7, 2024

After poking around some more with the chat models, I don't think we can get surprisals after all :(

The logprobs parameter lets us get the logprobs corresponding to the model's generated output, but without the echo parameter (as was previously supported by the legacy Completion models), we can't get the logprobs assigned to an arbitrary input string. It's possible I might be missing something, though!

@aalok-sathe
Copy link
Owner Author

I've already added a deprecation warning in README as of a926f9b; the API should continue working for older models supporting this endpoint (though I haven't tested it recently), but otherwise the broader issue about adding support is going to be a wontfix. Alternatives to OpenAI models include: MPT, Mistral, Llama, Falcon (not an exhaustive list or endorsement).

@aalok-sathe aalok-sathe added the wontfix This will not be worked on label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants