You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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
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
The text was updated successfully, but these errors were encountered: