From 013285121bd5369c62c46f8b145a13130bc88384 Mon Sep 17 00:00:00 2001 From: Connor Loi Date: Tue, 25 Nov 2025 01:53:45 +0000 Subject: [PATCH] chore: disable PTB on Azure models except gpt-5 and gpt-5-mini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Co-Authored-By: Replicas --- packages/cost/models/authors/openai/gpt-4.1/endpoints.ts | 8 ++++---- packages/cost/models/authors/openai/gpt-4o/endpoints.ts | 4 ++-- packages/cost/models/authors/openai/o3/endpoints.ts | 2 +- packages/cost/models/authors/openai/o4/endpoints.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cost/models/authors/openai/gpt-4.1/endpoints.ts b/packages/cost/models/authors/openai/gpt-4.1/endpoints.ts index 846e375d3d..c3be95d572 100644 --- a/packages/cost/models/authors/openai/gpt-4.1/endpoints.ts +++ b/packages/cost/models/authors/openai/gpt-4.1/endpoints.ts @@ -191,7 +191,7 @@ export const endpoints = { "frequency_penalty", "presence_penalty", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, }, @@ -229,7 +229,7 @@ export const endpoints = { "frequency_penalty", "presence_penalty", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, }, @@ -267,7 +267,7 @@ export const endpoints = { "frequency_penalty", "presence_penalty", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, }, @@ -305,7 +305,7 @@ export const endpoints = { "frequency_penalty", "presence_penalty", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, }, diff --git a/packages/cost/models/authors/openai/gpt-4o/endpoints.ts b/packages/cost/models/authors/openai/gpt-4o/endpoints.ts index 805eb2307a..5305b5ad77 100644 --- a/packages/cost/models/authors/openai/gpt-4o/endpoints.ts +++ b/packages/cost/models/authors/openai/gpt-4o/endpoints.ts @@ -74,7 +74,7 @@ export const endpoints = { "frequency_penalty", "presence_penalty", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, }, @@ -151,7 +151,7 @@ export const endpoints = { "frequency_penalty", "presence_penalty", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, }, diff --git a/packages/cost/models/authors/openai/o3/endpoints.ts b/packages/cost/models/authors/openai/o3/endpoints.ts index ecf4f398a3..04a4700353 100644 --- a/packages/cost/models/authors/openai/o3/endpoints.ts +++ b/packages/cost/models/authors/openai/o3/endpoints.ts @@ -173,7 +173,7 @@ export const endpoints = { "logit_bias", "max_tokens", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, }, diff --git a/packages/cost/models/authors/openai/o4/endpoints.ts b/packages/cost/models/authors/openai/o4/endpoints.ts index d59f652040..28d0486cae 100644 --- a/packages/cost/models/authors/openai/o4/endpoints.ts +++ b/packages/cost/models/authors/openai/o4/endpoints.ts @@ -64,7 +64,7 @@ export const endpoints = { "max_completion_tokens", "response_format", ], - ptbEnabled: true, + ptbEnabled: false, endpointConfigs: { "*": {}, },