Skip to content

Commit

Permalink
chore: fallback the trace_to_root retrieve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hustshawn committed Mar 29, 2024
1 parent c2073e1 commit 0696e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/usecases/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ def chat(user_id: str, chat_input: ChatInput) -> ChatOutput:
messages = trace_to_root(
node_id=chat_input.message.parent_message_id, message_map=message_map
)
messages = []
messages.append(chat_input.message) # type: ignore

# Create payload to invoke Bedrock
args = compose_args(
messages=messages,
Expand Down

0 comments on commit 0696e31

Please sign in to comment.