mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix: guard cache_hit_filter validation for direct handler calls
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
e7a92dfa83
commit
2a1e52b844
1 changed files with 1 additions and 1 deletions
|
|
@ -2315,7 +2315,7 @@ async def ui_view_spend_logs(
|
|||
param="sort_order",
|
||||
code=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
if cache_hit_filter is not None and cache_hit_filter not in {"hit", "miss"}:
|
||||
if isinstance(cache_hit_filter, str) and cache_hit_filter not in {"hit", "miss"}:
|
||||
raise ProxyException(
|
||||
message=f"Invalid cache_hit_filter: {cache_hit_filter}. Must be one of: hit, miss",
|
||||
type="bad_request",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue