The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(agent): drop redundant str() wrapping around custom_provider_slug args
kshitijk4poorcff9305fe697
diff --git a/agent/reasoning_promotion.py b/agent/reasoning_promotion.pyindex ad5d8fd6c5e..9dd6e0f211a 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 entriesif isinstance(v := (e.get("capabilities") or {}).get(_ANSWER_IN_REASONING_CAPABILITY), bool)}if flags: