MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_block_index
(event_data: Mapping[str, object])
litellm/llms/anthropic/messages/stream_assembly.py:648
↓ 3 callersFunction_blocked
(model_id: str)
tests/integration/authorization/test_team_admin_gate.py:518
↓ 3 callersFunction_blocked_guardrail_exception
()
tests/unit/proxy/test_common_request_processing.py:3156
↓ 3 callersFunction_blocking_bedrock_httpx_response
(marker: str)
tests/unit/proxy/guardrails/guardrail_hooks/test_bedrock_guardrails.py:3674
↓ 3 callersFunction_blocking_guardrail
()
tests/unit/proxy/mcp_server/test_mcp_guardrail_usage_monitor.py:101
↓ 3 callersFunction_blocks
(frames: str)
litellm/proxy/common_utils/responses_stream_errors.py:295
↓ 3 callersFunction_blocks_of
(body: dict[str, JsonValue])
tests/integration/providers/test_responses_bridge_message_cache_control_wire.py:195
↓ 3 callersFunction_bodies
(wire: Wire)
tests/integration/providers/test_pdf_input_support_wire.py:148
↓ 3 callersFunction_body
(model: str, marker: str, **extra: JsonValue)
tests/integration/providers/test_cloudflare_clairic_extraction_wire.py:95
↓ 3 callersFunction_body
(request: Request)
tests/integration/providers/test_inferenceapis_wire.py:168
↓ 3 callersFunction_body
(request: Request)
tests/integration/providers/test_bedrock_runtime_chat_completions_sad_wire.py:91
↓ 3 callersFunction_body
(model: str, call: _Call)
tests/integration/providers/test_responses_bridge_message_cache_control_wire_chaos.py:163
↓ 3 callersFunction_body
(request: Request)
tests/integration/providers/test_bedrock_gpt_responses_native_wire.py:59
↓ 3 callersFunction_body
(path: str, model: str, stream: bool)
tests/integration/observability/test_guardrail_pipeline_applied_header.py:469
↓ 3 callersFunction_body
(model: str, endpoint: Endpoint, marker: str, stream: bool)
tests/integration/observability/test_otel_excluded_services_matrix.py:178
↓ 3 callersFunction_body
(model: str, marker: str, **extra: JsonValue)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_pre_content_retry_wire.py:88
↓ 3 callersFunction_body
(response: httpx.Response)
tests/integration/routing/test_fallback_retry_header_contracts.py:51
↓ 3 callersFunction_body_markers
(body: dict[str, JsonValue])
tests/integration/observability/test_grayswan_wire_chaos.py:104
↓ 3 callersFunction_bool_constant
(value: ast.expr)
scripts/check_type_discipline.py:880
↓ 3 callersMethod_bool_env
(name: str, default: bool)
litellm/proxy/management_endpoints/sso/saml_sso.py:129
↓ 3 callersFunction_bound_adaptive_request
(headers: dict[str, str], drop_params: bool | None = True)
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_transformation.py:615
↓ 3 callersFunction_breakdown
A `cost_breakdown` as the cost calculator records it on the spend log.
tests/unit/proxy/spend_tracking/test_savings.py:751
↓ 3 callersFunction_bridge_agent_params
(prices: _AgentPrices)
tests/unit/a2a_protocol/test_main.py:890
↓ 3 callersFunction_bridge_assert_answered
(served: _BridgeServed)
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:1157
↓ 3 callersFunction_bridge_assert_one_success_row
(model: str, served: _BridgeServed)
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:1194
↓ 3 callersFunction_bridge_assert_upstream_saw_each_call_once
(received: tuple[Request, ...], calls: tuple[_BridgeCall, ...])
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:1170
↓ 3 callersFunction_bridge_burst
( gateway: Gateway, model: str, calls: tuple[_BridgeCall, ...], *, tolerate_transport_errors: bool = False
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:1127
↓ 3 callersFunction_bridge_calls
( count: int, endpoint: Callable[[int], BridgeEndpoint], stream: Callable[[int], bool] )
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:1032
↓ 3 callersFunction_bridge_chunks
Parse the SSE events of a bridged stream, failing loudly on a stream that never established, carried an error event, or delivered no chunks.
tests/e2e/llm_translation/test_responses_bridge_streaming_e2e.py:78
↓ 3 callersFunction_bridge_grant_from_token_response
Validate an upstream OAuth token response into a typed grant, or say why it cannot back an envelope. Each field is isinstance-checked so nothing u
litellm/proxy/mcp_server/bridge_token_flow.py:605
↓ 3 callersFunction_bridge_replayed_anthropic_messages
(minted_by: str)
tests/unit/router_utils/pre_call_checks/test_encrypted_content_affinity_check.py:1820
↓ 3 callersFunction_bridge_response
( respx_mock: respx.MockRouter, monkeypatch: pytest.MonkeyPatch, *, stream: bool, settings
tests/unit/llms/anthropic/messages/responses_adapters/test_responses_adapters_handler.py:494
↓ 3 callersFunction_bridge_to
(model: str, history: list[dict[str, object]], **request: object)
tests/unit/responses/litellm_completion_transformation/test_litellm_completion_responses.py:7408
↓ 3 callersFunction_bridge_token_post_data
(server, redirect_uri)
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:5749
↓ 3 callersMethod_bridged_chat_response
(self, response: ResponsesAPIResponse, request: BridgedChatRequest)
litellm/litellm_core_utils/litellm_logging.py:3277
↓ 3 callersFunction_bridged_responses_call
(asynchronous: bool, stream: bool, **kwargs: object)
tests/unit/responses/test_responses_api_bridge_flag.py:1146
↓ 3 callersFunction_bridges_to_chat_completions
Whether the request reaches its provider as a chat completion, not a Responses call.
litellm/responses/main.py:609
↓ 3 callersFunction_bucket
(day: str, *amounts: float)
tests/unit/proxy/spend_tracking/test_spend_capture_rate.py:34
↓ 3 callersFunction_bucket
(kwargs: Mapping[str, object], name: str)
tests/unit/test_router/core/test_endpoints_characterization_batch.py:34
↓ 3 callersFunction_budget
( ctx: RoutingContext, deployment: Mapping[str, object], payload: Mapping[str, object], ratio: float )
litellm/router_strategy/complexity_router/context_compaction.py:251
↓ 3 callersFunction_budget_alert_user_info
(extra: dict)
tests/unit/enterprise/enterprise_callbacks/send_emails/test_base_email.py:1323
↓ 3 callersFunction_budget_limit_windows
Coerce a key's stored `budget_limits` into a tuple of plain window dicts. It is a DB Json column, so a caller reading it straight off `find_uniqu
litellm/proxy/management_endpoints/key_management_endpoints.py:6816
↓ 3 callersFunction_budget_link_where
( budget_ids: Sequence[str], extra: Mapping[str, object] = MappingProxyType({}), )
litellm/proxy/common_utils/reset_budget_job.py:229
↓ 3 callersFunction_budget_row
(budget_id: str)
tests/integration/management/test_budget_updates.py:56
↓ 3 callersFunction_budget_rows
(group: str)
tests/integration/authorization/test_access_group_budget.py:239
↓ 3 callersFunction_budget_rows
(client: ManagementClient, budget_id: str)
tests/e2e/management/test_budget_customer_user_org_e2e.py:111
↓ 3 callersFunction_budget_table
(prisma_client: PrismaClient, tx: MemberWriteTx | None)
litellm/proxy/management_helpers/utils.py:125
↓ 3 callersFunction_budgeted_group
A database model in a fresh access group with one grant and a 0.0001 group budget.
tests/integration/authorization/test_access_group_budget.py:203
↓ 3 callersFunction_build
( *, request_kwargs: dict[str, object], patch_kwargs: dict[str, object], request_params: set[s
tests/unit/litellm_core_utils/test_agentic_followup_kwargs.py:7
↓ 3 callersFunction_build_aggregate_authorization_server_response
RFC 8414 metadata for the gateway as the aggregate authorization server. The issuer is ``{base}/mcp`` and must stay equal to the value the ag
litellm/proxy/mcp_server/discoverable_endpoints.py:3201
↓ 3 callersFunction_build_aggregate_protected_resource_response
RFC 9728 metadata for the aggregate /mcp resource: the gateway itself is the authorization server. No per-server names or scopes leak here; access
litellm/proxy/mcp_server/discoverable_endpoints.py:3163
↓ 3 callersMethod_build_aim_headers
A helper function to build the http headers that are required by AIM guardrails.
litellm/proxy/guardrails/guardrail_hooks/aim/aim.py:335
↓ 3 callersMethod_build_and_enqueue_block_event
( self, logging_obj: "LiteLLMLoggingObj", exception: "ModifyResponseException",
litellm/integrations/rubrik.py:887
↓ 3 callersMethod_build_anthropic_request_patch
Execute litellm.search() and build follow-up request patch.
litellm/integrations/websearch_interception/handler.py:1421
↓ 3 callersFunction_build_app_with_docs_env
(monkeypatch, *, disabled: bool)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:15528
↓ 3 callersFunction_build_audit_log_payload
Convert LiteLLM_AuditLogs to StandardAuditLogPayload for callback dispatch.
litellm/proxy/management_helpers/audit_logs.py:101
↓ 3 callersMethod_build_chat_completion_request_patch
Execute litellm.search() and build chat-completion rerun patch.
litellm/integrations/websearch_interception/handler.py:1858
↓ 3 callersMethod_build_chat_request
Drive optional params through map → _get_optional_params and read the resulting chatRequest body via transform_request.
tests/unit/llms/oci/chat/test_oci_chat_transformation.py:1064
↓ 3 callersFunction_build_completion_kwargs
( params: "CreateMessageRequestParams", model: str, user_api_key_auth: "UserAPIKeyAuth", raw_h
litellm/proxy/mcp_server/sampling_handler.py:1059
↓ 3 callersFunction_build_db_model_for_blocked_test
()
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:4019
↓ 3 callersMethod_build_entry
Entry ``index`` as ``set_model_list``'s loop holds it, popped off the first time a step names it (so a malformed entry raises where the loop r
litellm/router_rust/surface/registry.py:962
↓ 3 callersFunction_build_field_dict
Build field dictionary for non-nested fields.
litellm/proxy/guardrails/guardrail_endpoints.py:1895
↓ 3 callersFunction_build_file_citation_annotations
Build file_citation annotations for the text. Each result with a file_id gets a citation at the end of the text.
litellm/responses/file_search/emulated_handler.py:282
↓ 3 callersFunction_build_judge_prompt
( criteria: Sequence[JudgeCriterion], messages: Sequence[JudgeMessage], text_under_review: str,
litellm/proxy/guardrails/guardrail_hooks/llm_as_a_judge/__init__.py:159
↓ 3 callersMethod_build_langfuse_otel_config
Builds an OTLP HTTP config pointing at the Langfuse OTEL endpoint for the given host (US cloud when no host is provided), authorized
litellm/integrations/langfuse/langfuse_otel.py:451
↓ 3 callersMethod_build_langfuse_otel_headers
Build the OTLP header set Langfuse expects. `x-langfuse-ingestion-version: 4` selects Langfuse's v4 ingestion path; without
litellm/integrations/langfuse/langfuse_otel.py:488
↓ 3 callersMethod_build_litellm_params
( self, vertex_location=None, vertex_count_tokens_location=None, )
tests/unit/llms/vertex_ai/vertex_ai_partner_models/count_tokens/test_count_tokens_location.py:25
↓ 3 callersFunction_build_logging_obj_wired_to_root
Mirror pass_through_endpoints.py: build the logging object and run the real _init_kwargs + update_environment_variables so the parent span lands
tests/unit/integrations/open_telemetry/test_passthrough_parent_span.py:80
↓ 3 callersMethod_build_logging_payload
( run: TinyfishRun | None, logging_obj: LiteLLMLoggingObj, result: str, start_
litellm/proxy/pass_through_endpoints/llm_provider_handlers/tinyfish_passthrough_logging_handler.py:369
↓ 3 callersMethod_build_logging_response
(self)
litellm/files/streaming.py:114
↓ 3 callersFunction_build_membership_for_me
Real LiteLLM_TeamMembership as get_team_membership would return.
tests/unit/proxy/management_endpoints/test_team_endpoints.py:12425
↓ 3 callersMethod_build_object_key
(self, *, time_window: FocusTimeWindow, filename: str)
litellm/integrations/focus/destinations/s3_destination.py:52
↓ 3 callersMethod_build_object_key
(self, *, time_window: FocusTimeWindow, filename: str)
litellm/integrations/focus/destinations/gcs_destination.py:61
↓ 3 callersFunction_build_optional_params_for_tools
Run a tools list through ``map_openai_params`` to get the same shape ``transform_request`` will see from the router. Keeping this helper local
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:6111
↓ 3 callersFunction_build_passthrough_failure_request_payload
Build the ``request_data`` dict passed to ``post_call_failure_hook``. Shared by the outer exception handler (LiteLLM-internal failures) and u
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:934
↓ 3 callersFunction_build_plugin_manifest
Build the stored manifest dict shared by plugin create and update.
litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py:525
↓ 3 callersFunction_build_put_user_payload
(user_id: str, **overrides)
tests/unit/proxy/management_endpoints/scim/test_scim_key_deactivation.py:436
↓ 3 callersFunction_build_redis_usage_cache_from_environment
Builds a standalone coordination Redis from REDIS_* environment variables. Lets the proxy's coordination Redis (cross-pod tpm/rpm rate limit
litellm/proxy/proxy_server.py:5375
↓ 3 callersMethod_build_response
(self, num_records)
tests/unit/llms/vertex_ai/rerank/test_vertex_ai_rerank_transformation.py:336
↓ 3 callersFunction_build_seeded_limiter
Build a v3 limiter whose api-key slot registry already holds the pre-call slot.
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:5358
↓ 3 callersMethod_build_standard_logging_payload
Build StandardLoggingPayload and accumulate its construction time.
litellm/litellm_core_utils/litellm_logging.py:3186
↓ 3 callersFunction_build_streaming_logging_obj
Build logging object for streaming A2A requests.
litellm/a2a_protocol/main.py:616
↓ 3 callersMethod_build_system_prompt
(self, templates: list)
litellm/proxy/management_endpoints/policy_endpoints/ai_policy_suggester.py:122
↓ 3 callersMethod_build_thread_url
(self, api_base: str, api_version: str)
litellm/llms/azure_ai/agents/handler.py:133
↓ 3 callersFunction_build_tool_result_message
Turn executed tool results into the user message Anthropic expects.
litellm/llms/anthropic/messages/native/mcp_handler.py:49
↓ 3 callersMethod_builds_setup_lazily
(self)
litellm/litellm_core_utils/realtime_streaming.py:1135
↓ 3 callersMethod_built_in_sections_router
(**config_patch)
tests/unit/router_strategy/test_complexity_router.py:12046
↓ 3 callersFunction_built_in_tier_or_none
The built-in tier a `tiers` key names, or None when the key is an operator-defined name.
litellm/router_strategy/complexity_router/complexity_router.py:183
↓ 3 callersFunction_built_url
(cls: type, api_base: str)
tests/unit/llms/test_get_complete_url_trailing_slash.py:234
↓ 3 callersFunction_bulk_update_one_key
(monkeypatch, item_payload: Mapping[str, object])
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:7703
↓ 3 callersFunction_bundled_blob_id
()
tests/unit/litellm_core_utils/test_get_model_cost_map.py:42
↓ 3 callersFunction_bundled_stock
()
tests/integration/compatibility/test_codex_model_catalog.py:76
↓ 3 callersFunction_burst
( base_url: str, key: str, model: str | None, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool
tests/integration/providers/test_decisions_chaos.py:97
↓ 3 callersFunction_burst
(gateway: Gateway, calls: tuple[_Call, ...])
tests/integration/providers/test_validated_reply_boundaries_under_faults.py:313
↓ 3 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:800
↓ 3 callersFunction_burst
( gateway: Gateway, models: Mapping[Kind, str], calls: tuple[_Call, ...], *, tolerate_transport_errors: bo
tests/integration/providers/test_chat_completions_tool_search_chaos.py:138
↓ 3 callersFunction_burst
(base_url: str, key: str, model: str, calls: Sequence[_Call])
tests/integration/providers/test_anthropic_tool_search_result_chaos.py:109
↓ 3 callersFunction_burst
( base_url: str, key: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = False )
tests/integration/providers/test_bedrock_converse_lookaround_regex_chaos.py:220
↓ 3 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_bedrock_converse_stream_event_frames_wire.py:720
↓ 3 callersFunction_burst
( base_url: str, key: str, models: _Models, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool =
tests/integration/providers/test_responses_minted_reasoning_replay_chaos.py:152
← previousnext →22,501–22,600 of 202,479, ranked by callers