mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 18:23:07 +00:00
fix(handle_error.py): don't return backend exception to user - can contain prompt leakage
Fixes https://github.com/BerriAI/litellm/issues/13329
This commit is contained in:
@@ -82,9 +82,14 @@ async def async_raise_no_deployment_exception(
|
||||
litellm_router_instance=litellm_router_instance,
|
||||
parent_otel_span=parent_otel_span,
|
||||
)
|
||||
verbose_router_logger.info(
|
||||
f"No deployment found for model: {model}, cooldown_list with debug info: {_cooldown_list}"
|
||||
)
|
||||
|
||||
cooldown_list_ids = [cooldown_model[0] for cooldown_model in _cooldown_list]
|
||||
return RouterRateLimitError(
|
||||
model=model,
|
||||
cooldown_time=_cooldown_time,
|
||||
enable_pre_call_checks=litellm_router_instance.enable_pre_call_checks,
|
||||
cooldown_list=_cooldown_list,
|
||||
cooldown_list=cooldown_list_ids,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user