{"record":{"id":"44e4572b8952f231","repo":"BerriAI/litellm","slug":"get-auth-token-and-url-is-not-implemented","errorCode":null,"errorMessage":"get_auth_token_and_url is not implemented","messagePattern":"get_auth_token_and_url is not implemented","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/base_llm/google_genai/transformation.py","lineNumber":155,"sourceCode":"    async def get_auth_token_and_url(\n        self,\n        api_base: str | None,\n        model: str,\n        litellm_params: dict,\n        stream: bool,\n    ) -> tuple[dict, str]:\n        \"\"\"\n        Get the complete URL for the request.\n\n        Args:\n            api_base: Base API URL\n            model: The model name\n            litellm_params: LiteLLM parameters\n\n        Returns:\n            Tuple of headers and API base\n        \"\"\"\n        raise NotImplementedError(\"get_auth_token_and_url is not implemented\")\n\n    @abstractmethod\n    def transform_generate_content_request(\n        self,\n        model: str,\n        contents: GenerateContentContentListUnionDict,\n        tools: ToolConfigDict | None,\n        generate_content_config_dict: dict,\n        system_instruction: Any | None = None,\n    ) -> dict:\n        \"\"\"\n        Transform the request parameters for the generate content API.\n\n        Args:\n            model: The model name\n            contents: Input contents\n            tools: Tools\n            generate_content_config_dict: Generation config parameters","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/base_llm/google_genai/transformation.py#L137-L173","documentation":"Error \"get_auth_token_and_url is not implemented\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/base_llm/google_genai/transformation.py:155 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a concrete Google GenAI config subclass implementing get_auth_token_and_url."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}