Merge branch 'stream_pricing' into '0.4.0'

Support pricing in alias0

See merge request aliasrobotics/alias_research/cai!189
This commit is contained in:
Luis Javier Navarrete Lozano 2025-05-21 20:32:40 +00:00
commit 1c52ec9ea9
1 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,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
@ -382,6 +383,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