Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
164fb4e
1
Parent(s):
cd9c216
fix: 修复不终止重启时重复添加V1的问题
Browse files- modules/config.py +1 -1
modules/config.py
CHANGED
@@ -168,7 +168,7 @@ api_host = os.environ.get(
|
|
168 |
"OPENAI_API_BASE", config.get("openai_api_base", None))
|
169 |
if api_host is not None:
|
170 |
shared.state.set_api_host(api_host)
|
171 |
-
os.environ["OPENAI_API_BASE"] = f"{api_host}/v1"
|
172 |
logging.info(f"OpenAI API Base set to: {os.environ['OPENAI_API_BASE']}")
|
173 |
|
174 |
default_chuanhu_assistant_model = config.get(
|
|
|
168 |
"OPENAI_API_BASE", config.get("openai_api_base", None))
|
169 |
if api_host is not None:
|
170 |
shared.state.set_api_host(api_host)
|
171 |
+
# os.environ["OPENAI_API_BASE"] = f"{api_host}/v1"
|
172 |
logging.info(f"OpenAI API Base set to: {os.environ['OPENAI_API_BASE']}")
|
173 |
|
174 |
default_chuanhu_assistant_model = config.get(
|