GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — Show ChatGPT usage only when Codex sends requests to OpenAI by Sniezka1927 · Pull Request #14969 · nightly-labs/openbot Conversation
Collaborator
Linked issueCloses #14960 Type of change
What changedWhen Codex sends its requests to a third-party endpoint and the user is also signed in to ChatGPT, OpenBot showed the ChatGPT plan usage and credits for all Codex models. The composer then showed "Using credits" or "Usage limit reached" for requests that the ChatGPT plan did not pay for. This happens when the custom Now OpenBot reads the Codex config ( Surfaces: backend only ( Not changed: a route with Verification
Route check on real Codex 0.167.0 Smoke test in the dev app (
Not checked: macOS and Codex 0.171.0 (the reporter's versions), a real third-party endpoint with a real ChatGPT login, the composer notice on a Codex agent (it uses the same usage rows that item 1 shows as absent). Risk and security impactNone. One extra local Model and harness: Claude Opus 5.5 in Claude Code. 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsA Codex model provider with `requires_openai_auth = true`, or a changed `openai_base_url`, can send requests to a third-party endpoint while the user is also signed in to ChatGPT. Codex then returns the ChatGPT account and its plan usage and credits. OpenBot used them for every Codex model, so the composer showed "Using credits" and "Usage limit reached" for requests that the ChatGPT plan did not pay for. OpenBot now reads the Codex config before each Codex usage read. It reads the ChatGPT usage only when the active route goes to api.openai.com or chatgpt.com over https, or when the route uses the default OpenAI address. The same check drops the usage that Codex sends during a turn. When the config read fails, OpenBot keeps the earlier behavior and reads the usage, so a normal ChatGPT setup does not lose its usage display. The approach follows t3code (pingdotgg/t3code#18622). Fixes #14960 Co-Authored-By: Claude Opus 5.5 <[email protected]> When the Codex route changes from OpenAI to another provider while OpenBot runs, the reset credits that an earlier read found stayed in the list. Settings could then offer to spend a ChatGPT reset credit that does not help the active route. The usage read for such a route now also forgets these credits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sniezka1927
requested review from
NorbertBodziony and
nrb-dev
as code owners
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. [Bug]: ChatGPT credit warnings appear when Codex uses a third-party endpointUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |