mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-30 04:30:13 +00:00
enhance: start chat after replay
This commit is contained in:
parent
28837b4c96
commit
da65d3a520
3 changed files with 9 additions and 1 deletions
|
|
@ -61,6 +61,9 @@ async def post(data: Chat, request: Request):
|
|||
if data.is_cloud():
|
||||
os.environ["cloud_api_key"] = data.api_key
|
||||
|
||||
# Put initial action in queue to start processing
|
||||
await task_lock.put_queue(ActionImproveData(data=data.question))
|
||||
|
||||
chat_logger.info(f"Chat session initialized, starting streaming response for project_id: {data.project_id}")
|
||||
return StreamingResponse(step_solve(data, request, task_lock), media_type="text/event-stream")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue