3 Commits
Author SHA1 Message Date
Hermes 83a56eb11d tests: wait for a port instead of sleeping before it
Run 13 failed the whole cache section with six checks and no listener: the
router was started with "sleep 0.8" and curl asked too early. The same fixed
sleep sat in front of a dozen other routers and stubs. Every one now waits for
its port (wait_port), and the two checks that need a listener to be *absent*
(mesh without a secret, roll3 without SO_REUSEPORT) wait for their log line
(wait_log) instead of hoping the message is there after 0.6 s.

Same checks, no fixed windows left before a listener; the suite is also faster
because it no longer sleeps through them. Full run: 537 OK, 0 FAIL, PASS.
2026-11-19 06:59:55 +00:00
Hermes df61582139 effort: model#variant für alle Endpoint-Arten, Pool-Member mit Modell
- OpenAI-kompatible Endpoints bekommen aus model#max reasoning_effort;
  Anthropic output_config.effort; opencode behält seine Variante.
- Ein Rewrite-Ziel (as) kann selbst ein #effort tragen; ein Client-Selektor
  überlebt den as-Rewrite. Der Cache-Schlüssel bleibt der ursprüngliche Body.
- Pool-Member dürfen endpoint/model#effort oder endpoint#effort heißen; ein
  Regel-as bleibt für Member ohne eigenes Modell in Kraft.
- # ist nur am Wortanfang ein Kommentar, innerhalb eines Tokens Daten.
- Tests decken Anthropic, OpenAI-kompatibel, as, Pool-Member und rule-as ab.
2026-11-16 08:35:16 +00:00
Hermes b3c426872b anthropic: Effort nach output_config, kind anthropic
- kind anthropic lässt den nativen /v1/messages-Body stehen und übersetzt nur
  den Effort-Selektor: reasoning_effort, reasoning.effort, variant und
  model#variant werden output_config.effort; minimal wird low, ultra wird max,
  none wird thinking.type=disabled. Ein natives output_config.effort gewinnt.
- Die Normalisierung läuft vor dem as-Rewrite, damit der Client-Selektor nicht
  mit dem Zielnamen verschwindet. Der Cache-Schlüssel bleibt der ursprüngliche
  Body.
- Auto-Endpunkte aus ANTHROPIC_API_KEY/CLAUDE_API_KEY bekommen kind anthropic.
  Ein Client-anthropic-version wird nicht vom statischen Header dupliziert;
  x-api-key fällt weg, wenn junction den Endpunkt-Schlüssel einsetzt.
- tests/effort.sh deckt Anthropic und den unveränderten OpenAI-kompatiblen
  Pfad (Ollama Cloud) ab; README und Beispiele dokumentieren kind anthropic.
2026-11-15 22:03:58 +00:00