You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: cron jobs fail with provider.sort: Invalid input after v0.11.0 #20586
yes you are right, "intelligence" isn't a valid sort value and OpenRouter rightfully rejected it. Your workaround (hermes config set provider_routing.sort null) is perfectly fine for unblocking your cron jobs right now.
That said, I think there's a deeper problem here beyond just your config typo. The real bug is that Hermes blindly forwards whatever provider_routing.sort value it finds in config.yaml straight to OpenRouter, with zero validation. So this doesn't just affect you with "intelligence" — it affects anyone who:
Typo's the value (happens to the best of us)
Sets it to true or "" or some other non-string type by accident
Uses a value that's technically valid YAML but meaningless to OpenRouter
I've put together a PR that builds a proper guardrail instead of just patching the symptom. It adds a whitelist ("price", "throughput", "latency") and silently drops anything that doesn't match — with a warning log so you know what happened, but no crash. It also handles the dict format ({"by": "price", "partition": "none"}) that OpenRouter supports.
Same fix is applied in two places — the main request path and the iteration-limit summary path — plus an or {} safety net in the cron scheduler so None config values don't blow up either.
Activity
lapidem commentedon May 6, 2026
調査結果 / Root Cause Found │
│
provider.sort: Invalid input エラーの原因は、~/.hermes/config.yaml の provider_routing.sort に不正な値 "intelligence" │
が設定されていたためです。 ┃
┃
OpenRouter API の provider.sort は以下の3値のみ受け付けます: ┃
┃
• throughput ┃
• latency ┃
• price ┃
┃
ご自分無くは hermes config set provider_routing.sort null で無効化し、Cronジョブが正常動作することを確認しました。 ┃
┃
また provider_sort を空文字 "" にセットした場合も同様に OpenRouter から Invalid input が返される可能性があります。値が ┃
truthy な場合のみ extra_body.provider に含めるような、入力値のバリデーション或いはフィルタリングが必要かもしれません。
Ade5954 commentedon May 6, 2026
yes you are right,
"intelligence"isn't a valid sort value and OpenRouter rightfully rejected it. Your workaround (hermes config set provider_routing.sort null) is perfectly fine for unblocking your cron jobs right now.That said, I think there's a deeper problem here beyond just your config typo. The real bug is that Hermes blindly forwards whatever
provider_routing.sortvalue it finds in config.yaml straight to OpenRouter, with zero validation. So this doesn't just affect you with"intelligence"— it affects anyone who:trueor""or some other non-string type by accidentI've put together a PR that builds a proper guardrail instead of just patching the symptom. It adds a whitelist (
"price","throughput","latency") and silently drops anything that doesn't match — with a warning log so you know what happened, but no crash. It also handles the dict format ({"by": "price", "partition": "none"}) that OpenRouter supports.Same fix is applied in two places — the main request path and the iteration-limit summary path — plus an
or {}safety net in the cron scheduler soNoneconfig values don't blow up either.