Update app.py
Browse files
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 = ""
|