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

Move to ChatCompletion endpoint for call_GPT3 #38

Open
martiansideofthemoon opened this issue Feb 7, 2024 · 0 comments
Open

Move to ChatCompletion endpoint for call_GPT3 #38

martiansideofthemoon opened this issue Feb 7, 2024 · 0 comments

Comments

@martiansideofthemoon
Copy link
Collaborator

Now that OpenAI has deprecated the Completion API, we should move our code to ChatCompletion: https://github.com/shmsw25/FActScore/blob/main/factscore/openai_lm.py#L75

GeroVanMi added a commit to GeroVanMi/FActScore that referenced this issue Feb 9, 2024
 - Removed unused openai import from atomic_facts.py
 - OpenAIModel class now has an internal client attribute which holds an instance of the OpenAI() class
 - The call_ChatGPT and call_GPT3 functions now both use the openAI client with chat. completions
 - The InvalidRequestError has been renamed to BadRequestError, this had to be changed in the codebase as well
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

No branches or pull requests

1 participant