LiteLLM: drop unsupported params (fixes Hermes routing) #16

Merged
william merged 1 commits from fix/litellm-drop-params into main 2026-08-23 17:15:38 +00:00
Collaborator

Details in the commit message.

Details in the commit message.
claude-bot added 1 commit 2026-08-23 17:09:51 +00:00
Hermes sends provider-agnostic params like reasoning_effort that OpenRouter's
auto model doesn't accept, causing a 400 on every request until this was
set. Also documents (in a follow-up, not this commit) that getting Hermes to
actually use this gateway needed live 'hermes config set' calls on the
running container (providers.litellm.{api,api_key}, model.provider=litellm,
model.default=auto) — that state lives in the hermes-data volume, not git,
so it isn't reproduced automatically by a fresh deploy. See README.
Author
Collaborator

This is a tiny, well-scoped config change, so a full review is quick.

Correctness

  • Global scope is broader than the stated fix. drop_params: true at the top-level litellm_settings applies to every model in model_list, including anthropic-claude, whose whole comment block (lines 14–22) stresses it's fragile and only confirmed working with the exact request shape the real claude CLI sends. Silently dropping params on that route could mask why a request stops working (e.g. if the CLI's fingerprinting relies on a param LiteLLM decides is "unsupported" and strips) instead of erroring loudly. If the intent is only to fix Hermes-routed traffic, scoping drop_params per-model (it's supported in litellm_params for chosen model entries) or at least confirming this route's traffic is unaffected would be safer than a blanket setting.
  • No actual bug in the YAML itself — drop_params is a real, documented LiteLLM setting and true is valid at litellm_settings scope.

Simplification / notes

  • Change is minimal and appropriately commented; nothing to simplify.
  • Consider naming the specific param(s) actually observed to break Hermes routing (e.g. reasoning_effort) in the commit message/PR description with a link to logs/error, since "Details in the commit message" — worth confirming the commit body actually has that evidence rather than just restating the YAML comment.

Net: functionally reasonable one-line fix, but flag the global-vs-per-model scope tradeoff against the anthropic-claude route's known fragility before merging.

This is a tiny, well-scoped config change, so a full review is quick. ## Correctness - **Global scope is broader than the stated fix.** `drop_params: true` at the top-level `litellm_settings` applies to *every* model in `model_list`, including `anthropic-claude`, whose whole comment block (lines 14–22) stresses it's fragile and only confirmed working with the exact request shape the real `claude` CLI sends. Silently dropping params on that route could mask why a request stops working (e.g. if the CLI's fingerprinting relies on a param LiteLLM decides is "unsupported" and strips) instead of erroring loudly. If the intent is only to fix Hermes-routed traffic, scoping `drop_params` per-model (it's supported in `litellm_params` for chosen model entries) or at least confirming this route's traffic is unaffected would be safer than a blanket setting. - No actual bug in the YAML itself — `drop_params` is a real, documented LiteLLM setting and `true` is valid at `litellm_settings` scope. ## Simplification / notes - Change is minimal and appropriately commented; nothing to simplify. - Consider naming the specific param(s) actually observed to break Hermes routing (e.g. `reasoning_effort`) in the commit message/PR description with a link to logs/error, since "Details in the commit message" — worth confirming the commit body actually has that evidence rather than just restating the YAML comment. Net: functionally reasonable one-line fix, but flag the global-vs-per-model scope tradeoff against the `anthropic-claude` route's known fragility before merging.
william merged commit 3dc6397862 into main 2026-08-23 17:15:38 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: william/gitops-automation#16