BerriAI/litellm · error · ValueError
advisor tool definition sets 'api_base' but the proxy has…
Error message
advisor tool definition sets 'api_base' but the proxy has TLS verification disabled (litellm.ssl_verify=False), so a caller-supplied api_base can't be safely validated against DNS rebinding.
What it means
Error "advisor tool definition sets 'api_base' but the proxy has TLS verification disabled (litellm.ssl_verify=False), so a caller-supplied api_base can't be safely validated against DNS rebinding." thrown in BerriAI/litellm.
Solutions
- Enable TLS verification (litellm.ssl_verify=True or a CA bundle) before using a caller-supplied api_base.
- Remove the custom api_base from the advisor tool definition.
When it happens
Trigger: Thrown at litellm/llms/anthropic/experimental_pass_through/messages/interceptors/advisor.py:223 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- SSL/TLS and certificate errors — how TLS handshakes and certificate validation fail.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/0ce0b41c17854940.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/anthropic/experimental_pass_through/messages/interceptors/advisor.py:223
``anthropic_messages()`` call chain.
"""
if not _allow_client_side_advisor_credentials():
return None, None
api_key: Final[str | None] = advisor_tool.get("api_key")
api_base: Final[str | None] = advisor_tool.get("api_base")
if api_base is None:
return api_key, None
if not api_key:
raise ValueError(
"advisor tool definition sets 'api_base' without 'api_key'. A "
"caller-supplied api_base is only honored alongside a "
"caller-supplied api_key, so the proxy's own credentials are "
"never sent to a caller-chosen destination."
)
if not api_base.startswith("https://"):
raise ValueError(f"advisor tool definition sets 'api_base'={api_base!r}, which must use the https scheme.")
if getattr(litellm, "ssl_verify", True) is False:
raise ValueError(
"advisor tool definition sets 'api_base' but the proxy has TLS verification "
"disabled (litellm.ssl_verify=False), so a caller-supplied api_base can't be "
"safely validated against DNS rebinding."
)
if getattr(litellm, "user_url_validation", True):
validate_url(api_base)
return api_key, api_base
def _make_synthetic_advisor_tool() -> dict:
"""Build a regular tool definition the executor provider can understand."""
return {
"name": "advisor",
"description": ADVISOR_TOOL_DESCRIPTION,
"input_schema": {
"type": "object",
"properties": {
"question": {View on GitHub (pinned to 77b7c6c40c)