diff --git a/agent/reasoning_promotion.py b/agent/reasoning_promotion.py index ad5d8fd6c5..9dd6e0f211 100644 --- a/agent/reasoning_promotion.py +++ b/agent/reasoning_promotion.py @@ -57,7 +57,7 @@ def answer_in_reasoning_capability(agent: Any) -> bool: ids = {custom_provider_slug(p) for p in (provider, requested) if p.startswith("custom:")} entries = list(_entries_for_route(base_url, custom_providers, None)) live = [e for e in entries - if custom_provider_slug(str(e.get("name") or ""), str(e.get("provider_key") or "")) in ids] + if custom_provider_slug(e.get("name"), e.get("provider_key")) in ids] flags = {v for e in live or entries if isinstance(v := (e.get("capabilities") or {}).get(_ANSWER_IN_REASONING_CAPABILITY), bool)} if flags: