{"record":{"id":"4221284972995067","repo":"BerriAI/litellm","slug":"get-complete-url-must-be-implemented-by-provider-422128","errorCode":null,"errorMessage":"get_complete_url must be implemented by provider","messagePattern":"get_complete_url must be implemented by provider","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/base_llm/search/transformation.py","lineNumber":211,"sourceCode":"        \"\"\"\n        Get complete URL for Search endpoint.\n\n        Args:\n            api_base: Base URL for the API\n            optional_params: Optional parameters for the request\n            data: Transformed request body from transform_search_request().\n                  Some providers (e.g., Google PSE) use GET requests and need\n                  the request body to construct query parameters in the URL.\n                  Can be a dict or list of dicts depending on provider.\n            **kwargs: Additional keyword arguments\n\n        Returns:\n            Complete URL for the search endpoint\n\n        Note:\n            Override in provider-specific implementations.\n        \"\"\"\n        raise NotImplementedError(\"get_complete_url must be implemented by provider\")\n\n    def transform_search_request(\n        self,\n        query: str | list[str],\n        optional_params: dict,\n        **kwargs,\n    ) -> dict | list[dict]:\n        \"\"\"\n        Transform Search request to provider-specific format.\n        Override in provider-specific implementations.\n\n        Args:\n            query: Search query (string or list of strings)\n            optional_params: Optional parameters for the request\n\n        Returns:\n            Dict with request data\n        \"\"\"","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/base_llm/search/transformation.py#L193-L229","documentation":"Raised by the abstract get_complete_url stub on the base search transformation. It fires when a search provider config did not override URL construction, so the framework has no way to build the search endpoint URL for that provider.","triggerScenarios":"Thrown at litellm/llms/base_llm/search/transformation.py:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a provider that implements search; get_complete_url is abstract in the base class.","Implement get_complete_url in the custom search provider's transformation class.","Verify the search provider name is supported."],"exampleFix":null,"handlingStrategy":"try-catch","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-23T08:17:48.524Z"}