Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion agent/agent_runtime_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2873,7 +2873,10 @@ def sanitize_api_messages(messages: List[Dict[str, Any]]) -> List[Dict[str, Any]
seen_assistant_call_ids.add(cid)
kept_tcs.append(tc)
if len(kept_tcs) != len(msg.get("tool_calls") or []):
msg = {**msg, "tool_calls": kept_tcs}
if kept_tcs:
msg = {**msg, "tool_calls": kept_tcs}
else:
msg = {k: v for k, v in msg.items() if k != "tool_calls"}
deduped.append(msg)
elif role == "tool":
cid = (msg.get("tool_call_id") or "").strip()
Expand Down
2 changes: 1 addition & 1 deletion agent/transports/chat_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _reasoning_config_for_model(model: str, reasoning_config: dict | None) -> di
if not isinstance(reasoning_config, dict):
return reasoning_config
if (
"gpt-5.6" in (model or "").lower()
("gpt-5.6" in (model or "").lower() or "glm-" in (model or "").lower())
and str(reasoning_config.get("effort") or "").strip().lower() == "ultra"
):
normalized = dict(reasoning_config)
Expand Down
3 changes: 2 additions & 1 deletion hermes_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16084,10 +16084,11 @@ def _progress(info):
os.path.getsize(db_path) / (1024 * 1024) if db_path.exists() else 0.0
)
saved = before_mb - after_mb
saved_label = f"reclaimed {saved:.1f} MB" if saved >= 0 else f"grew by {-saved:.1f} MB"
print(f"\n✓ Search index optimized.")
print(
f" Database size: {before_mb:.1f} MB -> {after_mb:.1f} MB "
f"(reclaimed {saved:.1f} MB)"
f"({saved_label})"
)
if result.get("vacuumed") is False:
print(" (VACUUM was skipped or failed — run "
Expand Down
Loading