diff options
| author | Fuwn <[email protected]> | 2025-07-30 10:33:22 +0200 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-07-30 10:33:22 +0200 |
| commit | a4884b8d40caa93f6cf0ef66bcdc4be154aa054c (patch) | |
| tree | 26191f21ea626d33171f1c353a50388677a70346 | |
| parent | feat(umapyai): Improve sense of self (diff) | |
| download | umapyai-a4884b8d40caa93f6cf0ef66bcdc4be154aa054c.tar.xz umapyai-a4884b8d40caa93f6cf0ef66bcdc4be154aa054c.zip | |
refactor(umapyai): Update variable name
| -rw-r--r-- | src/umapyai/__init__.py | 2 |
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" |