diff --git a/src/agent/provider_registry.py b/src/agent/provider_registry.py index c92480f4..18c4fa74 100644 --- a/src/agent/provider_registry.py +++ b/src/agent/provider_registry.py @@ -14,11 +14,6 @@ "https://api.z.ai/api/anthropic", "https://api.z.ai/api/anthropic/v1", } -ZAI_BASE_URL_REQUIRED_HINT = ( - "Z.AI Base URL is optional. Empty value defaults to " - "https://api.z.ai/api/coding/paas/v4 for the GLM Coding Plan; use " - "https://api.z.ai/api/paas/v4 only for pay-per-token PaaS access." -) def is_zai_legacy_anthropic_base_url(base_url: str = "") -> bool: diff --git a/src/agent/tools/_registry.py b/src/agent/tools/_registry.py index 14ff6ec9..94f50a0d 100644 --- a/src/agent/tools/_registry.py +++ b/src/agent/tools/_registry.py @@ -208,15 +208,6 @@ def arg_csv_ints( return result -def require_args(args: dict[str, Any], *names: str) -> dict[str, str]: - values = {name: arg_str(args, name) for name in names} - missing = [name for name, value in values.items() if not value] - if missing: - joined = ", ".join(missing) - raise ToolInputError(f"{joined} обязательны.") - return values - - def normalize_phone(phone: object) -> str: """Ensure phone starts with '+' — models sometimes omit it.""" if phone is None: