aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-07-30 10:33:22 +0200
committerFuwn <[email protected]>2025-07-30 10:33:22 +0200
commita4884b8d40caa93f6cf0ef66bcdc4be154aa054c (patch)
tree26191f21ea626d33171f1c353a50388677a70346
parentfeat(umapyai): Improve sense of self (diff)
downloadumapyai-a4884b8d40caa93f6cf0ef66bcdc4be154aa054c.tar.xz
umapyai-a4884b8d40caa93f6cf0ef66bcdc4be154aa054c.zip
refactor(umapyai): Update variable name
-rw-r--r--src/umapyai/__init__.py2
1 files changed, 1 insertions, 1 deletions
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"