MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunction_empty_row
(kind: str)
tests/integration/providers/test_anthropic_empty_user_turn_wire.py:46
↓ 4 callersMethod_enable_wif
(self, monkeypatch)
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:6699
↓ 4 callersFunction_encrypted_credential_row
(credential_name: str, api_key: str)
tests/unit/proxy/proxy_server/test_proxy_config.py:4508
↓ 4 callersMethod_end_of_unanswered_hop
( self, reason: Exception | str = "the continuation stream ended without a readable frame" )
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:4441
↓ 4 callersMethod_end_span_or_trace
End an MLflow span or a trace.
litellm/integrations/mlflow.py:302
↓ 4 callersFunction_end_user_cache_doubles
Swaps in the auth cache and the cross-worker publisher a customer mutation is expected to hit.
tests/unit/proxy/management_endpoints/test_customer_endpoints.py:1186
↓ 4 callersFunction_end_user_cache_keys
The per-id entries plus the registry, which any restriction change can move ids in or out of.
litellm/proxy/management_endpoints/customer_endpoints.py:138
↓ 4 callersFunction_end_user_registry_row
A row as the restricted-id registry query sees it: only ``user_id`` is read off it.
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:8338
↓ 4 callersMethod_ended_custom_tool_call_stream_events
()
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:2644
↓ 4 callersMethod_ended_function_call_stream_events
()
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:2511
↓ 4 callersFunction_ended_span
()
tests/unit/integrations/test_opentelemetry.py:2414
↓ 4 callersFunction_endpoint_matches_api_base
Match a registered openai-compatible endpoint against a caller-supplied ``api_base`` using parsed-URL semantics, not unanchored substring sea
litellm/litellm_core_utils/get_llm_provider_logic.py:29
↓ 4 callersFunction_enforce_guardrail_added_tag_budgets
( data: Mapping[str, object], tags_before_guardrails: frozenset[str], route: str, llm_router:
litellm/proxy/common_request_processing.py:1042
↓ 4 callersMethod_enforce_with_gate_error
Drive _enforce_admitted_live_policy with the centralized gate raising ``error`` and return the HTTPException the arm maps it to.
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:7252
↓ 4 callersMethod_enforces_block
(self, action: ContentFilterAction)
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py:1343
↓ 4 callersFunction_engine_with_event_recorder
()
tests/unit/integrations/otel/test_otel_v2_components.py:1319
↓ 4 callersFunction_engineering_group
(group_id: str)
tests/unit/proxy/management_endpoints/scim/test_scim_v2_endpoints.py:6368
↓ 4 callersMethod_enqueue_autorouter_turn_transaction
( self, payload: SpendLogsPayload, prisma_client: "PrismaClient | None", spend
litellm/proxy/db/db_spend_update_writer.py:1059
↓ 4 callersMethod_enqueue_for_client
Deliver one item to the client, applying backpressure. Returns True if the item was queued, False if the client disconnected before t
litellm/llms/anthropic/messages/native/streaming_iterator.py:693
↓ 4 callersMethod_enqueue_log_event
(self, kwargs: _LogEventKwargs, event_type: str)
litellm/integrations/rubrik.py:808
↓ 4 callersFunction_enqueued_batch_patches
()
tests/unit/proxy/hooks/test_batch_file_validation.py:2129
↓ 4 callersFunction_enqueued_rate_limiter
()
tests/unit/proxy/hooks/test_batch_file_validation.py:2104
↓ 4 callersFunction_ensure_litellm_metadata
Populate data['litellm_metadata'] from user_api_key_dict if absent.
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:235
↓ 4 callersFunction_ensure_parent_otel_span_on_request_state
Idempotently create the OTEL SERVER span and stash it on ``request.state.parent_otel_span``. Safe to call multiple times. Called both at the
litellm/proxy/auth/user_api_key_auth.py:2091
↓ 4 callersFunction_ensure_sync_context
(name: str)
litellm/harness/sync.py:72
↓ 4 callersFunction_entry
(model_id: str = "dep")
tests/unit/redis/stores/test_router_cooldowns.py:75
↓ 4 callersFunction_entry_bytes
UTF-8 byte size of one recovery-store entry (surrogatepass, like _content_hash).
litellm/proxy/guardrails/guardrail_hooks/compresr/compresr.py:270
↓ 4 callersFunction_entrypoint_argv
(dockerfile: Path)
tests/unit/test_component_entrypoint.py:133
↓ 4 callersFunction_enum_value
(value: StatusClass | BlockType | UIAction | TelemetryGroup)
litellm/telemetry/report.py:159
↓ 4 callersMethod_env_only_wif
(monkeypatch)
tests/unit/llms/anthropic/test_anthropic_common_utils.py:3634
↓ 4 callersFunction_env_str
(name: str)
litellm/llms/anthropic/wif.py:538
↓ 4 callersFunction_error
(status: int, message: str, code: str | None = None)
tests/unit/test_router_retry_non_retryable_errors.py:31
↓ 4 callersFunction_error_detail
(response: requests.Response)
litellm/proxy/client/cli/commands/pkce_login.py:430
↓ 4 callersFunction_error_line
(custom_id: str)
tests/integration/observability/test_batch_line_items_cold_storage.py:334
↓ 4 callersFunction_error_message
(response: httpx.Response)
tests/integration/providers/test_bedrock_mantle_claude_chat_wire.py:292
↓ 4 callersFunction_error_object
(response: httpx.Response)
tests/integration/providers/test_bedrock_mantle_context_overflow_wire.py:225
↓ 4 callersFunction_error_status_transport
(status_code: int)
tests/unit/proxy/guardrails/guardrail_hooks/test_crowdstrike_aidr.py:1392
↓ 4 callersFunction_estimate_with_cache_and_reasoning
(mock_router: MagicMock | None, model: str = AN_ALIAS, **overrides: int)
tests/unit/proxy/management_endpoints/test_cost_tracking_settings.py:997
↓ 4 callersFunction_estimated_prompt_usage
The input-only Usage estimate for the prompt this request sent, or None when the call type has no estimable input. The raw request body backfills
litellm/proxy/utils.py:1329
↓ 4 callersFunction_eu_region_router
()
tests/unit/router_strategy/test_router_tag_routing.py:2851
↓ 4 callersFunction_event
(**fields: JsonValue)
tests/integration/_support/anthropic_thinking.py:49
↓ 4 callersFunction_event
( call_type: str, response_cost: float, team_member_model_max_budget: Mapping[str, object] | None
tests/unit/proxy/hooks/test_model_max_budget_limiter.py:58
↓ 4 callersFunction_event_body
(event: BedrockEvent)
tests/integration/_support/bedrock_realtime_peer.py:202
↓ 4 callersFunction_event_id
()
tests/integration/_support/upstream.py:719
↓ 4 callersFunction_event_text
(events: list[BaseLiteLLMOpenAIResponseObject], event_type: ResponsesAPIStreamEvents)
tests/unit/responses/litellm_completion_transformation/test_streaming_iterator_transformation.py:1361
↓ 4 callersFunction_events
(sse: bytes)
tests/unit/llms/anthropic/messages/adapters/test_handler_safeguard_results.py:146
↓ 4 callersFunction_events
(*items: tuple[str, int, str | None])
tests/rust-python-harness/strategies/trace_parity/test_reporting.py:44
↓ 4 callersFunction_events_until
( socket: ClientConnection, predicate: EventPredicate, *, timeout: float = 60 )
tests/integration/providers/test_bedrock_nova_sonic_realtime_tool_calls.py:239
↓ 4 callersFunction_eventually
(condition: Callable[[], bool])
tests/unit/enterprise/proxy/test_managed_files_hook.py:2312
↓ 4 callersMethod_evict_default_budget_cache
( budget_id: str, user_api_key_cache: UserApiKeyCache | None, )
litellm/proxy/management_endpoints/team_endpoints.py:700
↓ 4 callersFunction_evict_end_user_cache_keys
Every endpoint that mutates an end-user row must call this, or a newly blocked or budgeted customer keeps being served unrestricted until the
litellm/proxy/management_endpoints/customer_endpoints.py:124
↓ 4 callersFunction_exchange
(rig: _GuardedRig, marker: str)
tests/integration/providers/test_responses_bridge_item_marks_guardrail_wire.py:157
↓ 4 callersMethod_exchange_token
(self, token_endpoint: str, data: dict[str, str])
litellm/llms/xai/oauth.py:345
↓ 4 callersFunction_exclude_deployments
( deployments: _DeploymentPool, excluded_set: frozenset[str], )
litellm/router_strategy/tag_based_routing.py:234
↓ 4 callersMethod_execute_guardrail_with_load_balancing
Execute a guardrail using the router's load balancing. Args: guardrail_name: Name of the guardrail hook_type
litellm/proxy/utils.py:2676
↓ 4 callersMethod_execute_responses_agentic_plan
( self, plan: AgenticLoopPlan, model: str, response_api_optional_request_param
litellm/llms/custom_httpx/llm_http_handler.py:6210
↓ 4 callersFunction_existing
(entity_type: str, entity_id: str, window_duration: str)
tests/unit/proxy/db/test_budget_window_spend_writer.py:149
↓ 4 callersFunction_existing_team_with_model_caps
(caps)
tests/unit/proxy/management_endpoints/test_team_endpoints.py:18031
↓ 4 callersFunction_exit_circuit_breaker
Record success only when nothing failed while the call ran. Several Redis methods catch their own connection errors and return a default, so a
litellm/caching/redis_cache.py:472
↓ 4 callersFunction_expanded_wildcard_rows
(client: TestClient)
tests/unit/proxy/proxy_server/test_routes_model_info.py:969
↓ 4 callersFunction_expected_cost
( rates: CoralBricksRates, uncached_input_tokens: int, cached_read_tokens: int, cache_write_to
tests/unit/llms/openai_like/test_coralbricks_provider.py:215
↓ 4 callersFunction_expected_file_object
(file_id: str, byte_count: int, filename: str = INPUT_FILENAME)
tests/integration/providers/test_files_batches_wire.py:112
↓ 4 callersMethod_extract_api_provider_from_request_data
Best-effort provider for the client-side failure path. A request can fail before a deployment is resolved, so the provider is
litellm/integrations/prometheus.py:2969
↓ 4 callersMethod_extract_base64_from_data_url
Extract pure base64 string from a data URL. Input: 'data:image/png;base64,iVBORw0KGgoAAAANS...' Output: 'iVBORw0KGgoAAAANS..
litellm/responses/litellm_completion_transformation/transformation.py:3732
↓ 4 callersMethod_extract_content_from_messages
Extract assistant content and annotations from the messages response. Returns (content, annotations) where annotations is a list of O
litellm/llms/azure_ai/agents/handler.py:161
↓ 4 callersMethod_extract_content_from_response
Extract the assistant text from a LangFlow run response. Expected structure: {"outputs": [{"outputs": [{"results": {"message
litellm/llms/langflow/chat/transformation.py:187
↓ 4 callersFunction_extract_encoded_item_id
Return the first ``encitem_``-prefixed item ID from the response output.
tests/unit/router_utils/pre_call_checks/test_encrypted_content_affinity_check.py:83
↓ 4 callersFunction_extract_from_regex
(duration: str)
litellm/litellm_core_utils/duration_parser.py:29
↓ 4 callersFunction_extract_group_member_ids
Extract member IDs from SCIMGroup, validating that all users exist. Behavior depends on litellm_settings.scim_upsert_user: - If True (de
litellm/proxy/management_endpoints/scim/scim_v2.py:1123
↓ 4 callersFunction_extract_ids_from_path_filter
Return ids from a SCIM filtered path like ``members[value eq "id"]``. Okta commonly sends membership removals as a filtered path and omits the
litellm/proxy/management_endpoints/scim/scim_v2.py:2184
↓ 4 callersMethod_extract_inspect_messages_from_request
Build {role, content} messages for the Cisco AI Defense chat API.
litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py:1891
↓ 4 callersMethod_extract_langfuse_metadata
Extracts Langfuse metadata from the standard LiteLLM kwargs structure. 1. Reads kwargs["litellm_params"]["metadata"] if present and
litellm/integrations/langfuse/langfuse_otel.py:179
↓ 4 callersMethod_extract_last_text_by_role
(messages: list[dict], role: str)
litellm/proxy/guardrails/guardrail_hooks/xecguard/xecguard.py:464
↓ 4 callersMethod_extract_logging_entries
(data: dict)
tests/unit/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:2946
↓ 4 callersFunction_extract_mcp_headers_from_request
Extract MCP auth headers from HTTP request. Returns: Tuple of (mcp_auth_header, mcp_server_auth_headers, raw_headers, oa
litellm/proxy/mcp_server/rest_endpoints.py:591
↓ 4 callersFunction_extract_model_from_vertex_ai_setup
Extract the model name from Vertex AI Live setup response. The setup response can contain a model field in two formats: 1. Direct: {"mod
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3700
↓ 4 callersFunction_extract_model_id
(headers: Sequence[tuple[bytes, bytes]])
litellm/proxy/middleware/billable_request_metrics_middleware.py:186
↓ 4 callersFunction_extract_region_from_bedrock_arn
ARN shape: ``arn:aws:bedrock:<region>:<account>:<type>/<id>``
litellm/llms/bedrock/batches/handler.py:50
↓ 4 callersMethod_extract_request_data
Extract original request data from model_call_details for the response moderation service envelope. Includes the agent's declared ``t
litellm/integrations/rubrik.py:647
↓ 4 callersMethod_extract_response_content
Extract the final response content from parsed events.
litellm/llms/bedrock/chat/invoke_agent/transformation.py:289
↓ 4 callersFunction_extract_response_obj_and_hidden_params
Extract response_obj and hidden_params from init_response_obj.
litellm/litellm_core_utils/litellm_logging.py:7733
↓ 4 callersMethod_extract_response_text
(response: object)
litellm/proxy/guardrails/guardrail_hooks/repelloai/repelloai.py:498
↓ 4 callersMethod_extract_s3_uri_from_file_id
(self, file_id: str)
litellm/llms/bedrock/files/handler.py:42
↓ 4 callersMethod_extract_scopes
(self, scopes_value: str | Sequence[object] | None)
litellm/proxy/mcp_server/mcp_server_manager.py:5630
↓ 4 callersMethod_extract_usage
Extract usage statistics, preferring StandardLoggingPayload.
litellm/integrations/newrelic/newrelic.py:372
↓ 4 callersMethod_extract_user_message_and_system_prompt
Deprecated: use _extract_current_ask_and_system_prompt instead. Kept for backward compatibility. Returns the last real user ask (ski
litellm/router_strategy/complexity_router/complexity_router.py:4381
↓ 4 callersFunction_extras_with_scratch_migration
A copy of the shipped package dir with one more migration folder, the shape `LITELLM_MIGRATION_DIR` points at.
tests/integration/database/migrations/test_request_log_indexes.py:1147
↓ 4 callersFunction_facet
(name: str, query: str = "")
tests/unit/proxy/public_endpoints/public_v1/test_model_hub.py:385
↓ 4 callersMethod_fail_count
(self, router)
tests/unit/test_router/test_router.py:7013
↓ 4 callersFunction_fail_open_router
(opted_in_group: str | None = "chat", route: str = "model")
tests/unit/router_strategy/test_router_tag_routing.py:1806
↓ 4 callersMethod_fail_unless_reached
(self, result: ExternalWrite, action: str)
tests/e2e/secret_manager/secret_store_cyberark.py:56
↓ 4 callersMethod_failed
( self, step: Mapping[str, object], deployment: Mapping[str, object], call: "A
litellm/router_rust/core.py:5014
↓ 4 callersFunction_failed_frames
(identity: str, error: JsonValue, model: str = _BACKEND)
tests/integration/providers/test_bedrock_mantle_context_overflow_fallbacks_wire.py:71
↓ 4 callersFunction_failing_wrapper
( logging_obj: LiteLLMLoggingObj | None, raised: Callable[[], Exception] = _bedrock_drop, )
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_mid_stream_error.py:318
↓ 4 callersMethod_failure_error
The error a call or pick that failed before any attempt raises; ``pass_through`` names the selection kind (``pass_through``/``async_pass_throu
litellm/router_rust/core.py:3758
↓ 4 callersFunction_failure_logged
(served: _Served)
tests/integration/providers/test_device_code_login_guard_wire.py:374
↓ 4 callersFunction_failure_rows_written
(client: FakePrismaClient)
tests/unit/proxy/db/test_gateway_request_tracking.py:176
↓ 4 callersFunction_fake_access_group
( access_group_id: str, access_model_names=None, assigned_team_ids=None, assigned_key_ids=None
tests/unit/proxy/auth/test_auth_checks.py:1672
↓ 4 callersFunction_fake_engine
(*, transformed: pl.DataFrame, payload: bytes)
tests/unit/integrations/ternary/test_ternary_logger.py:344
↓ 4 callersFunction_fake_mcp_access_group
( access_group_id, access_mcp_server_ids=None, assigned_team_ids=None, assigned_key_ids=None,
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:5747
← previousnext →17,801–17,900 of 202,479, ranked by callers