From 60a3d903ae52cf16776f5d4c36fabdf4a457e849 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 18 Feb 2025 23:43:29 +0100 Subject: [PATCH] Update --- src/modules/stream_notifications/messages_proc.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/stream_notifications/messages_proc.py b/src/modules/stream_notifications/messages_proc.py index de36b30..69ed20f 100644 --- a/src/modules/stream_notifications/messages_proc.py +++ b/src/modules/stream_notifications/messages_proc.py @@ -110,11 +110,6 @@ async def get_completion(messages: list[dict]) -> str: } ] - messages.append({ - "role": "user", - "content": data_messages - }) - async with AsyncClient() as client: response = await client.post( "https://openrouter.ai/api/v1/chat/completions", @@ -124,7 +119,7 @@ async def get_completion(messages: list[dict]) -> str: }, json={ "model": "google/gemini-2.0-flash-thinking-exp:free", - "messages": messages + "messages": data_messages } )