From d3f7c675e3b8bb37deb9f37f4b5589147a3ccefe Mon Sep 17 00:00:00 2001 From: devvnull Date: Tue, 20 Feb 2024 03:53:26 +0000 Subject: [PATCH] add pricing for Azure GPT counterparts and update Claude pricing (khanon/oai-reverse-proxy!65) --- src/shared/stats.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shared/stats.ts b/src/shared/stats.ts index def4c23..dc2e393 100644 --- a/src/shared/stats.ts +++ b/src/shared/stats.ts @@ -6,15 +6,19 @@ import { ModelFamily } from "./models"; export function getTokenCostUsd(model: ModelFamily, tokens: number) { let cost = 0; switch (model) { + case "azure-gpt4-turbo": case "gpt4-turbo": cost = 0.00001; break; + case "azure-gpt4-32k": case "gpt4-32k": cost = 0.00006; break; + case "azure-gpt4": case "gpt4": cost = 0.00003; break; + case "azure-turbo": case "turbo": cost = 0.000001; break; @@ -23,7 +27,7 @@ export function getTokenCostUsd(model: ModelFamily, tokens: number) { break; case "aws-claude": case "claude": - cost = 0.00001102; + cost = 0.000008; break; case "mistral-tiny": cost = 0.00000031;