From b4571bb4b7e29df47a11230b954f709b07b4692a Mon Sep 17 00:00:00 2001 From: luijait Date: Wed, 21 May 2025 22:32:11 +0200 Subject: [PATCH] Support pricing in alias0 --- src/cai/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cai/util.py b/src/cai/util.py index 3521e23e..b7223fad 100644 --- a/src/cai/util.py +++ b/src/cai/util.py @@ -283,6 +283,7 @@ class CostTracker: # Check if this is a local/free model model_str = model_name.lower() is_local_model = ( + "alias" not in model_str and "ollama" in model_str or "qwen" in model_str or "llama" in model_str or @@ -386,6 +387,7 @@ class CostTracker: # Check if this is a local model (always free) first model_str = model_name.lower() is_local_model = ( + "alias" not in model_str and "ollama" in model_str or "qwen" in model_str or "llama" in model_str or