This commit is contained in:
Timothy Jaeryang Baek
2026-01-22 15:07:14 +04:00
parent 68b2872ed6
commit 14f6747dfc
2 changed files with 3 additions and 9 deletions
+1 -3
View File
@@ -398,9 +398,7 @@ def get_builtin_tools(
# Helper to get model capabilities (defaults to True if not specified)
def get_model_capability(name: str, default: bool = True) -> bool:
return (
model.get("info", {})
.get("meta", {})
.get("capabilities", {})
(model.get("info", {}).get("meta", {}).get("capabilities") or {})
.get(name, default)
)