Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

Dashboard: Fix bison price calc

Marc Klingena5dfbc799fab
diff --git a/src/server/api/services/tableDefinitions.ts b/src/server/api/services/tableDefinitions.ts
index 282b61482f..e874a365bb 100644
--- a/src/server/api/services/tableDefinitions.ts
+++ b/src/server/api/services/tableDefinitions.ts
@@ -113,7 +113,7 @@ export const totalTokenCost = {
WHEN (o."model" LIKE '%claude-1%') THEN 0.01102 * o."prompt_tokens" + 0.03268 * o."completion_tokens"
WHEN (o."model" LIKE '%claude-2%') THEN 0.01102 * o."prompt_tokens" + 0.03268 * o."completion_tokens"
WHEN (o."model" LIKE '%claude-instant-1%') THEN 0.00163 * o."prompt_tokens" + 0.00551 * o."completion_tokens"
- WHEN (o."model" LIKE '%bison%') THEN 0.0000005 * LENGTH(REPLACE(o."input"::text, ' ', '')) + 0.0000005 * LENGTH(REPLACE(o."output"::text, ' ', ''))
+ WHEN (o."model" LIKE '%bison%') THEN 0.0005 * LENGTH(REPLACE(o."input"::text, ' ', '')) + 0.0005 * LENGTH(REPLACE(o."output"::text, ' ', ''))
ELSE 0
END
) / 1000