{"record":{"id":"fd5adebb6e266348","repo":"BerriAI/litellm","slug":"provider-provider-not-supported-for-focus-expo-fd5ade","errorCode":null,"errorMessage":"Provider '{provider}' not supported for Focus export configuration","messagePattern":"Provider '(.+?)' not supported for Focus export configuration","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/integrations/focus/destinations/factory.py","lineNumber":83,"sourceCode":"                raise ValueError(\"VANTAGE_INTEGRATION_TOKEN must be provided for Vantage exports\")\n            return {k: v for k, v in resolved.items() if v is not None}\n        if provider == \"gcs\":\n            resolved = {\n                \"bucket_name\": overrides.get(\"bucket_name\") or os.getenv(\"FOCUS_GCS_BUCKET_NAME\"),\n                \"service_account_json\": overrides.get(\"service_account_json\")\n                or os.getenv(\"FOCUS_GCS_PATH_SERVICE_ACCOUNT\"),\n            }\n            if not resolved.get(\"bucket_name\"):\n                raise ValueError(\"FOCUS_GCS_BUCKET_NAME must be provided for GCS exports\")\n            return {k: v for k, v in resolved.items() if v is not None}\n        if provider == \"mavvrik\":\n            resolved = {\n                \"api_key\": overrides.get(\"api_key\") or os.getenv(\"MAVVRIK_API_KEY\"),\n                \"api_endpoint\": overrides.get(\"api_endpoint\") or os.getenv(\"MAVVRIK_API_ENDPOINT\"),\n                \"connection_id\": overrides.get(\"connection_id\") or os.getenv(\"MAVVRIK_CONNECTION_ID\"),\n            }\n            return {k: v for k, v in resolved.items() if v is not None}\n        raise NotImplementedError(f\"Provider '{provider}' not supported for Focus export configuration\")\n","sourceCodeStart":65,"sourceCodeEnd":84,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/integrations/focus/destinations/factory.py#L65-L84","documentation":"The tail guard of FocusDestinationFactory._resolve_config: if the (already lowercased) provider string matches none of s3/vantage/gcs/mavvrik it raises NotImplementedError. In the normal path create() only calls _resolve_config with providers it just dispatched on, so in practice this fires when _resolve_config is invoked directly (it is a public static method) or when new branches are added to create() without a matching config resolver.","triggerScenarios":"Calling FocusDestinationFactory._resolve_config(provider='azure', overrides={}) directly; a fork adding a 'create' branch for a new provider but forgetting the config resolution branch; string values with whitespace ('s3 ') that lower() does not strip reaching an internal call.","commonSituations":"Custom integrations reusing the resolver for config normalization; version skew between patched create() and stock _resolve_config; internal tooling validating destination configs by calling the resolver.","solutions":["Call FocusDestinationFactory.create(...) instead of _resolve_config for normal use — create validates the provider set itself","Restrict provider values to {'s3','vantage','gcs','mavvrik'} and normalize with strip().lower() first","If you extended create() with a new provider, add the matching branch in _resolve_config too","Catch NotImplementedError to surface 'unsupported provider' distinctly from missing-config ValueErrors"],"exampleFix":"# before\nconfig = FocusDestinationFactory._resolve_config(provider='s3 ', overrides={})\n\n# after\ndest = FocusDestinationFactory.create(provider='s3'.strip().lower(), prefix='focus/')\n# or, if resolving directly:\nconfig = FocusDestinationFactory._resolve_config(provider='s3'.strip().lower(), overrides={})","handlingStrategy":"validation","validationCode":"SUPPORTED = {'s3', 'vantage', 'gcs', 'mavvrik'}\nprovider = provider.strip().lower()\nif provider not in SUPPORTED:\n    raise ValueError(f'unsupported Focus provider {provider!r}')\nconfig = FocusDestinationFactory._resolve_config(provider=provider, overrides=overrides)","typeGuard":"def is_supported_focus_provider(provider: str) -> bool:\n    return (provider or '').strip().lower() in {'s3', 'vantage', 'gcs', 'mavvrik'}","tryCatchPattern":"try:\n    config = FocusDestinationFactory._resolve_config(provider=provider, overrides=overrides)\nexcept NotImplementedError as e:\n    raise ValueError(f'config error: {e}') from e","preventionTips":["Prefer the public create() factory; treat _resolve_config as internal","If you fork/extend the factory, add resolver branches in lockstep with create() branches","Normalize and whitelist provider strings at the config boundary"],"tags":["litellm","focus","export","provider","factory"],"backgroundTag":"unsupported-provider","analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}