Spaces:
Sleeping
Sleeping
penguin218
commited on
Commit
·
20f9a7c
1
Parent(s):
33cdcbb
app.py
CHANGED
@@ -10,7 +10,8 @@ callback_manager = CallbackManager()
|
|
10 |
|
11 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
12 |
model = "internlm2.5-latest"
|
13 |
-
|
|
|
14 |
|
15 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
16 |
# model = "internlm/internlm2_5-7b-chat"
|
|
|
10 |
|
11 |
api_base_url = "https://internlm-chat.intern-ai.org.cn/puyu/api/v1/"
|
12 |
model = "internlm2.5-latest"
|
13 |
+
# 通过Spaces的secret传入
|
14 |
+
api_key = os.environ.get('API_KEY')
|
15 |
|
16 |
# api_base_url = "https://api.siliconflow.cn/v1"
|
17 |
# model = "internlm/internlm2_5-7b-chat"
|