[Eva] ты помнишь проблему с агентом Ева?) #60

Merged
Drobysh merged 7 commits from eva/chat-5b1483-backend into main 2026-11-03 18:20:32 +00:00
Showing only changes of commit 5f72bfee6a - Show all commits
+4 -1
View File
@@ -1041,7 +1041,10 @@ async def teacher_free_message(request: Request):
async with pool.acquire() as conn:
await increment_teacher_ai_usage(conn, telegram_id)
return {"response": ai_response}
async with pool.acquire() as conn:
usage = await get_teacher_ai_usage(conn, telegram_id)
return {"response": ai_response, "usage": usage, "limit": TEACHER_AI_DAILY_LIMIT}
@router.post("/diagnostic-test")