BerriAI/litellm · error · NotImplementedError
sync_get_auth_token_and_url is not implemented
Error message
sync_get_auth_token_and_url is not implemented
What it means
Error "sync_get_auth_token_and_url is not implemented" thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/base_llm/google_genai/transformation.py:135
self,
api_base: str | None,
model: str,
litellm_params: dict,
stream: bool,
) -> tuple[dict, str]:
"""
Sync version of get_auth_token_and_url.
Args:
api_base: Base API URL
model: The model name
litellm_params: LiteLLM parameters
stream: Whether this is a streaming call
Returns:
Tuple of headers and API base
"""
raise NotImplementedError("sync_get_auth_token_and_url is not implemented")
async def get_auth_token_and_url(
self,
api_base: str | None,
model: str,
litellm_params: dict,
stream: bool,
) -> tuple[dict, str]:
"""
Get the complete URL for the request.
Args:
api_base: Base API URL
model: The model name
litellm_params: LiteLLM parameters
Returns:
Tuple of headers and API baseView on GitHub (pinned to 77b7c6c40c)
Solutions
- Use a concrete Google GenAI config subclass implementing sync_get_auth_token_and_url.
When it happens
Trigger: Thrown at litellm/llms/base_llm/google_genai/transformation.py:135 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/3c35e7ae16c7c246.
Report an issue: GitHub.