{"record":{"id":"dad1fe5dc4a22ebc","repo":"BerriAI/litellm","slug":"get-supported-generate-content-optional-params-is","errorCode":null,"errorMessage":"get_supported_generate_content_optional_params is not implemented","messagePattern":"get_supported_generate_content_optional_params is not implemented","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/base_llm/google_genai/transformation.py","lineNumber":61,"sourceCode":"                    classmethod,\n                    staticmethod,\n                ),\n            )\n            and v is not None\n        }\n\n    @abstractmethod\n    def get_supported_generate_content_optional_params(self, model: str) -> list[str]:\n        \"\"\"\n        Get the list of supported Google GenAI parameters for the model.\n\n        Args:\n            model: The model name\n\n        Returns:\n            List of supported parameter names\n        \"\"\"\n        raise NotImplementedError(\"get_supported_generate_content_optional_params is not implemented\")\n\n    def get_generate_content_request_top_level_fields(self) -> tuple[str, ...]:\n        \"\"\"\n        Native Google ``GenerateContentRequest`` fields that sit at the top level\n        (siblings of ``generationConfig``) rather than inside it. The proxy forwards\n        these verbatim from a native request so ``generateContent`` is a drop-in for\n        Google's REST API.\n\n        Excludes ``contents``, ``model`` and ``tools`` (dedicated params),\n        ``systemInstruction`` (dedicated extraction) and ``generationConfig`` (mapped\n        to ``config``).\n        \"\"\"\n        return (\"safetySettings\", \"toolConfig\", \"cachedContent\", \"labels\")\n\n    @abstractmethod\n    def map_generate_content_optional_params(\n        self,\n        generate_content_config_dict: GenerateContentConfigDict,","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/base_llm/google_genai/transformation.py#L43-L79","documentation":"Error \"get_supported_generate_content_optional_params is not implemented\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/base_llm/google_genai/transformation.py:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a concrete Google GenAI config subclass implementing get_supported_generate_content_optional_params."],"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"}