MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 5 callersFunction_resync_model_deployments
(model_name: str)
litellm/proxy/common_utils/registry_read_through.py:125
↓ 5 callersFunction_retry_skip_deployment
(deployment_id, host, litellm_params=None, model_info=None)
tests/unit/test_router/test_router.py:11942
↓ 5 callersFunction_return_user_api_key_auth_obj
( user_obj: LiteLLM_UserTable | None, api_key: str, parent_otel_span: Span | None, valid_token
litellm/proxy/auth/user_api_key_auth.py:4712
↓ 5 callersFunction_reverse_job
(**overrides)
tests/unit/integrations/test_shadow_eval_logger.py:2049
↓ 5 callersFunction_revoke
(client: TestClient, token: str, hint: str | None = None)
tests/unit/proxy/anthropic_endpoints/test_gateway_endpoints.py:230
↓ 5 callersFunction_rewritten_delta
( upstream: tuple[bytes, ...], rewrite: Callable[[ModelResponse], None], keep_explanations: bool = False )
tests/unit/proxy/guardrails/test_anthropic_sse.py:29
↓ 5 callersFunction_rig
(gateway: Gateway, directory: Path)
tests/integration/spend/test_daily_activity_key_metadata_query_timeout.py:680
↓ 5 callersMethod_rig
(monkeypatch: pytest.MonkeyPatch, rows: Sequence[Mapping[str, object]])
tests/unit/proxy/management_endpoints/test_auto_router_endpoints.py:1292
↓ 5 callersMethod_rollback_redis_batch_key_reservations
(self, previous_access_times: dict[str, float | None])
litellm/caching/dual_cache.py:333
↓ 5 callersFunction_rollout
(*compactions: Mapping[str, object])
tests/e2e_harness/codex/test_codex_rollout.py:32
↓ 5 callersFunction_roster
(prisma: _FakePrisma)
tests/unit/proxy/management_helpers/test_team_roster_sync.py:277
↓ 5 callersFunction_roster_member
(user_id: str, user_email: str | None, role: str = "user")
tests/integration/management/test_team_member_lifecycle.py:175
↓ 5 callersMethod_rotate_virtual_key_in_secret_manager
Update a virtual key in the secret manager Args: current_secret_name: Current name of the virtual key new_se
litellm/proxy/hooks/key_management_event_hooks.py:335
↓ 5 callersFunction_rotation_row
(litellm_params: dict[str, object] | LitellmParams)
tests/unit/proxy/guardrails/test_guardrail_registry.py:537
↓ 5 callersFunction_round_trips
(redis: FakeAuthCache)
tests/unit/proxy/auth/test_auth_object_prefetch.py:95
↓ 5 callersFunction_route
(prompt: str, monkeypatch: pytest.MonkeyPatch, **config_overrides: object)
tests/unit/proxy/management_endpoints/test_auto_router_endpoints.py:122
↓ 5 callersFunction_routed_body
(route: respx.Route)
tests/unit/llms/fireworks_ai/responses/test_fireworks_ai_responses_transformation.py:89
↓ 5 callersFunction_routed_call_kwargs
(model_info: Mapping[str, object])
tests/unit/proxy/spend_tracking/test_spend_tracking_utils.py:6415
↓ 5 callersFunction_router
(wire: Wire)
tests/integration/sdk/test_responses_bridge_stream_errors_sdk.py:32
↓ 5 callersFunction_router
(model: str, api_base: str = _PRIMARY)
tests/unit/test_router/test_router_callback_hook_sequence.py:256
↓ 5 callersMethod_router
(api_base: str, litellm_params: dict, **router_kwargs)
tests/unit/test_router_per_deployment_num_retries.py:263
↓ 5 callersMethod_router
(cls, marker_tags=("route",))
tests/unit/test_router/test_router.py:9016
↓ 5 callersMethod_router
(cls, registry_name: str | None)
tests/unit/test_router/test_router.py:10161
↓ 5 callersMethod_router
(*deployments: dict)
tests/unit/router_strategy/test_savings_baseline.py:132
↓ 5 callersMethod_router
(self, mock_router_instance, basic_config, keywords: List[str])
tests/unit/router_strategy/test_complexity_router.py:5876
↓ 5 callersFunction_router_with_adaptive
()
tests/unit/router_strategy/adaptive_router/test_router_dispatch.py:178
↓ 5 callersFunction_router_with_aliases
(model_group_alias: Mapping[str, str])
tests/unit/proxy/health_endpoints/test_health_endpoints.py:4416
↓ 5 callersMethod_router_with_free_and_paid_models
()
tests/unit/proxy/test_common_request_processing.py:805
↓ 5 callersFunction_row
(**overrides)
tests/unit/proxy/mcp_server/test_oauth_issuer_stamp_backfill.py:18
↓ 5 callersFunction_row
( date: str = "2026-08-04", category: str = "llm", route: str = "/chat/completions", successfu
tests/unit/proxy/management_endpoints/test_gateway_request_endpoints.py:42
↓ 5 callersMethod_row
(baseline_models: dict[str, int], estimated_turns: int = 3)
tests/unit/models/test_models.py:658
↓ 5 callersFunction_rows
(key: str, count: int)
tests/integration/spend/test_vertex_regional_uplift_spend.py:162
↓ 5 callersFunction_rows_for_marker
(rows: Sequence[Request], marker: str)
tests/integration/observability/test_guardrail_stream_scope_chaos.py:370
↓ 5 callersFunction_rows_read_since
(database_url: str, baseline: Mapping[str, int])
tests/integration/spend/test_key_metadata_recovery_probe_bounds.py:108
↓ 5 callersFunction_rpc_result
(response: httpx.Response)
tests/integration/mcp/test_proxy_mcp_e2e.py:873
↓ 5 callersFunction_run
(gateway: Gateway, model: str, key: str, *, turns: int = 1)
tests/integration/providers/test_vertex_realtime_multi_region_host.py:218
↓ 5 callersFunction_run
(root: Path, secret: str = SECRET)
tests/unit/test_assert_secret_absent.py:51
↓ 5 callersMethod_run
(self, path: str, data: dict, headers: dict | None = None)
tests/unit/proxy/test_litellm_pre_call_utils.py:8310
↓ 5 callersMethod_run
(db_model, patch_data, monkeypatch, touched=None)
tests/unit/proxy/management_endpoints/test_ptu_model_settings.py:400
↓ 5 callersFunction_run_centralized_checks_with_key_end_user_budget
Run the centralized checks with a fake DB and return the token handed to budget reservation. With ``custom_auth`` the token stands for one a custo
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:5106
↓ 5 callersFunction_run_chat_completion_agentic_hooks
( response: ModelResponse, *callbacks: CustomLogger, kwargs: Mapping[str, object] = MappingProxyType({}) )
tests/unit/llms/custom_httpx/test_llm_http_handler.py:5568
↓ 5 callersFunction_run_checkout
( tmp_path: Path, upstream: _Upstream, revisions: Mapping[str, str], shell: tuple[str, ...] =
tests/unit/test_circleci_checkout.py:193
↓ 5 callersFunction_run_commit_msg
(subject: str, tmp_path: Path)
tests/unit/test_git_hooks.py:39
↓ 5 callersFunction_run_context_request
( gateway: Gateway, tmp_path: Path, *, messages: list[dict[str, JsonValue]], tools: list[d
tests/integration/observability/test_grayswan_wire.py:865
↓ 5 callersMethod_run_database_v2
v2 migration resolver (opt-in via --use_v2_migration_resolver). Runs `prisma migrate deploy`, baselines verified existing schemas,
litellm-proxy-extras/litellm_proxy_extras/utils.py:1014
↓ 5 callersMethod_run_deletion_guard
Run the real managed-files deletion guard against the row the poller is costing.
tests/unit/proxy/common_utils/test_check_batch_cost.py:3679
↓ 5 callersFunction_run_entrypoint
Run `script` with stubbed executables on PATH and return the recorded lines.
tests/unit/test_component_entrypoint.py:63
↓ 5 callersFunction_run_on_autojump_clock
(scenario: Coroutine[object, object, _ScenarioT])
tests/unit/proxy/test_common_request_processing.py:13330
↓ 5 callersFunction_run_pass_through_and_capture_wire_url
( target: str, incoming_query: str, merge_query_params: bool = False, default_query_params: di
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:3516
↓ 5 callersFunction_run_polyfill_if_enabled
Run the async context_management polyfill if a spec is present. Returns ``None`` when the spec is empty or ``context_management`` is listed i
litellm/llms/anthropic/messages/adapters/handler.py:463
↓ 5 callersFunction_run_pre_call
(mgr, plo, logging_obj)
tests/unit/proxy/mcp_server/test_mcp_guardrail_usage_monitor.py:111
↓ 5 callersMethod_run_qualifire_check
Core Qualifire check logic - shared between hooks. Args: messages: The conversation messages output: The LLM
litellm/proxy/guardrails/guardrail_hooks/qualifire/qualifire.py:308
↓ 5 callersFunction_run_splitter
(chunks)
tests/unit/llms/bedrock/chat/chat_completions/test_bedrock_chat_completions_transformation.py:962
↓ 5 callersFunction_run_streaming_hook_recording_order
(guardrail: BedrockGuardrail)
tests/unit/proxy/guardrails/guardrail_hooks/test_bedrock_guardrails.py:5735
↓ 5 callersFunction_run_toolset_update
The columns PUT /v1/mcp/toolset writes for this payload, minus the audit stamp every write carries. The prisma double is injected, so nothing is p
tests/unit/proxy/mcp_server/test_mcp_partial_update.py:883
↓ 5 callersMethod_run_v1_migrations
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, *, deploy_stderr: Optional[
tests/unit/litellm_proxy_extras/test_litellm_proxy_extras_utils.py:1881
↓ 5 callersFunction_run_windowed
( guardrail: CustomGuardrail, content_chunks: List[str], end_of_stream_only: bool = False, too
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_streaming_buffer_until_moderated.py:290
↓ 5 callersFunction_s3_logger_answering
( status: int, s3_path: str | None, content: bytes = b"" )
tests/unit/integrations/test_s3_v2.py:5945
↓ 5 callersFunction_safe_get_request_parsed_body
(request: Request | None)
litellm/proxy/common_utils/http_parsing_utils.py:427
↓ 5 callersFunction_sagemaker_chat_route
(respx_mock: respx.MockRouter)
tests/unit/test_router/test_router.py:20149
↓ 5 callersFunction_sample
(name: str, labels: dict[str, str])
tests/unit/rust_bridge/host/test_redis_events.py:31
↓ 5 callersFunction_sample_context_management_payload
()
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:1148
↓ 5 callersFunction_sample_hits
Deterministically decide whether a request falls in the shadowed slice: hash-based rather than random so retries sample the same way and pods agre
litellm/integrations/shadow_eval_logger.py:489
↓ 5 callersFunction_sanitize_gcp_label_value
Sanitize a string to meet GCP label value constraints. GCP label values must: - Be lowercase - Contain only letters, numbers, unders
litellm/llms/vertex_ai/files/transformation.py:176
↓ 5 callersMethod_sanitize_payload_for_transport
(payload: dict)
litellm/proxy/guardrails/guardrail_hooks/noma/noma_v2.py:215
↓ 5 callersFunction_say
(connection: websockets.ClientConnection, model: str, text: str = "")
tests/integration/routing/test_responses_websocket_turn_admission.py:221
↓ 5 callersFunction_schedule_background_health_check_db_save
Fire-and-forget: persist health check results to DB if prisma is available.
litellm/proxy/proxy_server.py:4796
↓ 5 callersFunction_schedule_team_membership_audit_log
( team_id: str, team_alias: str | None, before_members: Sequence[Member], after_members: Seque
litellm/proxy/management_endpoints/team_endpoints.py:3582
↓ 5 callersFunction_schedule_with
(lock_manager)
tests/unit/proxy/proxy_server/test_background_health.py:278
↓ 5 callersFunction_scim_admin_prisma
Prisma double and its one transaction, in which the user resolves to user_teams, ``teammates`` are further (user_id, teams) rows, and teams expose
tests/unit/proxy/management_endpoints/scim/test_scim_v2_endpoints.py:2992
↓ 5 callersFunction_scim_request
( gateway: Gateway, method: str, path: str, body: dict[str, JsonValue] | None = None, )
tests/integration/management/test_scim_user_lifecycle.py:100
↓ 5 callersFunction_scoped_rows
( rows: Sequence[Request], marker: str, streaming_name: str, non_streaming_name: str, )
tests/integration/observability/test_guardrail_stream_scope_matrix.py:1385
↓ 5 callersFunction_scripted
Each check gets the next outcome; the last one repeats once the script runs out.
tests/unit/proxy/guardrails/guardrail_hooks/test_generic_guardrail_api.py:2489
↓ 5 callersFunction_scripted_receive
(messages: list[Message])
tests/unit/proxy/middleware/test_request_body_decompression_middleware.py:538
↓ 5 callersFunction_scrubbed
()
tests/integration/providers/test_voyage_mongodb_host_wire.py:129
↓ 5 callersFunction_sdk_base_url
(gateway: Gateway)
tests/integration/providers/test_files_batches_wire.py:176
↓ 5 callersFunction_sdk_base_url
(gateway: Gateway)
tests/integration/management/test_vector_store_file_list_managed_ids.py:314
↓ 5 callersFunction_sealed_refresh_token
(refresh: RefreshCredential | None = None, keys: EnvelopeKeys = _KEYS)
tests/unit/proxy/mcp_server/outbound_credentials/test_envelope.py:182
↓ 5 callersFunction_search_observations
(gateway: Gateway, marker: str, store_id: str)
tests/integration/providers/test_audit_any_sweep_vector_store.py:46
↓ 5 callersFunction_searched
(wire: Wire, marker: str)
tests/integration/authorization/test_search_tool_deny_by_default.py:80
↓ 5 callersFunction_select
(router: Router, entrypoint: str, model: str, request_kwargs: dict[str, object])
tests/unit/router_utils/test_cooldown_handlers.py:3175
↓ 5 callersMethod_select_deployment
( self, target_type: str, deployments: list[dict], )
litellm/router_strategy/lar1_routing.py:160
↓ 5 callersFunction_select_last_user_question
Pick the most recent ``user`` turn that is a real question. Returns a one-element message list with any ``tool_result`` blocks stripped: afte
litellm/llms/anthropic/messages/context_management/editors/compact.py:365
↓ 5 callersFunction_select_transport
(monkeypatch, disable_aiohttp_transport: bool)
tests/unit/caching/test_llm_caching_handler.py:511
↓ 5 callersFunction_selected_deployment_ids
(router: Router)
tests/unit/test_router/test_router_provider_endpoints.py:426
↓ 5 callersMethod_semantic_tier_override
Match the prompt against keyword_tier_rules by embedding similarity. Embeds the query ourselves (instead of letting SemanticRouter.acall embe
litellm/router_strategy/complexity_router/complexity_router.py:4285
↓ 5 callersFunction_send
(rig: Rig, endpoint: str, key: str, text: str, extra: dict[str, JsonValue] | None = None)
tests/integration/observability/test_ovalix_guardrail.py:221
↓ 5 callersFunction_send
( rig: _Rig, route: str, model: str, trace_id: str | None = None, *, key: str | None =
tests/integration/observability/test_anthropic_overloaded_failure_signals.py:180
↓ 5 callersFunction_send
( gateway: Gateway, endpoint: str, model: str, guardrail: str, prompt: str, stream: bool = False )
tests/integration/authorization/test_lakera_v2_on_flagged.py:136
↓ 5 callersFunction_send
( rig: Rig, endpoint: Endpoint, guardrail: str, action: Action, *, input_type: str = "
tests/integration/streaming/test_noma_v2_streaming_settings.py:521
↓ 5 callersFunction_send
( rig: Rig, data: bytes, coding: str | None, *, key: str | None = None, extra: Mapping
tests/integration/compatibility/test_compressed_request_bodies.py:213
↓ 5 callersFunction_send
(rig: _Rig, surface: str, model: str, lines: int)
tests/integration/routing/test_base_model_context_window_owned_proxy.py:128
↓ 5 callersFunction_send_and_wait_until_landed
(candidate: Gateway, model: str, key: str, sink: RejectingS3Sink, identity: str)
tests/integration/observability/test_s3_v2_upload_fanout.py:383
↓ 5 callersFunction_send_bedrock_messages
( model: str, model_info: Mapping[str, object] | None, replies: Sequence[tuple[int, Mapping[str, o
tests/unit/llms/bedrock/messages/invoke_transformations/test_anthropic_claude_transformation.py:4200
↓ 5 callersFunction_send_chat
(gateway: Gateway, model: str, tool_contents: Sequence[JsonValue])
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:927
↓ 5 callersFunction_sent_body
(route: respx.Route)
tests/unit/integrations/vector_store_integrations/test_vector_store_pre_call_hook_bedrock_kb.py:87
↓ 5 callersFunction_sent_creates
(rig: Rig, expected: int)
tests/integration/compatibility/test_fine_tuning_managed_files_chaos.py:203
↓ 5 callersFunction_sent_json
(route: respx.Route)
tests/unit/interactions/test_agents_main_and_utils.py:362
↓ 5 callersFunction_sent_paths
(respx_mock: respx.MockRouter)
tests/unit/llms/bedrock/chat/test_bedrock_converse_handler.py:582
↓ 5 callersFunction_sent_to_bedrock
The body Bedrock receives when the passthrough route sends ``data``.
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:1433
← previousnext →15,001–15,100 of 202,479, ranked by callers