chore: disable PTB on Azure models except gpt-5 and gpt-5-mini#5296
Open
connortbot wants to merge 1 commit intomainfrom
Open
chore: disable PTB on Azure models except gpt-5 and gpt-5-mini#5296connortbot wants to merge 1 commit intomainfrom
connortbot wants to merge 1 commit intomainfrom
Conversation
Disable pass-through billing (PTB) on the following Azure endpoints: - gpt-4o:azure - gpt-4o-mini:azure - gpt-4.1:azure - gpt-4.1-mini:azure - gpt-4.1-mini-2025-04-14:azure - gpt-4.1-nano:azure - o3-mini:azure - o4-mini:azure PTB remains enabled for gpt-5:azure and gpt-5-mini:azure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Replicas <noreply@replicas.dev>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
|
I'll analyze this and get back to you. |
Contributor
Greptile OverviewGreptile SummaryDisabled pass-through billing (PTB) for Azure-hosted OpenAI models except
All changes are straightforward boolean flips from Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client
participant ModelRegistry
participant EndpointConfig
participant BillingSystem
Client->>ModelRegistry: Request model info (e.g., gpt-4o:azure)
ModelRegistry->>EndpointConfig: Fetch endpoint configuration
EndpointConfig-->>ModelRegistry: Return config with ptbEnabled: false
alt ptbEnabled = true
ModelRegistry->>BillingSystem: Enable pass-through billing
BillingSystem-->>Client: Direct billing to customer
else ptbEnabled = false (NEW for Azure)
ModelRegistry->>BillingSystem: Disable pass-through billing
BillingSystem-->>Client: Standard billing flow
end
Note over EndpointConfig,BillingSystem: Exception: gpt-5:azure and gpt-5-mini:azure<br/>remain with ptbEnabled: true
|
chitalian
approved these changes
Dec 15, 2025
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.

No description provided.