Repository navigation
Commit 3d5a374
fix(server): hide ChatGPT limits when Codex uses a custom provider
When Codex runs with a custom `model_provider`, `account/read` reports no
account, but `account/rateLimits/read` still answers from the ChatGPT login
saved in the Codex home. T3 showed those limits as this instance's, with no
email, so the Limits page listed the same ChatGPT account twice next to a
CLIProxy source that pools it.
Report Codex usage limits as unsupported unless the account is a ChatGPT
login, extending the existing API key case.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent d15210c commit 3d5a374
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
658 | 662 | | |
659 | | - | |
| 663 | + | |
660 | 664 | | |
661 | 665 | | |
662 | 666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
484 | 512 | | |
485 | 513 | | |
486 | 514 | | |
| |||
0 commit comments