From 9b664d5eb2310981b4e6eb87d710fee134c1f577 Mon Sep 17 00:00:00 2001 From: zqt <1178747941@qq.com> Date: Fri, 1 Sep 2023 18:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BE=8B=E5=AD=90=E4=BE=8B?= =?UTF-8?q?=E5=AD=90"openai=5Fproxy":=20'http://127.0.0.1:4780'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/model_config.py.example | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/model_config.py.example b/configs/model_config.py.example index f46dad6..4169adb 100644 --- a/configs/model_config.py.example +++ b/configs/model_config.py.example @@ -69,6 +69,7 @@ llm_model_dict = { # 如果出现WARNING: Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in # 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI. # 需要添加代理访问(正常开的代理软件可能会拦截不上)需要设置配置openai_proxy 或者 使用环境遍历OPENAI_PROXY 进行设置 + # 比如: "openai_proxy": 'http://127.0.0.1:4780' "gpt-3.5-turbo": { "api_base_url": "https://api.openai.com/v1", "api_key": os.environ.get("OPENAI_API_KEY"),