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
Windows onboarding: OpenRouter API key entry fails with provider error #495
This wasn't OpenRouter rejecting the key at all. The key saves fine, but the first message after login fails with HTTP 400 whenever the default model routes to an Anthropic-family upstream (Anthropic/Vertex/Bedrock):
tools.N.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level
The swarm tool declares its action branches with a top-level anyOf, which those upstreams reject for the entire request, so the provider looks bricked immediately after onboarding. That's exactly the 'provider error' in the Discord report.
Fix: the OpenRouter request sanitizer now flattens top-level oneOf/anyOf/allOf into a plain object schema (same strategy as the direct Anthropic provider). Verified A/B with a fresh JCODE_HOME and a real OpenRouter key: old binary 400s on the first turn, fixed binary completes it.
Activity
1jehuang commentedon Jul 17, 2026
Root cause found and fixed in 62f25e2.
This wasn't OpenRouter rejecting the key at all. The key saves fine, but the first message after login fails with HTTP 400 whenever the default model routes to an Anthropic-family upstream (Anthropic/Vertex/Bedrock):
The
swarmtool declares its action branches with a top-levelanyOf, which those upstreams reject for the entire request, so the provider looks bricked immediately after onboarding. That's exactly the 'provider error' in the Discord report.Fix: the OpenRouter request sanitizer now flattens top-level
oneOf/anyOf/allOfinto a plain object schema (same strategy as the direct Anthropic provider). Verified A/B with a freshJCODE_HOMEand a real OpenRouter key: old binary 400s on the first turn, fixed binary completes it.fix(openrouter): flatten top-level schema combinators in tool paramet…
feat(schema): replace per-provider deny-lists with a dialect system
fix(openai): strip unsupported format on the non-strict path too
fix(openrouter): flatten top-level schema combinators in tool paramet…
feat(schema): replace per-provider deny-lists with a dialect system
fix(openai): strip unsupported format on the non-strict path too
feat(schema): replace per-provider deny-lists with a dialect system
fix(openai): strip unsupported format on the non-strict path too
fix(openrouter): flatten top-level schema combinators in tool paramet…
feat(schema): replace per-provider deny-lists with a dialect system
fix(openai): strip unsupported format on the non-strict path too
feat(schema): replace per-provider deny-lists with a dialect system
fix(openai): strip unsupported format on the non-strict path too
feat(schema): replace per-provider deny-lists with a dialect system
fix(openai): strip unsupported format on the non-strict path too
feat(schema): replace per-provider deny-lists with a dialect system
fix(openai): strip unsupported format on the non-strict path too
fix(openrouter): flatten top-level schema combinators in tool paramet…