{"record":{"id":"ba781a7eeb44214f","repo":"BerriAI/litellm","slug":"vertex-ai-models-are-not-supported-yet","errorCode":null,"errorMessage":"Vertex AI models are not supported yet","messagePattern":"Vertex AI models are not supported yet","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/vertex_ai/common_utils.py","lineNumber":1069,"sourceCode":"        Factory method to create a token counter for this provider.\n\n        Returns:\n            Optional TokenCounterInterface implementation for this provider,\n            or None if token counting is not supported.\n        \"\"\"\n        return VertexAITokenCounter()\n\n    def validate_environment(\n        self,\n        headers: dict,\n        model: str,\n        messages: list[AllMessageValues],\n        optional_params: dict,\n        litellm_params: dict,\n        api_key: str | None = None,\n        api_base: str | None = None,\n    ) -> dict:\n        raise NotImplementedError(\"Vertex AI models are not supported yet\")\n\n    def get_models(self, api_key: str | None = None, api_base: str | None = None) -> list[str]:\n        \"\"\"\n        Returns a list of models supported by this provider.\n        \"\"\"\n        raise NotImplementedError(\"Vertex AI models are not supported yet\")\n\n    @staticmethod\n    def get_api_key(api_key: str | None = None) -> str | None:\n        raise NotImplementedError(\"Vertex AI models are not supported yet\")\n\n    @staticmethod\n    def get_api_base(\n        api_base: str | None = None,\n    ) -> str | None:\n        raise NotImplementedError(\"Vertex AI models are not supported yet\")\n\n    @staticmethod","sourceCodeStart":1051,"sourceCodeEnd":1087,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/vertex_ai/common_utils.py#L1051-L1087","documentation":"Sentinel NotImplementedError in the Vertex AI base config's validate_environment: this generic provider path does not implement header validation (auth is handled per-mode), so any call reaching it is unsupported.","triggerScenarios":"Triggered when calling a code path where Vertex AI models are not yet supported.","commonSituations":"See trigger scenarios.","solutions":["This route does not yet support Vertex AI models; use the supported vertex_ai/ call path.","Track support via litellm releases/issues."],"exampleFix":"# use the documented vertex_ai provider route for this call type.","handlingStrategy":"fallback","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"}