Spaces:
Sleeping
Sleeping
minor fix
Browse files
routers/get_chatrespone.py
CHANGED
@@ -50,9 +50,6 @@ async def get_chat_respone(body: ChatInputForm, api_key: str = Depends(get_api_k
|
|
50 |
except Exception:
|
51 |
return {"success": False, "status": Exception}
|
52 |
|
53 |
-
|
54 |
-
# get_chat_respone()
|
55 |
-
|
56 |
def get_response(response: Iterator[str]):
|
57 |
for chunk in response:
|
58 |
yield chunk
|
|
|
50 |
except Exception:
|
51 |
return {"success": False, "status": Exception}
|
52 |
|
|
|
|
|
|
|
53 |
def get_response(response: Iterator[str]):
|
54 |
for chunk in response:
|
55 |
yield chunk
|