Post: per-branch AI spend isolation (Neon AI Gateway #3)#1444
Open
bobbyonmagic wants to merge 5 commits into
Open
Post: per-branch AI spend isolation (Neon AI Gateway #3)#1444bobbyonmagic wants to merge 5 commits into
bobbyonmagic wants to merge 5 commits into
Conversation
Deploying devops-daily with
|
| Latest commit: |
aa5230e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7644c60f.devops-daily.pages.dev |
| Branch Preview URL: | https://post-neon-per-branch-ai-spen.devops-daily.pages.dev |
804295f to
aa5230e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Third AI-gateway post (dated Jul 16). Because a Neon branch carries its own gateway endpoint and its own usage ledger, model spend is attributed and isolated per environment (prod / preview / CI).
Tested live: read production's usage, branched a ci-run environment, ran two calls against it, and confirmed the branch's ledger grew (gpt-5-nano 25 -> 71) while production stayed at 25. Reuses neon-ai-gateway-demo. Honest about copy-on-write: a branch inherits prod's ledger snapshot at branch time; the isolation is in the delta.
Interactive: the /usage query, an animated terminal of the isolation proof, a note callout on the copy-on-write nuance, and a github card. OG generated, validated.