From a4884b8d40caa93f6cf0ef66bcdc4be154aa054c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 30 Jul 2025 10:33:22 +0200 Subject: refactor(umapyai): Update variable name --- src/umapyai/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/umapyai/__init__.py b/src/umapyai/__init__.py index 4eadd0f..b124579 100644 --- a/src/umapyai/__init__.py +++ b/src/umapyai/__init__.py @@ -44,7 +44,7 @@ def prompt(rag_context, user_query, chat_history): "If the context does not contain enough information to give a complete answer, " "say so, but still provide any relevant information you did find.") history_string = "\n".join( - [f"{msg['role']}: {msg['content']}" for msg in chat_history]) + [f"{message['role']}: {message['content']}" for message in chat_history]) return ( f"{system_prompt}\n\n" -- cgit v1.2.3