fix(gui): do not auto-add tool calls/results to discussion history if ui_auto_add_history is false
This commit is contained in:
@@ -1496,6 +1496,7 @@ class AppController:
|
|||||||
})
|
})
|
||||||
|
|
||||||
if kind in ("tool_result", "tool_call"):
|
if kind in ("tool_result", "tool_call"):
|
||||||
|
if self.ui_auto_add_history:
|
||||||
role = "Tool" if kind == "tool_result" else "Vendor API"
|
role = "Tool" if kind == "tool_result" else "Vendor API"
|
||||||
content = ""
|
content = ""
|
||||||
if kind == "tool_result":
|
if kind == "tool_result":
|
||||||
|
|||||||
Reference in New Issue
Block a user