dfa32412 commited on
Commit
fdb349c
·
verified ·
1 Parent(s): 37977de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -316,6 +316,7 @@ async def generate_openai_response(full_response: str, request_id: str, model: s
316
 
317
 
318
  async def stream_openai_response(response, request_id: str, model: str, token: str):
 
319
  """流式返回OpenAI API格式的响应"""
320
  timestamp = int(time.time())
321
  full_response = ""
 
316
 
317
 
318
  async def stream_openai_response(response, request_id: str, model: str, token: str):
319
+ global TOKEN_INDEX
320
  """流式返回OpenAI API格式的响应"""
321
  timestamp = int(time.time())
322
  full_response = ""