feat(FN-1474): add Kimi endpoint fallback for 404 url.not_found

This commit is contained in:
gsxdsm
2026-04-09 21:36:53 -07:00
parent 2ef27cf749
commit b7005001d2
3 changed files with 305 additions and 15 deletions

View File

@@ -0,0 +1,5 @@
---
"@gsxdsm/fusion": patch
---
Fix Kimi usage endpoint returning 404 when Moonshot API endpoint path format changed. Add fallback from `/v1/coding-plan/usage` (hyphen) to `/v1/coding_plan/usage` (underscore) when the first endpoint returns `404 url.not_found`. Auth errors (401/403) still short-circuit immediately without fallback.