From 4dfe96e0e80dcb127928b9d42783c7b40bf52670 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 13 Aug 2026 18:34:16 -0600 Subject: [PATCH] refac --- cptr/routers/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cptr/routers/chat.py b/cptr/routers/chat.py index 0b92138..b9346bd 100644 --- a/cptr/routers/chat.py +++ b/cptr/routers/chat.py @@ -1268,7 +1268,7 @@ async def resolve_ask_user( await emit_to_user( chat.user_id, {"chat_id": chat_id, "message_id": message_id, "output": output[-1]} ) - target = await resolve_model_target(msg.model or "", app.state) + target = await resolve_model_target(msg.model or "", getattr(app, "state", None)) start_task( None, message_id=message_id,