[kimi] Refactor cascade.py::complete() — extract helper methods (#1185) #1197

Closed
kimi wants to merge 1 commits from kimi/issue-1185 into main

1 Commits

Author SHA1 Message Date
kimi
e2d662257a refactor: break up cascade.py::complete() into helper methods (#1185)
Some checks failed
Tests / lint (pull_request) Successful in 30s
Tests / test (pull_request) Failing after 7m49s
Extract _get_providers_for_tier() and _try_single_provider() to reduce
the complexity of complete(). The method was 84 lines; now the main
logic is clearer and each helper has a single responsibility.

- _get_providers_for_tier(): Filters providers by cascade_tier
- _try_single_provider(): Attempts a single provider with metabolic protocol

Fixes #1185
2026-03-23 17:55:30 -04:00