{"record":{"id":"f4ba7122818efd70","repo":"BerriAI/litellm","slug":"watsonx-passthrough-config-not-found","errorCode":null,"errorMessage":"Watsonx passthrough config not found","messagePattern":"Watsonx passthrough config not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py","lineNumber":2439,"sourceCode":"    \"\"\"\n    Watsonx pass-through endpoint.\n    Allows using Watsonx APIs with automatic IAM token management and version parameter injection.\n\n    Example:\n        POST /watsonx/ml/v1/text/tokenization\n        POST /watsonx/ml/v1/text/generation\n    \"\"\"\n    # Direct passthrough with WatsonxPassthroughConfig\n    from litellm.types.utils import LlmProviders\n    from litellm.utils import ProviderConfigManager\n\n    provider_config: Final = ProviderConfigManager.get_provider_passthrough_config(\n        provider=LlmProviders.WATSONX,\n        model=\"\",\n    )\n\n    if provider_config is None:\n        raise HTTPException(status_code=404, detail=\"Watsonx passthrough config not found\")\n\n    # Get complete URL with version parameter\n    complete_url, _ = provider_config.get_complete_url(\n        api_base=None,\n        api_key=None,\n        model=\"\",\n        endpoint=endpoint,\n        request_query_params=None,\n        litellm_params={},\n    )\n\n    # Get auth headers with IAM token\n    auth_headers: Final = provider_config.validate_environment(\n        headers={},\n        model=\"\",\n        messages=[],\n        optional_params={},\n        litellm_params={},","sourceCodeStart":2421,"sourceCodeEnd":2457,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py#L2421-L2457","documentation":"Raised when ProviderConfigManager.get_provider_passthrough_config returns None for WATSONX — the Watsonx IAM token management and version-parameter injection needed by the /watsonx/* endpoints is unavailable because no provider config was registered.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:2439 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure the Watsonx pass-through settings (WX_URL / watsonx credentials) in config.yaml or the environment.","Verify the Watsonx deployment is registered before calling the pass-through route."],"exampleFix":null,"handlingStrategy":"type-guard","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"}