mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-05 22:33:24 +08:00
添加例子例子"openai_proxy": 'http://127.0.0.1:4780'
This commit is contained in:
parent
215bc25f5c
commit
9b664d5eb2
@ -69,6 +69,7 @@ llm_model_dict = {
|
|||||||
# 如果出现WARNING: Retrying langchain.chat_models.openai.acompletion_with_retry.<locals>._completion_with_retry in
|
# 如果出现WARNING: Retrying langchain.chat_models.openai.acompletion_with_retry.<locals>._completion_with_retry in
|
||||||
# 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
|
# 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
|
||||||
# 需要添加代理访问(正常开的代理软件可能会拦截不上)需要设置配置openai_proxy 或者 使用环境遍历OPENAI_PROXY 进行设置
|
# 需要添加代理访问(正常开的代理软件可能会拦截不上)需要设置配置openai_proxy 或者 使用环境遍历OPENAI_PROXY 进行设置
|
||||||
|
# 比如: "openai_proxy": 'http://127.0.0.1:4780'
|
||||||
"gpt-3.5-turbo": {
|
"gpt-3.5-turbo": {
|
||||||
"api_base_url": "https://api.openai.com/v1",
|
"api_base_url": "https://api.openai.com/v1",
|
||||||
"api_key": os.environ.get("OPENAI_API_KEY"),
|
"api_key": os.environ.get("OPENAI_API_KEY"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user