MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersMethod_roll_back_migration
Mark a specific migration as rolled back
litellm-proxy-extras/litellm_proxy_extras/utils.py:350
↓ 3 callersFunction_rollover_cap
(max_budget: float | None)
litellm/proxy/common_utils/reset_budget_job.py:152
↓ 3 callersFunction_rollover_enabled
()
litellm/proxy/common_utils/reset_budget_job.py:148
↓ 3 callersFunction_root
(api_base: str)
litellm/llms/scaledown/chat/transformation.py:249
↓ 3 callersFunction_root
(gateway: Gateway)
tests/integration/caching/test_response_cache_model_group_key.py:44
↓ 3 callersMethod_round_billed_early
(self)
litellm/responses/mcp/mcp_streaming_iterator.py:497
↓ 3 callersMethod_route_for_registry_lookup
Normalize an incoming route to the bare path stored in the registry. Registry keys store root-stripped paths. Callers should pass ro
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:4084
↓ 3 callersFunction_route_has_dependency
(route, dependency)
tests/unit/proxy/mcp_server/test_rest_endpoints.py:85
↓ 3 callersFunction_route_like_the_proxy
(router: Router, **request: object)
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_router.py:474
↓ 3 callersFunction_route_requires_auth_despite_public
(route: str, general_settings: dict | None)
litellm/proxy/auth/user_api_key_auth.py:222
↓ 3 callersFunction_route_targets
(wire: Wire)
tests/integration/providers/test_google_genai_vertex_routes_wire.py:225
↓ 3 callersFunction_route_to_clef_omni
(monkeypatch: pytest.MonkeyPatch)
tests/unit/proxy/decisions_endpoints/test_endpoints.py:783
↓ 3 callersFunction_route_with_credential_name
(router: litellm.Router, credential_name: str)
tests/unit/llms/github_copilot/test_per_user_auth.py:1375
↓ 3 callersFunction_routed_client
(prefixes)
tests/unit/proxy/middleware/test_per_request_root_path_middleware.py:160
↓ 3 callersFunction_routed_deployment_model
(name_pattern: str, listed_name: str, deployment_model: str)
litellm/proxy/auth/model_checks.py:613
↓ 3 callersMethod_routed_messages_call
( self, *, stream: bool, received_seconds_before_start: float | None = None )
tests/unit/litellm_core_utils/test_litellm_logging.py:1147
↓ 3 callersFunction_routed_profile_request_fields
( respx_mock: respx.Router, litellm_params: dict, model_info: dict, thinking: dict )
tests/unit/llms/bedrock/chat/test_converse_transformation.py:613
↓ 3 callersMethod_routed_responses
The Responses surface hands the router `input` both as the prompt argument and inside the request kwargs, so the hook sees the same shape the
tests/unit/router_strategy/test_complexity_router.py:17080
↓ 3 callersFunction_routed_to
(router: litellm.Router, metadata: dict[str, object])
tests/unit/router_strategy/test_router_tag_routing.py:3452
↓ 3 callersFunction_router
A real Router, so name resolution is the product's own. Only the network call is faked: a resolution fake has to be kept in step with every c
tests/unit/litellm_core_utils/test_llm_judge.py:53
↓ 3 callersMethod_router
(self, routing_groups=None)
tests/unit/router_utils/test_cooldown_handlers.py:405
↓ 3 callersMethod_router
(self, team_deployments: int, blocked_ids: frozenset[str] = frozenset())
tests/unit/router_utils/test_cooldown_handlers.py:486
↓ 3 callersMethod_router
(self)
tests/unit/proxy/test_litellm_pre_call_utils.py:10238
↓ 3 callersMethod_router
(model_list)
tests/unit/proxy/test_update_llm_router_resilience.py:304
↓ 3 callersMethod_router
( mock_router_instance: MagicMock, adaptive: bool = False, deployment_affinity: bool =
tests/unit/router_strategy/test_complexity_router.py:6717
↓ 3 callersMethod_router
(session_affinity: bool = False)
tests/unit/router_strategy/test_complexity_router.py:7607
↓ 3 callersMethod_router_and_parent
()
tests/unit/router_strategy/test_complexity_router.py:12562
↓ 3 callersFunction_router_counts
(router: Router)
tests/unit/router_strategy/test_least_busy.py:364
↓ 3 callersFunction_router_default_litellm_params
(router: Router | None)
litellm/proxy/proxy_server.py:15748
↓ 3 callersFunction_router_defaults
(defaults: dict[str, JsonValue])
tests/integration/providers/test_malformed_tools_wire.py:1742
↓ 3 callersFunction_router_serving
(model_names: list[str])
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:11557
↓ 3 callersFunction_router_serving
(db_model_by_deployment_id: dict[str, bool])
tests/unit/proxy/management_helpers/test_access_group_model_sync.py:87
↓ 3 callersFunction_router_with_defaults
(default_litellm_params: dict[str, object])
tests/unit/proxy/test_route_llm_request.py:2295
↓ 3 callersFunction_router_with_deployments
Stub a router whose `get_model_list(model_name=...)` returns multiple deployments — each entry of `group_guardrails` is the guardrails list for
tests/unit/proxy/utils/helpers/test_guardrail_merge.py:30
↓ 3 callersFunction_router_with_groups
(*names: str)
tests/unit/proxy/video_endpoints/test_utils.py:429
↓ 3 callersFunction_router_with_wildcard_and_unprefixed_anthropic_deployments
()
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:6372
↓ 3 callersFunction_routes
(lines: Lines, *, finished: bool = True)
tests/integration/observability/test_batch_line_items_cold_storage.py:373
↓ 3 callersMethod_routing_fields
The request fields the Rust core routes on, and whether its tag stage may apply: the router's ``enable_tag_filtering``, the request's own, or
litellm/router_rust/core.py:2836
↓ 3 callersFunction_routing_group
(suffix: str, provider: str)
tests/integration/providers/test_malformed_tools_wire.py:2352
↓ 3 callersFunction_row
(report_id: str, window_end: float)
tests/unit/proxy/telemetry/test_endpoints.py:43
↓ 3 callersMethod_row
( self, rows: dict[_Key, _Row], # mutable-ok: one of this sink's bounded row folds, shared ca
litellm/telemetry/aggregate.py:46
↓ 3 callersMethod_row
(self, oauth2_flow)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:12774
↓ 3 callersMethod_row
(self, param_name: str)
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:11537
↓ 3 callersMethod_row
(self, data: Mapping[str, object])
tests/unit/proxy/policy_engine/test_policy_registry.py:45
↓ 3 callersFunction_rows
(pages: tuple[_Page, ...])
tests/integration/spend/test_session_grouped_logs_pages.py:145
↓ 3 callersFunction_rows
(model: str, count: int)
tests/integration/routing/test_vllm_passthrough_stream_usage_settings.py:140
↓ 3 callersFunction_rows
(model: str, count: int = 1)
tests/integration/routing/test_vllm_passthrough_stream_relay.py:156
↓ 3 callersFunction_rows_by_call
(call_ids: Sequence[str])
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:171
↓ 3 callersFunction_rpc_server_call
(client: httpx.Client, key: str, forwarded: str, alias: str)
tests/integration/mcp/test_mcp_access_matrix.py:664
↓ 3 callersFunction_rpm_limited_model_list
()
tests/unit/router_strategy/test_router_routing_groups.py:286
↓ 3 callersFunction_rpm_tpm_router
(model_id: str)
tests/unit/test_router/test_router_helper_utils.py:791
↓ 3 callersFunction_rsa_private_pem
(bits: int = 2048)
tests/unit/proxy/mcp_server/outbound_credentials/test_session_token.py:40
↓ 3 callersFunction_rss_mb_for_log
()
litellm/proxy/proxy_server.py:4716
↓ 3 callersFunction_ruff_output_for_noqa
(code: str, *extra_args: str)
tests/unit/test_ruff_strict_gate.py:85
↓ 3 callersMethod_rule_matches_tool
( self, rule: ToolPermissionRule, *, tool_name: str | None, tool_type:
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:651
↓ 3 callersFunction_run
(cmd: Sequence[str], cwd: Path = REPO_ROOT)
scripts/test_quality_gate.py:60
↓ 3 callersFunction_run
(cmd: Sequence[str], cwd: Path = REPO_ROOT)
scripts/type_discipline_gate.py:68
↓ 3 callersFunction_run
()
tests/integration/authorization/test_audit_any_sweep_auth.py:180
↓ 3 callersFunction_run
(marker: str, wire_url: str, executed: SimpleQueue[str])
tests/integration/sdk/test_tool_loop_server_tool_replay_sdk.py:61
↓ 3 callersFunction_run
(guardrail: CustomGuardrail)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_streaming_buffer_until_moderated.py:417
↓ 3 callersFunction_run
(*, credentials: Credentials | None = RESOLVED_CREDENTIALS, **overrides)
tests/unit/llms/bedrock/chat/test_bedrock_converse_handler.py:76
↓ 3 callersFunction_run
(thread_id=THREAD_ID, assistant_id=ASSISTANT_ID)
tests/unit/llms/openai/test_openai.py:1937
↓ 3 callersMethod_run
(self, request_data)
tests/unit/proxy/test_proxy_utils_model_creation_and_error_logging.py:493
↓ 3 callersMethod_run
(self, request_data)
tests/unit/proxy/test_proxy_utils_model_creation_and_error_logging.py:594
↓ 3 callersMethod_run
(self, guardrail)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:1956
↓ 3 callersMethod_run
(self, job: MagicMock)
tests/unit/proxy/common_utils/test_check_batch_cost.py:2299
↓ 3 callersMethod_run
(self, response: dict, converted_stream: bool = False)
tests/unit/integrations/websearch_interception/test_websearch_agentic_loop_cap.py:819
↓ 3 callersMethod_run_build
Have router-core build ``entries``, answering its steps from this registry.
litellm/router_rust/surface/registry.py:886
↓ 3 callersFunction_run_bulk_update_on_one_key
( monkeypatch: pytest.MonkeyPatch, item_payload: Mapping[str, object], team: LiteLLM_TeamTableCach
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:7652
↓ 3 callersFunction_run_centralized_checks_for_end_user
( monkeypatch: pytest.MonkeyPatch, token: UserAPIKeyAuth, end_user: LiteLLM_EndUserTable | None,
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:5411
↓ 3 callersFunction_run_checks_for_cached_user
Run the centralized gate for `token` on /chat/completions with `db_user` as the cached row its user_id resolves to.
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:4886
↓ 3 callersFunction_run_coroutine_if_needed
(result: object)
tests/unit/conftest.py:260
↓ 3 callersMethod_run_create
(self, monkeypatch, provider_env, auth_type, caplog)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:4577
↓ 3 callersFunction_run_direct_health_check_with_instrumentation
Call ``perform_health_check``, dropping exactly the optional kwarg each TypeError names. A callee that predates an argument rejects it by name, s
litellm/proxy/proxy_server.py:4726
↓ 3 callersFunction_run_guardrails_and_call_llm
( completion_kwargs: dict[str, object], user_api_key_auth: "UserAPIKeyAuth", )
litellm/proxy/mcp_server/sampling_handler.py:1104
↓ 3 callersMethod_run_health_probe
Issue the `SELECT 1` a health check is made of, against `wrapper`. Takes the wrapper rather than re-reading `self.db`, because routing is
litellm/proxy/utils.py:8074
↓ 3 callersFunction_run_in_memory_hub
(script: str, served: dict[str, str], text: str, tmp_path: Path)
tests/unit/litellm_core_utils/test_token_counter.py:3458
↓ 3 callersFunction_run_init_cache_with_backend
Run ProxyConfig._init_cache with a stubbed response-cache backend and a controlled REDIS_* environment, returning (redis_usage_cache, spend_co
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:13241
↓ 3 callersFunction_run_internal_user_budget_alert
( *, spend: float, )
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:7628
↓ 3 callersFunction_run_json
(run_id: str = "evalrun_123", status: str = "queued")
tests/unit/llms/openai/evals/test_openai_evals_transformation.py:328
↓ 3 callersMethod_run_jwt_auth
(self, mock_jwt_result, jwt_token, route="/v1/chat/completions")
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:9427
↓ 3 callersMethod_run_optional_discovery
(self, operation: Callable[[ClientSession], Awaitable[_ListPage]])
litellm/mcp_client/client.py:1276
↓ 3 callersFunction_run_passthrough_connect
Drive handle_streamable_http_mcp through the preemptive-401 gate and report whether it challenged (raised) or forwarded to the session manager. Re
tests/unit/proxy/mcp_server/test_mcp_stale_session.py:1414
↓ 3 callersFunction_run_reset_at_fixed_now
Run the budget-table reset with `now` pinned for reset-time math.
tests/unit/proxy/common_utils/test_reset_budget_job.py:775
↓ 3 callersFunction_run_reset_query
Run ``get_data`` for one table's budget-reset query against a mocked prisma handle, and hand back the ``find_many`` mock it drove.
tests/unit/proxy/common_utils/test_reset_budget_job.py:2178
↓ 3 callersFunction_run_scheduled_background_jobs
()
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:14499
↓ 3 callersFunction_run_stream
(logger, data: dict, chunks: Sequence[object])
tests/unit/integrations/otel/test_langfuse_logger.py:95
↓ 3 callersFunction_run_streaming_hook
(guard)
tests/unit/proxy/guardrails/guardrail_hooks/test_cato_networks.py:2583
↓ 3 callersFunction_run_thread_streaming
(monkeypatch, interval, delay=0.3, fails_with=None)
tests/unit/proxy/proxy_server/test_streaming_helpers.py:2997
↓ 3 callersFunction_runtime
(peer_url: str)
tests/integration/providers/test_sagemaker_embedding_chaos.py:65
↓ 3 callersFunction_runtime_of
(request: Request)
tests/integration/providers/test_strands_decider_agentcore_wire.py:190
↓ 3 callersFunction_runway_task
(decoded: object)
litellm/llms/runwayml/image_generation/transformation.py:53
↓ 3 callersMethod_s3_request_target
The shared files handler passes optional_params={}, so AWS credentials and region arrive via litellm_params here (unlike the upload p
litellm/llms/bedrock/files/transformation.py:1706
↓ 3 callersFunction_safe_aread_response
Safely read async response body, falling back to empty bytes on errors.
litellm/llms/custom_httpx/http_handler.py:546
↓ 3 callersFunction_safe_emit
Run an additive attribute emitter, swallowing any error so it cannot blank attributes set elsewhere on the span. Failures are logged at debug.
litellm/integrations/arize/_utils.py:583
↓ 3 callersMethod_safe_get
(self, obj: Mapping[str, object] | None, key: str, default: object = None)
litellm/integrations/posthog.py:415
↓ 3 callersMethod_safe_get_model_info
(model: str, custom_llm_provider: str | None = None)
litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py:659
↓ 3 callersFunction_safe_header_value
(value: str)
litellm/llms/chatgpt/common_utils.py:162
↓ 3 callersFunction_safe_identifier
(value: object)
litellm/integrations/datadog/datadog_llm_obs.py:180
↓ 3 callersMethod_safe_insert_cache_control_in_message
Safe way to insert cache control in a message OpenAI Message content can be either: - string - list of objec
litellm/integrations/anthropic_cache_control_hook.py:1209
← previousnext →24,901–25,000 of 202,479, ranked by callers