mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-06 07:51:53 +00:00
fix(aux): log sanitizer failures instead of silently swallowing them
Match the warning behavior of the parent main-agent path in chat_completion_helpers.py — sanitizer failures should be visible in logs, not silent.
This commit is contained in:
parent
2fae8fba9c
commit
9cae9c0166
1 changed files with 5 additions and 2 deletions
|
|
@ -713,8 +713,11 @@ class _CodexCompletionsAdapter:
|
|||
try:
|
||||
from tools.schema_sanitizer import strip_pattern_and_format
|
||||
tools, _ = strip_pattern_and_format(list(tools))
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as exc:
|
||||
logger.warning(
|
||||
"Auxiliary client: failed to sanitize tool schemas for "
|
||||
"Codex/xAI Responses path: %s", exc,
|
||||
)
|
||||
converted = []
|
||||
for t in tools:
|
||||
fn = t.get("function", {}) if isinstance(t, dict) else {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue