mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
1e14d49de2
commit
c8f530cbbc
8 files changed
+146
-59
No files matched your search
@@ -2279,7 +2279,13 @@ async def run_chat_task(
|
||||
_task_state.pop(message_id, None)
|
||||
|
||||
async def auto_answer():
|
||||
await asyncio.sleep(arguments["autoResolutionMs"] / 1000)
|
||||
from cptr.socket.main import is_chat_visible
|
||||
|
||||
remaining = arguments["autoResolutionMs"] / 1000
|
||||
while remaining > 0:
|
||||
await asyncio.sleep(1)
|
||||
if not is_chat_visible(user_id, chat_id):
|
||||
remaining -= 1
|
||||
from cptr.app import app
|
||||
from cptr.routers.chat import AskUserNotPendingError, resolve_ask_user
|
||||
|
||||
|
||||
Reference in new issue
Block a user