From b77be4c25030cc9106688045fa3c0b92e2066bb6 Mon Sep 17 00:00:00 2001 From: ipu Date: Wed, 1 Oct 2025 14:38:03 +0300 Subject: [PATCH] fix name context --- src/api/v1/router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/v1/router.py b/src/api/v1/router.py index e1b2bef..e145e9c 100644 --- a/src/api/v1/router.py +++ b/src/api/v1/router.py @@ -56,9 +56,9 @@ async def init_chat(request: models.InitializeChatRequest): name = None if request.context and request.context.name: - name = request.context.name + name = request.context.name.first_name - result = await chat_service.initialize_chat(str(request.userId), application, name.first_name) + result = await chat_service.initialize_chat(str(request.userId), application, name) return models.InitializeChatResponse( session_id=result["session_id"], answer=result["answer"],