fixed anthropic support. Anthropic has different format of response when it has tool calls. Explicit handling added

This commit is contained in:
Edward Sun
2025-06-21 12:51:34 -07:00
parent 7eaf4d995f
commit 52284ce13c
5 changed files with 26 additions and 6 deletions

View File

@@ -97,7 +97,7 @@ class MessageBuffer:
if content is not None:
latest_section = section
latest_content = content
if latest_section and latest_content:
# Format the current section for display
section_titles = {
@@ -808,7 +808,7 @@ def run_analysis():
msg_type = "System"
# Add message to buffer
message_buffer.add_message(msg_type, content)
message_buffer.add_message(msg_type, content)
# If it's a tool call, add it to tool calls
if hasattr(last_message, "tool_calls"):