feat(core): Wire tool toggles to AI provider tool declaration payload
This commit is contained in:
1
gui.py
1
gui.py
@@ -1203,6 +1203,7 @@ class App:
|
||||
if global_sp: combined_sp.append(global_sp.strip())
|
||||
if project_sp: combined_sp.append(project_sp.strip())
|
||||
ai_client.set_custom_system_prompt("\n\n".join(combined_sp))
|
||||
ai_client.set_agent_tools(self.project.get("agent", {}).get("tools", {}))
|
||||
temp = dpg.get_value("ai_temperature") if dpg.does_item_exist("ai_temperature") else 0.0
|
||||
max_tok = dpg.get_value("ai_max_tokens") if dpg.does_item_exist("ai_max_tokens") else 8192
|
||||
trunc = dpg.get_value("ai_history_trunc") if dpg.does_item_exist("ai_history_trunc") else 8000
|
||||
|
||||
Reference in New Issue
Block a user