From 9ff705ffc03652e6b995ba09aba1d69fc82e7e22 Mon Sep 17 00:00:00 2001 From: ncrypted | Oliver <15632467+ncryptedV1@users.noreply.github.com> Date: Wed, 9 Jul 2025 19:38:16 +0200 Subject: [PATCH] Remove: Pricing for SAP AI Core Provider (#4778) * remove: pricing for sapaicore * add: model description hint regarding capacity unit pricing --- .changeset/flat-fans-hunt.md | 5 +++ src/shared/api.ts | 77 ++++++++++-------------------------- 2 files changed, 25 insertions(+), 57 deletions(-) create mode 100644 .changeset/flat-fans-hunt.md diff --git a/.changeset/flat-fans-hunt.md b/.changeset/flat-fans-hunt.md new file mode 100644 index 00000000..731bce95 --- /dev/null +++ b/.changeset/flat-fans-hunt.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Remove pricing calculation for SAP AI Core provider diff --git a/src/shared/api.ts b/src/shared/api.ts index 1db8580b..390c5564 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -2373,173 +2373,136 @@ export const requestyDefaultModelInfo: ModelInfo = { // SAP AI Core export type SapAiCoreModelId = keyof typeof sapAiCoreModels export const sapAiCoreDefaultModelId: SapAiCoreModelId = "anthropic--claude-3.5-sonnet" +// Pricing is calculated using Capacity Units, not directly in USD +const sapAiCoreModelDescription = "Pricing is calculated using SAP's Capacity Units rather than direct USD pricing." export const sapAiCoreModels = { "anthropic--claude-4-sonnet": { maxTokens: 8192, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "anthropic--claude-4-opus": { maxTokens: 8192, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "anthropic--claude-3.7-sonnet": { maxTokens: 64_000, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "anthropic--claude-3.5-sonnet": { maxTokens: 8192, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "anthropic--claude-3-sonnet": { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "anthropic--claude-3-haiku": { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "anthropic--claude-3-opus": { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "gemini-2.5-pro": { maxTokens: 65536, contextWindow: 1_048_576, supportsImages: true, supportsPromptCache: true, - inputPrice: 2.5, - outputPrice: 15, - cacheReadsPrice: 0.625, - tiers: [ - { - contextWindow: 200000, - inputPrice: 1.25, - outputPrice: 10, - cacheReadsPrice: 0.31, - }, - { - contextWindow: Infinity, - inputPrice: 2.5, - outputPrice: 15, - cacheReadsPrice: 0.625, - }, - ], + description: sapAiCoreModelDescription, }, "gemini-2.5-flash": { maxTokens: 65536, contextWindow: 1_048_576, supportsImages: true, supportsPromptCache: true, - inputPrice: 0.3, - outputPrice: 2.5, - cacheReadsPrice: 0.075, thinkingConfig: { maxBudget: 24576, - outputPrice: 3.5, }, + description: sapAiCoreModelDescription, }, "gpt-4": { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "gpt-4o": { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "gpt-4o-mini": { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "gpt-4.1": { maxTokens: 32_768, contextWindow: 1_047_576, supportsImages: true, supportsPromptCache: true, - inputPrice: 2, - outputPrice: 8, - cacheReadsPrice: 0.5, + description: sapAiCoreModelDescription, }, "gpt-4.1-nano": { maxTokens: 32_768, contextWindow: 1_047_576, supportsImages: true, supportsPromptCache: true, - inputPrice: 0.1, - outputPrice: 0.4, - cacheReadsPrice: 0.025, + description: sapAiCoreModelDescription, }, o1: { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, o3: { maxTokens: 100_000, contextWindow: 200_000, supportsImages: true, supportsPromptCache: true, - inputPrice: 10.0, - outputPrice: 40.0, - cacheReadsPrice: 2.5, + description: sapAiCoreModelDescription, }, "o3-mini": { maxTokens: 4096, contextWindow: 200_000, supportsImages: true, supportsPromptCache: false, - inputPrice: 3.0, - outputPrice: 15.0, + description: sapAiCoreModelDescription, }, "o4-mini": { maxTokens: 100_000, contextWindow: 200_000, supportsImages: true, supportsPromptCache: true, - inputPrice: 1.1, - outputPrice: 4.4, - cacheReadsPrice: 0.275, + description: sapAiCoreModelDescription, }, } as const satisfies Record