shmsw25 / FActScore

A package to evaluate factuality of long-form generation. Original implementation of our EMNLP 2023 paper "FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation"
https://arxiv.org/abs/2305.14251
MIT License
275 stars 40 forks source link

Move to ChatCompletion endpoint for call_GPT3 #38

Open martiansideofthemoon opened 7 months ago

martiansideofthemoon commented 7 months ago

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