From ca13ab81733e17cf358faf1bc15c5edd77fb04c1 Mon Sep 17 00:00:00 2001 From: Zhi-guo Huang Date: Tue, 11 Jul 2023 23:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95OPENAI=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=88=90=E5=8A=9F=20(#813)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/model_config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/model_config.py b/configs/model_config.py index 856a00b..db52851 100644 --- a/configs/model_config.py +++ b/configs/model_config.py @@ -160,6 +160,14 @@ llm_model_dict = { "api_base_url": "http://localhost:8000/v1", # "name"修改为fastchat服务中的"api_base_url" "api_key": "EMPTY" }, + # 调用chatgpt时如果报出: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.openai.com', port=443): + # Max retries exceeded with url: /v1/chat/completions + # 则需要将urllib3版本修改为1.25.11 + + # 如果报出:raise NewConnectionError( + # urllib3.exceptions.NewConnectionError: : + # Failed to establish a new connection: [WinError 10060] + # 则是因为内地和香港的IP都被OPENAI封了,需要挂切换为日本、新加坡等地 "openai-chatgpt-3.5": { "name": "gpt-3.5-turbo", "pretrained_model_name": "gpt-3.5-turbo",