litellm/tests/test_litellm/proxy/list_api
Neel-K26 dab22eb192 refactor(proxy): stop reading from the private fastapi.dependencies.utils module
Issue #36922 (fastapi 0.141 removed get_flat_dependant) was already fixed by
f9b86b253a, which switched to get_flat_params(). That helper lives in the same
private fastapi.dependencies.utils module fastapi silently dropped
get_flat_dependant from, so it carries the same removal risk.

Read Dependant.query_params/.dependencies directly instead: the public
dataclass fields fastapi's own routing engine depends on, and the same fields
get_flat_params itself reads under the hood. Also generalizes the list-route
regression suite's private-import guard from a specific removed-names list to
any import from fastapi.dependencies.utils, so a future name removed from that
module fails the guard on sight.

Related to #36922

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BGKSBA4M3B9gY52md5QpSo
2026-09-13 23:47:04 +05:30
..
test_common.py refactor(proxy): stop reading from the private fastapi.dependencies.utils module 2026-09-13 23:47:04 +05:30
test_in_memory.py feat(proxy): add paginated GET /public/v1/model_hub (#38636) 2026-08-28 10:02:59 -07:00
test_list_framework.py feat: page the public model hub table off /public/v1/model_hub, keeping every filter (#39691) 2026-09-03 22:36:16 -07:00