From 2874e136fb193ccf2e6c4bc2f6400997fe666e0f Mon Sep 17 00:00:00 2001 From: doria <93405247+dr-frmr@users.noreply.github.com> Date: Wed, 25 Jun 2025 14:50:13 -0400 Subject: [PATCH] fix: remove hardcoded responses (#141) --- src/crud.py | 8 ++++---- src/utils/history.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crud.py b/src/crud.py index ed40fdb5..5471fb59 100644 --- a/src/crud.py +++ b/src/crud.py @@ -1099,10 +1099,10 @@ async def get_working_representation( latest_representation_obj = result.scalar_one_or_none() latest_representation = ( latest_representation_obj.internal_metadata.get( - USER_REPRESENTATION_METADATA_KEY, "No user representation available." + USER_REPRESENTATION_METADATA_KEY, "" ) if latest_representation_obj - else "No user representation available." + else "" ) else: # Fetch the latest global level user representation @@ -1116,10 +1116,10 @@ async def get_working_representation( latest_representation_obj = result.scalar_one_or_none() latest_representation = ( latest_representation_obj.internal_metadata.get( - USER_REPRESENTATION_METADATA_KEY, "No user representation available." + USER_REPRESENTATION_METADATA_KEY, "" ) if latest_representation_obj - else "No user representation available." + else "" ) return latest_representation diff --git a/src/utils/history.py b/src/utils/history.py index b940bc6c..3be0adad 100644 --- a/src/utils/history.py +++ b/src/utils/history.py @@ -228,7 +228,7 @@ async def create_summary( content=( f"Conversation with {len(messages)} messages about {messages[-1].content[:30]}..." if messages - else "No messages to summarize!" + else "" ), message_count=0, summary_type=summary_type.value,