fixes tool callong
This commit is contained in:
@@ -602,7 +602,9 @@ impl TurnManager {
|
||||
// is re-asked without streaming, where the server returns the call it
|
||||
// dropped from the SSE path. Bounded by `LLM_TOOL_MAX_ITERATIONS`. With
|
||||
// no tools configured the loop runs exactly once.
|
||||
let registry = llm.tools().cloned();
|
||||
// Re-read per turn: a runtime override (`POST /api/tools`) is picked up
|
||||
// by the next turn without a restart.
|
||||
let registry = llm.tools();
|
||||
let max_rounds = self.config.llm_tool_max_iterations.max(1);
|
||||
let mut spoken = String::new();
|
||||
let mut round = 0usize;
|
||||
|
||||
Reference in New Issue
Block a user