Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/agent/provider_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 0 additions & 9 deletions src/agent/tools/_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading