fix: remove hardcoded responses (#141)
This commit is contained in:
parent
24bf8eeeb4
commit
2874e136fb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue