-
Notifications
You must be signed in to change notification settings - Fork 457
chore: disable PTB on Azure models except gpt-5 and gpt-5-mini #5296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 <[email protected]> Co-Authored-By: Replicas <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
I'll analyze this and get back to you. |
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 files reviewed, no comments

No description provided.