OraCatQAQ commited on
Commit
07d6995
·
1 Parent(s): 58d32e7
Files changed (1) hide show
  1. app.py +2 -2
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("OPENAI_API_KEY", "")
433
  if not api_key:
434
- raise HTTPException(status_code=500, detail="未配置 OPENAI_API_KEY 环境变量")
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