Spaces:
Sleeping
Sleeping
OraCatQAQ
commited on
Commit
·
07d6995
1
Parent(s):
58d32e7
Update
Browse files
app.py
CHANGED
@@ -429,9 +429,9 @@ async def create_chat_completion(
|
|
429 |
async def get_account_balance():
|
430 |
"""查看账户余额"""
|
431 |
# 从环境变量获取API密钥
|
432 |
-
api_key = os.getenv("
|
433 |
if not api_key:
|
434 |
-
raise HTTPException(status_code=500, detail="未配置
|
435 |
|
436 |
tokens = api_key.split(',')
|
437 |
|
|
|
429 |
async def get_account_balance():
|
430 |
"""查看账户余额"""
|
431 |
# 从环境变量获取API密钥
|
432 |
+
api_key = os.getenv("DEEPSIDER_TOKEN", "")
|
433 |
if not api_key:
|
434 |
+
raise HTTPException(status_code=500, detail="未配置 DEEPSIDER_TOKEN 环境变量")
|
435 |
|
436 |
tokens = api_key.split(',')
|
437 |
|