Skip to content

refactor: remove legacy fallback chains and dual-protocol shims - #103

Merged
Patel230 merged 10 commits into
mainfrom
feature/gateway-alphabetical-sort
Aug 1, 2026
Merged

refactor: remove legacy fallback chains and dual-protocol shims#103
Patel230 merged 10 commits into
mainfrom
feature/gateway-alphabetical-sort

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Removes all legacy provider fallback machinery:

  • Drop OpenRouter/direct fallback stages from routing policy and the DirectFallbacks catalog field
  • Delete client/fallback.go / client/weighted.go provider chains
  • Simplify MiMo and DeepSeek clients to OpenAI-compatible endpoints; remove Anthropic fallback legs, MiniMax dual-protocol client, and ResolveXiaomiAnthropicBase
  • Remove legacy xiaomi keychain account alias migration and XIAOMI_MIMO_API_KEY credential aliases
  • Fix DeepSeek canonical base URL (https://api.deepseek.com, no /v1) and add StepFun cn region option

Also includes the gateway alphabetical-sort feature work from the branch tip.

Patel230 added 4 commits July 31, 2026 18:23
- Drop OpenRouter/direct fallback stages from routing policy and the
  DirectFallbacks catalog field
- Delete client fallback.go/weighted.go provider chains
- Simplify MiMo and DeepSeek clients to OpenAI-compatible endpoints;
  remove Anthropic fallback legs, MiniMax dual-protocol client, and
  ResolveXiaomiAnthropicBase
- Remove legacy xiaomi keychain account alias migration and
  XIAOMI_MIMO_API_KEY credential aliases
- Fix DeepSeek canonical base URL and add StepFun cn region option
Patel230 added 6 commits July 31, 2026 22:49
…l round-trips

Replace StripReasoningFromInput with RequiresReasoningPassback. DeepSeek
returns HTTP 400 when a prior assistant turn performed a tool call without
its reasoning_content being passed back, so forward it for DeepSeek while
keeping all other providers from transmitting reasoning_content.
type:enabled + budget_tokens is deprecated on Claude 4.6 and rejected on
4.7+, so explicit ThinkingMode enabled now maps to adaptive. OpenRouter
reasoning no longer sends effort:none to disable since mandatory-reasoning
models reject it.
Pulls in the Gateway/Model contract extensions (region options,
thinking defaults, DNS host) that the engine catalog and control plane
rely on.
The TTL cleanup test used fixed wall-clock sleeps and failed under the
race detector / loaded CI runners (Expected 0 inflight after TTL, got 1).
Poll for the expected stats state with a deadline instead.
@Patel230
Patel230 merged commit a8dd5d0 into main Aug 1, 2026
16 checks passed
@Patel230
Patel230 deleted the feature/gateway-alphabetical-sort branch August 1, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant