Fix stop bug

This commit is contained in:
2025-04-19 12:15:23 +00:00
parent 5ac701316e
commit 9315f87f53

View File

@@ -124,6 +124,8 @@ class WebAgent(BaseAgent):
if llm_name not in self._llms:
raise ValueError(f"Unknown LLM: {llm_name}")
self._stop_flags[llm_name] = True
with self._llm_lock:
self._set_llm_state(llm_name, LlmState.IDLE)
def approve_response(self) -> None:
"""Process approved response from specified LLM"""