fixed anthropic support. Anthropic has different format of response when it has tool calls. Explicit handling added
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user