BerriAI/litellm · error · ProxyException
Error updating public model groups: {e}
Error message
Error updating public model groups: {e} What it means
Catch-all around the public-model-groups update: unexpected exceptions while loading config, applying the new group list, or persisting are logged and re-raised as this 500. HTTPException (the 403 role guard) passes through unchanged.
Source
Thrown at litellm/proxy/management_endpoints/model_management_endpoints.py:2117
litellm.public_model_groups = request.model_groups
verbose_proxy_logger.debug(
"Updated public model groups to: %s by user: %s", request.model_groups, user_api_key_dict.user_id
)
return {
"message": "Successfully updated public model groups",
"public_model_groups": request.model_groups,
"updated_by": user_api_key_dict.user_id,
}
except Exception as e:
verbose_proxy_logger.exception("Error updating public model groups: %s", e)
if isinstance(e, HTTPException):
raise e
raise ProxyException(
message=f"Error updating public model groups: {e}",
type=ProxyErrorTypes.internal_server_error,
code=status.HTTP_500_INTERNAL_SERVER_ERROR,
param=None,
)
@router.post(
"/model_hub/update_useful_links",
description="Update useful links",
tags=["model management"],
dependencies=[Depends(user_api_key_auth)],
)
async def update_useful_links(
request: UpdateUsefulLinksRequest,
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
):
"""View on GitHub (pinned to 77b7c6c40c)
Solutions
- Check proxy server logs for the underlying exception details.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at litellm/proxy/management_endpoints/model_management_endpoints.py:2117 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/01a835e51dc24659.
Report an issue: GitHub.