mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
fix(proxy): allow _query_param_aliases in the recursive-function gate
The recursive walk over Dependant.dependencies added in the previous commit trips tests/code_coverage_tests/recursive_detector.py, which bans new recursive functions by default. The recursion is bounded by the route's own Depends() tree, fixed at registration time and already resolved acyclically by fastapi's own dependency resolver, so it is safe the same way other allow-listed traversals in this file are. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N9F4yC8jwZyGxHwb8DoonX
This commit is contained in:
parent
dab22eb192
commit
41fa14f867
1 changed files with 1 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ IGNORE_FUNCTIONS = [
|
|||
"_redact_agent_params_tree", # max depth set (default 10), same shape as _redact_sensitive_litellm_params.
|
||||
"_restore_redacted_nested_value", # max depth set (default 10), mirrors _redact_agent_params_tree on the write side.
|
||||
"_unqualified", # bounded by the qualifier depth of a static TypedDict annotation (Annotated, Required/NotRequired, ReadOnly around one type, no cycles possible).
|
||||
"_query_param_aliases", # bounded by the route's Depends() tree, fixed at registration and already resolved acyclically by fastapi itself.
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue