Skip to content

Commit 2d0e393

Browse files
author
xin.xu1
committed
修改 ai 参数
1 parent c2743c8 commit 2d0e393

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

large_model/api/default_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ def set_config(self, api_config: dict) -> bool:
1616
if api_config is None:
1717
raise ValueError("api_config is None")
1818
for key in api_config:
19-
self.params[key] = api_config[key]
2019
# 如果为大写,则写入环境变量
2120
if key.isupper():
2221
os.environ[key] = api_config[key]
22+
continue
23+
self.params[key] = api_config[key]
24+
2325
return True
2426

2527
def generate_text(self, messages: list) -> bool:

0 commit comments

Comments
 (0)