GAIR-NLP / factool

FacTool: Factuality Detection in Generative AI
https://ethanc111.github.io/factool_website/
Apache License 2.0
804 stars 62 forks source link

Look into whether the following proxy setting is the general solution for accessing openai api via proxy #11

Open EthanC111 opened 1 year ago

EthanC111 commented 1 year ago

As in https://github.com/GAIR-NLP/factool/issues/8 and https://github.com/GAIR-NLP/factool/issues/3, we need to look into whether

proxies = {'http': "http://127.0.0.1:7890",
          'https': "http://127.0.0.1:7890"}
openai.proxy = proxies

is the general solution for calling openai using proxy.