From a189016be148ffe149d8feaed655df822b2816fb Mon Sep 17 00:00:00 2001 From: Phil Szalay Date: Mon, 31 Mar 2025 09:46:40 +0200 Subject: [PATCH] Uopdate alembic script with new model costs --- ...e_create_model_message_credit_cost_table.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/migrations/versions/a3117163d6ce_create_model_message_credit_cost_table.py b/backend/open_webui/migrations/versions/a3117163d6ce_create_model_message_credit_cost_table.py index 7008b0d72..7137c497a 100644 --- a/backend/open_webui/migrations/versions/a3117163d6ce_create_model_message_credit_cost_table.py +++ b/backend/open_webui/migrations/versions/a3117163d6ce_create_model_message_credit_cost_table.py @@ -37,14 +37,26 @@ def upgrade() -> None: ), [ {'model_name': 'GPT 4o', 'message_credit_cost': 20}, - {'model_name': 'GPT 4o Mini', 'message_credit_cost': 1}, - {'model_name': 'Claude 3 Haiku', 'message_credit_cost': 2}, - {'model_name': 'Claude 3.5 Sonnet v2', 'message_credit_cost': 25}, + {'model_name': 'GPT 4o-mini', 'message_credit_cost': 1}, + {'model_name': 'Claude 3.5 Haiku', 'message_credit_cost': 10}, + {'model_name': 'Claude 3.7 Sonnet', 'message_credit_cost': 25}, {'model_name': 'Gemini 1.5 Pro', 'message_credit_cost': 2}, {'model_name': 'Perplexity', 'message_credit_cost': 25}, {'model_name': 'GPT 3.5 Turbo', 'message_credit_cost': 25}, {'model_name': 'Gemini 1.5 Flash', 'message_credit_cost': 25}, {'model_name': 'Dall-E', 'message_credit_cost': 300}, + {'model_name': 'GPT o3-mini', 'message_credit_cost': 100}, + {'model_name': 'Mistral Large 2', 'message_credit_cost': 10}, + {'model_name': 'Gemini 2.0 Flash', 'message_credit_cost': 2}, + {'model_name': 'Gemini 2.0 Flash Thinking', 'message_credit_cost': 100}, + {'model_name': 'Claude 3.5 Sonnet', 'message_credit_cost': 25}, + {'model_name': 'Llama 3.1', 'message_credit_cost': 30}, + {'model_name': 'GPT o1', 'message_credit_cost': 1000}, + {'model_name': 'Pixtral Large', 'message_credit_cost': 10}, + {'model_name': 'Perplexity Sonar', 'message_credit_cost': 2}, + {'model_name': 'Perplexity Sonar Pro', 'message_credit_cost': 25}, + {'model_name': 'Perplexity Sonar Deep Research', 'message_credit_cost': 45}, + {'model_name': 'Perplexity Sonar Reasoning Pro', 'message_credit_cost': 20}, ] )