fix provider getattr

This commit is contained in:
Shroominic
2025-11-23 13:10:40 -08:00
parent 081644357a
commit a488ca056f
+2 -2
View File
@@ -153,9 +153,9 @@ def should_prefer_model(
# Log provider changes when candidate wins
if should_replace:
candidate_provider_name = getattr(
candidate_provider, "upstream_name", "unknown"
candidate_provider, "provider_type", "unknown"
)
current_provider_name = getattr(current_provider, "upstream_name", "unknown")
current_provider_name = getattr(current_provider, "provider_type", "unknown")
logger.debug(
f"Model selection for alias '{alias}': choosing {candidate_provider_name} "
f"(cost: ${candidate_adjusted:.6f}) over {current_provider_name} "