From 4694cb43764c4b39b8cc74928c4f364b68cbbbff Mon Sep 17 00:00:00 2001 From: hughcrt Date: Mon, 13 May 2024 14:36:33 -0300 Subject: [PATCH] ok --- packages/backend/src/utils/calcCost.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/backend/src/utils/calcCost.ts b/packages/backend/src/utils/calcCost.ts index 3d33a20c..85cdae92 100644 --- a/packages/backend/src/utils/calcCost.ts +++ b/packages/backend/src/utils/calcCost.ts @@ -9,6 +9,11 @@ interface ModelCost { // OpenAI Pricing: https://openai.com/pricing // Legacy OpenAI pricing: https://platform.openai.com/docs/deprecations/ const MODEL_COSTS: ModelCost[] = [ + { + models: ["gpt-4o"], + inputCost: 0.005, + outputCost: 0.015, + }, { models: ["ft:gpt-3.5-turbo"], inputCost: 0.003,