feat(FN-1547): verify and lock Kimi usage endpoint configuration with regression tests
- Verify underscore endpoint (/v1/coding_plan/usage) as primary (Codexbar-validated) - Add hyphen endpoint (/v1/coding-plan/usage) as legacy fallback - Short-circuit 401/403 errors immediately without fallback attempts - Fallback to alternate endpoint on 404, return sanitized url.not_found error on final 404 - Add regression tests for all error scenarios
This commit is contained in:
5
.changeset/verify-kimi-usage-endpoint-config.md
Normal file
5
.changeset/verify-kimi-usage-endpoint-config.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@gsxdsm/fusion": patch
|
||||
---
|
||||
|
||||
Verify and lock Kimi usage endpoint configuration with regression tests. The underscore endpoint (`/v1/coding_plan/usage`) is primary (Codexbar-validated), with hyphen endpoint (`/v1/coding-plan/usage`) as legacy fallback. Error handling: 401/403 short-circuits immediately, 404 triggers fallback to alternate endpoint, final 404 `url.not_found` returns sanitized error message without leaking raw upstream JSON.
|
||||
Reference in New Issue
Block a user