fix current page info

This commit is contained in:
ipu 2025-09-04 12:42:39 +03:00
parent 959fd1ac86
commit 735ccb757c

View file

@ -149,7 +149,7 @@ class ChatService:
user_state = await self.get_user_state(uid) user_state = await self.get_user_state(uid)
instructions += f"\n\n# User Information\nApplication state (None means that application was not sent or pending):\n{user_state}" instructions += f"\n\n# User Information\nApplication state (None means that application was not sent or pending):\n{user_state}"
if current_page: if current_page:
instructions += f"\n\n# User now is currently on page:" instructions += f"\n\n# User now is currently on page: {current_page}"
chat_response = await self.send_message(session_id, message, instructions) chat_response = await self.send_message(session_id, message, instructions)
history = await self.get_chat_history(session_id) history = await self.get_chat_history(session_id)