merge the game handeling to the full flow

parent b47fae30
...@@ -114,7 +114,8 @@ def create_app() -> FastAPI: ...@@ -114,7 +114,8 @@ def create_app() -> FastAPI:
async def chat_handler( async def chat_handler(
file: Optional[UploadFile] = File(None), file: Optional[UploadFile] = File(None),
text: Optional[str] = Form(None), text: Optional[str] = Form(None),
student_id: str = Form("student_001") student_id: str = Form("student_001"),
game_context: Optional[str] = Form(None)
): ):
""" """
Handles incoming chat messages (either text or audio). Handles incoming chat messages (either text or audio).
...@@ -131,7 +132,8 @@ def create_app() -> FastAPI: ...@@ -131,7 +132,8 @@ def create_app() -> FastAPI:
result = container.chat_service.process_message( result = container.chat_service.process_message(
student_id=student_id, student_id=student_id,
file=file, file=file,
text=text text=text,
game_context=game_context
) )
print(f"Chat service result: {result}") print(f"Chat service result: {result}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment