BerriAI/litellm · error · NotImplementedError
Provider ' ' not supported for Focus export configuration
Error message
Provider '{provider}' not supported for Focus export configuration What it means
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.
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
Example fix
# before
config = FocusDestinationFactory._resolve_config(provider='s3 ', overrides={})
# after
dest = FocusDestinationFactory.create(provider='s3'.strip().lower(), prefix='focus/')
# or, if resolving directly:
config = FocusDestinationFactory._resolve_config(provider='s3'.strip().lower(), overrides={}) Defensive patterns
Strategy: validation
Validate before calling
SUPPORTED = {'s3', 'vantage', 'gcs', 'mavvrik'}
provider = provider.strip().lower()
if provider not in SUPPORTED:
raise ValueError(f'unsupported Focus provider {provider!r}')
config = FocusDestinationFactory._resolve_config(provider=provider, overrides=overrides) Type guard
def is_supported_focus_provider(provider: str) -> bool:
return (provider or '').strip().lower() in {'s3', 'vantage', 'gcs', 'mavvrik'} Try / catch
try:
config = FocusDestinationFactory._resolve_config(provider=provider, overrides=overrides)
except NotImplementedError as e:
raise ValueError(f'config error: {e}') from e Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Related errors
- Provider ' ' not supported for Focus export
- FOCUS_GCS_BUCKET_NAME must be provided for GCS exports
- FOCUS_S3_BUCKET_NAME must be provided for S3 exports
- VANTAGE_API_KEY must be provided for Vantage exports
- VANTAGE_INTEGRATION_TOKEN must be provided for Vantage…
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/fd5adebb6e266348.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/integrations/focus/destinations/factory.py:83
raise ValueError("VANTAGE_INTEGRATION_TOKEN must be provided for Vantage exports")
return {k: v for k, v in resolved.items() if v is not None}
if provider == "gcs":
resolved = {
"bucket_name": overrides.get("bucket_name") or os.getenv("FOCUS_GCS_BUCKET_NAME"),
"service_account_json": overrides.get("service_account_json")
or os.getenv("FOCUS_GCS_PATH_SERVICE_ACCOUNT"),
}
if not resolved.get("bucket_name"):
raise ValueError("FOCUS_GCS_BUCKET_NAME must be provided for GCS exports")
return {k: v for k, v in resolved.items() if v is not None}
if provider == "mavvrik":
resolved = {
"api_key": overrides.get("api_key") or os.getenv("MAVVRIK_API_KEY"),
"api_endpoint": overrides.get("api_endpoint") or os.getenv("MAVVRIK_API_ENDPOINT"),
"connection_id": overrides.get("connection_id") or os.getenv("MAVVRIK_CONNECTION_ID"),
}
return {k: v for k, v in resolved.items() if v is not None}
raise NotImplementedError(f"Provider '{provider}' not supported for Focus export configuration")
View on GitHub (pinned to 77b7c6c40c)