Repository navigation
Commit 3702ec7
fix(server): custom Codex providers no longer warn about usage
A Codex instance pointed at a custom model_provider (such as a CLIProxyAPI
hub) has no account, so Codex rejects account/rateLimits/read with JSON-RPC
-32600 and the usage page showed it as a failed check. Only ChatGPT plans
have rate limits: skip the read for every other account and report usage as
unsupported, the way API-key accounts already were.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 8176b58 commit 3702ec7
2 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| |||
565 | 573 | | |
566 | 574 | | |
567 | 575 | | |
568 | | - | |
| 576 | + | |
569 | 577 | | |
570 | 578 | | |
571 | 579 | | |
| |||
790 | 798 | | |
791 | 799 | | |
792 | 800 | | |
793 | | - | |
| 801 | + | |
794 | 802 | | |
795 | 803 | | |
796 | 804 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
427 | 442 | | |
428 | 443 | | |
429 | 444 | | |
| |||
0 commit comments