fixed injection watcher

This commit is contained in:
2026-06-11 08:18:30 +03:00
parent 481b93e84a
commit b5a1831b8e
5 changed files with 56 additions and 18 deletions
+2 -1
View File
@@ -171,6 +171,7 @@ class LLMClient:
temperature: float = 0.7,
model: str | None = None,
for_extraction: bool = False,
visible_reply: bool = False,
) -> dict[str, Any]:
use_tools = bool(tools) and self.tools_enabled and not for_extraction
kwargs: dict[str, Any] = {
@@ -198,7 +199,7 @@ class LLMClient:
reasoning = str(value)
break
if not content and reasoning:
if not content and reasoning and not visible_reply:
content = reasoning
result: dict[str, Any] = {