Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
202,479 in github.com/BerriAI/litellm
⨍
Functions
202,479
◇
Types & classes
26,341
↳
Endpoints
5,595
↓ 8 callers
Function
_identity_and_text
(route: str, body: Mapping[str, JsonValue])
tests/integration/routing/test_complexity_router_databricks_classifier.py:344
↓ 8 callers
Function
_identity_token
(resource: str)
tests/integration/providers/test_azure_entra_token_reuse_wire.py:156
↓ 8 callers
Function
_image_block
(endpoint: str, encoded: str, mime: str = "image/png")
tests/integration/observability/test_bedrock_guardrail_attachments.py:269
↓ 8 callers
Function
_in_filter
(field: str, values: Iterable[str])
litellm/proxy/management_helpers/bulk_user_deletion.py:153
↓ 8 callers
Function
_in_memory_managed_files
Build a real PROXY_LiteLLMManagedFiles whose prisma upsert hits an in-memory row.
tests/unit/enterprise/proxy/test_batch_update_db_managed_output_file_id.py:356
↓ 8 callers
Method
_increment_cache_metrics
Increment cache-related Prometheus metrics based on cache hit/miss status. Args: standard_logging_payload: Contains cach
litellm/integrations/prometheus.py:2045
↓ 8 callers
Function
_info
(client: _ByUrl)
tests/unit/proxy/ui_crud_endpoints/test_latest_release_endpoints.py:328
↓ 8 callers
Method
_init_prompts_in_db
(self, prisma_client: PrismaClient)
litellm/proxy/proxy_server.py:9594
↓ 8 callers
Method
_init_sso_settings_in_db
Initialize SSO settings from database into the router on startup.
litellm/proxy/proxy_server.py:9273
↓ 8 callers
Function
_initialize_from_config
(**litellm_params_kwargs: object)
tests/unit/proxy/guardrails/guardrail_hooks/test_crowdstrike_aidr.py:1592
↓ 8 callers
Function
_inject_websocket_stubs_into_openapi_schema
Add a synthetic GET stub for each WebSocket route so it appears in Swagger UI. Merges into any existing path entry rather than replacing it
litellm/proxy/proxy_server.py:2194
↓ 8 callers
Method
_install_router
(self, monkeypatch, router, body: dict)
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:7181
↓ 8 callers
Function
_introspect
(token, cache=None, reload_user=_reload_user_active, master_key=MASTER_KEY)
tests/unit/proxy/mcp_server/test_gateway_dcr_flow.py:2533
↓ 8 callers
Function
_introspection_fixtures
()
tests/unit/proxy/mcp_server/test_gateway_dcr_flow.py:2526
↓ 8 callers
Method
_invalidate_model_group_info_cache
(self)
litellm/router_rust/surface/registry.py:823
↓ 8 callers
Method
_invoke
(self, exc: Exception, callback_headers: Optional[dict] = None)
tests/unit/proxy/test_common_request_processing.py:5087
↓ 8 callers
Method
_is_engine_alive
(self)
litellm/proxy/utils.py:7155
↓ 8 callers
Function
_is_json_array
(value: object)
litellm/responses/streaming_iterator.py:125
↓ 8 callers
Function
_is_object_dict
(value: object)
litellm/proxy/guardrails/guardrail_hooks/repelloai/repelloai.py:58
↓ 8 callers
Function
_is_off_peak
Return True when current_time (UTC, defaulting to now) is off-peak under the block's rules: the flat hours_utc windows, which apply every day, or
litellm/litellm_core_utils/llm_cost_calc/utils.py:553
↓ 8 callers
Method
_is_proxy_only_llm_api_error
Return True if the error is a Proxy Only LLM API Error Prevents double logging of LLM API exceptions e.g should only return
litellm/proxy/utils.py:4213
↓ 8 callers
Function
_is_str_object_dict
(value: object)
litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py:95
↓ 8 callers
Function
_isolated_redis_cache
RedisCache whose sync client and pool are stubbed out.
tests/unit/caching/test_redis_cluster_cache.py:187
↓ 8 callers
Function
_items
The items of a list, tuple or set; nothing for any other value.
litellm/router_rust/steps/precall.py:197
↓ 8 callers
Function
_joined_sse_stream
(all_chunks: Sequence[object])
litellm/llms/anthropic/messages/stream_assembly.py:464
↓ 8 callers
Function
_json
(payload: Mapping[str, JsonValue])
tests/integration/providers/_api_base_trailing_slash_support.py:64
↓ 8 callers
Function
_json
(payload: Mapping[str, JsonValue])
tests/integration/providers/_api_base_url_join_support.py:20
↓ 8 callers
Function
_json_messages
(value: str)
tests/integration/observability/_openinference_support.py:83
↓ 8 callers
Function
_json_object_or_none
(message: object)
litellm/responses/streaming_iterator.py:2386
↓ 8 callers
Function
_json_tool_events
(fragments: tuple[str, ...])
tests/unit/llms/anthropic/chat/test_anthropic_chat_handler.py:3174
↓ 8 callers
Function
_jsonl
(model: str)
tests/integration/security/test_files_batches_access.py:73
↓ 8 callers
Function
_jsonl
()
tests/unit/test_router/core/test_endpoints_characterization_batch.py:52
↓ 8 callers
Function
_keepalive_from_deployment_config
( request_data: Mapping[str, Any], response: object )
litellm/proxy/proxy_server.py:10655
↓ 8 callers
Function
_kept
(verdicts: Verdicts)
tests/integration/observability/test_otel_team_sampling_across_pods.py:325
↓ 8 callers
Function
_key
(scenario: Scenario, **fields: JsonValue)
tests/integration/management/test_team_member_lifecycle.py:135
↓ 8 callers
Function
_key_holding
(*server_ids: str, role: LitellmUserRoles = LitellmUserRoles.INTERNAL_USER)
tests/unit/responses/mcp/test_litellm_proxy_mcp_handler.py:1814
↓ 8 callers
Function
_key_row
A key that is already due for a reset, shaped like a get_data() row.
tests/unit/proxy/common_utils/test_reset_budget_job.py:2249
↓ 8 callers
Function
_legacy_hook_stream_guardrail
( seen: Dict[str, Any], rewrite: Callable[[Any], Any] | None = None, raises: Exception | None = No
tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.py:2616
↓ 8 callers
Method
_lexical_tier_override
When keyword_tier_rules match literally, the most-severe matched tier wins. Escalating to the highest tier (rather than the first rule in the
litellm/router_strategy/complexity_router/complexity_router.py:4206
↓ 8 callers
Function
_limiter
( replies: dict[str, object] | None = None, fail_closed: bool = False )
tests/unit/caching/test_request_redis_batch_pre_call.py:78
↓ 8 callers
Function
_list_price
(name: str)
tests/integration/spend/test_passthrough_stream_pricing_paths_spend.py:179
↓ 8 callers
Function
_listed_files
(body: bytes)
tests/unit/llms/anthropic/files/test_anthropic_files_transformation.py:671
↓ 8 callers
Function
_lit6973_drive_realtime_session
Drive realtime_websocket_endpoint through one of its reservation-settling exits. phase_one_exit picks a rejection before the relay: "model_access
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:10874
↓ 8 callers
Method
_litellm_params_for_model
( self, tier: ComplexityTier | str | None, model: str, request_kwargs: Mapping[str, object] )
litellm/router_strategy/complexity_router/complexity_router.py:3103
↓ 8 callers
Function
_load_json_object
Parse a JSON payload that the caller consumes as an object.
litellm/responses/streaming_iterator.py:191
↓ 8 callers
Method
_local_block_ttl
(self, block_key: str)
litellm/proxy/auth/login_throttle.py:367
↓ 8 callers
Function
_local_count
(throttle, key: str)
tests/unit/proxy/auth/test_login_utils.py:755
↓ 8 callers
Method
_logging_kwargs
( self, call: Call, error: BaseException | None, response: object )
tests/unit/test_router/core/scripted_host.py:379
↓ 8 callers
Function
_logging_obj
(call_id: str = "call-dg")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_deepgram_listen_passthrough_logging_handler.py:57
↓ 8 callers
Function
_make_completed_response
(response_id: str = "resp_test")
tests/unit/responses/test_streaming_iterator.py:1508
↓ 8 callers
Function
_make_enum_values
( *, mcp_tool_name: str = "get_weather", mcp_server_name: str = "weather-server", )
tests/unit/integrations/test_prometheus_mcp_tool_metrics.py:41
↓ 8 callers
Method
_make_existing_key
(self, allowed_routes)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:12713
↓ 8 callers
Method
_make_existing_key
(self, user_id="creator-123", created_by="creator-123")
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:12838
↓ 8 callers
Function
_make_generic_chunk
( text: str, is_finished: bool = False, finish_reason: str = "", usage: Optional[dict] = None,
tests/unit/litellm_core_utils/test_streaming_overhead.py:46
↓ 8 callers
Function
_make_jwt_handler
(team_id_jwt_field: str)
tests/unit/proxy/auth/test_handle_jwt.py:3110
↓ 8 callers
Function
_make_logging_obj
()
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_transcribe_passthrough_logging_handler.py:65
↓ 8 callers
Method
_make_logging_obj
Create a mock logging object.
tests/unit/llms/github_copilot/test_github_copilot_transformation.py:469
↓ 8 callers
Function
_make_marker_session_iterator
Mock session behaving like a real Presidio pair. /analyze returns a CREDIT_CARD detection for every ``4111-NNNN`` marker in the posted text (
tests/unit/proxy/guardrails/guardrail_hooks/test_presidio.py:3966
↓ 8 callers
Function
_make_mock_logger
()
tests/unit/integrations/test_prometheus_mcp_tool_metrics.py:31
↓ 8 callers
Function
_make_mock_logger
Mock instance with the five detail counters + get_labels_for_metric.
tests/unit/integrations/test_prometheus_token_detail_metrics.py:47
↓ 8 callers
Function
_make_models
(n: int)
tests/unit/litellm_core_utils/test_get_model_cost_map.py:52
↓ 8 callers
Function
_make_object_store_instance
A real store_unified_object_id over an AsyncMock prisma client, so both the upsert and the update-only write path can be asserted.
tests/unit/enterprise/proxy/test_managed_files_hook.py:1435
↓ 8 callers
Function
_make_onboarding_token
( *, invitation_link: str = "invite-abc", user_id: str = "user-123", token_type: str = "litell
tests/unit/proxy/auth/test_onboarding.py:74
↓ 8 callers
Function
_make_openai_response_with_tool_call
(tool_name: str, arguments: dict, tool_id: str = "call_abc123")
tests/unit/proxy/guardrails/guardrail_hooks/test_headroom.py:128
↓ 8 callers
Function
_make_prisma
( find_unique_row: LiteLLM_VerificationToken | None = None, find_many_rows: list[LiteLLM_VerificationT
tests/unit/proxy/management_endpoints/test_session_endpoints.py:26
↓ 8 callers
Function
_make_request
(client_host, xff)
tests/unit/proxy/auth/test_mcp_ip_filtering.py:194
↓ 8 callers
Method
_make_request
(self)
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:9551
↓ 8 callers
Function
_make_response
(operation: str)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_transcribe_passthrough_logging_handler.py:43
↓ 8 callers
Function
_make_router
( available=("gpt-4o-mini", "gpt-4o"), prefs=None, costs=None, )
tests/unit/router_strategy/adaptive_router/test_e2e_adaptive_router.py:30
↓ 8 callers
Function
_make_scheme_request
( scheme: str, client_host: str = "203.0.113.5", headers: dict[str, str] | None = None )
tests/unit/proxy/auth/test_mcp_ip_filtering.py:610
↓ 8 callers
Method
_make_test_provider
(self)
tests/unit/llms/openai_like/responses/test_openai_like_responses.py:74
↓ 8 callers
Method
_make_text_delta
(self, text: str, item_id: str = "item_1")
tests/unit/interactions/test_gemini_interactions_transformation.py:218
↓ 8 callers
Function
_make_text_response
(text: str, model: str = "openai/gpt-4o-mini")
tests/unit/llms/anthropic/messages/test_advisor_orchestration.py:33
↓ 8 callers
Method
_make_transport
(self, aexit_side_effect)
tests/unit/mcp_client/test_mcp_client.py:785
↓ 8 callers
Function
_make_user_api_key_auth
Build a minimal UserAPIKeyAuth-like object for tests.
tests/unit/proxy/mcp_server/test_mcp_sampling_model_access.py:23
↓ 8 callers
Function
_malformed_inputs
()
tests/unit/proxy/guardrails/guardrail_hooks/test_crowdstrike_aidr.py:1385
↓ 8 callers
Function
_managed_file_table
(prisma_client: _ManagedResourcePrismaClient)
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:526
↓ 8 callers
Function
_managed_object_table
(prisma_client: "PrismaClient")
enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py:87
↓ 8 callers
Function
_marked_turns
(count: int)
tests/unit/responses/litellm_completion_transformation/test_litellm_completion_responses.py:6485
↓ 8 callers
Function
_marker
()
tests/integration/providers/test_audit_any_sweep_vector_store.py:25
↓ 8 callers
Function
_marker
()
tests/integration/authorization/test_audit_any_sweep_auth.py:18
↓ 8 callers
Function
_marker
(compression: dict[str, str], tags: list[str] | None = None)
tests/unit/proxy/guardrails/test_auto_router_compression.py:79
↓ 8 callers
Function
_matrix
Build a minimal matrix dict from a {(feature_id, provider): status} or {(feature_id, provider): cell_dict} mapping.
tests/e2e_harness/claude_code/test_matrix_builder.py:17
↓ 8 callers
Function
_mcp_server_table_actions
( prisma_client: PrismaClient, )
litellm/proxy/mcp_server/db.py:575
↓ 8 callers
Function
_media_probe
(*durations: float | None | Exception)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_transcribe_passthrough_logging_handler.py:92
↓ 8 callers
Function
_media_team_db
(public_name: str, project_metadata: Mapping[str, object])
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:8246
↓ 8 callers
Function
_member_update
(gateway: Gateway, body: dict[str, JsonValue])
tests/integration/spend/test_team_member_spend.py:221
↓ 8 callers
Function
_merge_guardrails_with_existing
Merge model-level guardrails with any existing guardrails in the request data. Args: data: The request data dict model_level
litellm/proxy/utils.py:9704
↓ 8 callers
Method
_messages
()
tests/unit/test_router/test_router.py:10326
↓ 8 callers
Function
_messages_body
(model: str, marker: str, **extra: JsonValue)
tests/integration/providers/test_bedrock_native_structured_output_wire.py:459
↓ 8 callers
Function
_metadata
(response: httpx.Response, digest: str)
tests/integration/spend/test_daily_activity_key_metadata_query_timeout.py:342
↓ 8 callers
Function
_mock_logging
()
tests/unit/llms/snowflake/test_snowflake_native_endpoints.py:34
↓ 8 callers
Function
_mock_mcp_logging_obj
()
tests/unit/proxy/mcp_server/test_mcp_server_tool_calls_and_headers.py:9739
↓ 8 callers
Function
_model_list
()
tests/unit/router_strategy/test_lar1_routing.py:15
↓ 8 callers
Function
_model_rows
(call_id: str, settled: Callable[[list[dict[str, JsonValue]]], bool])
tests/integration/mcp/test_mcp_llm_endpoints.py:1386
↓ 8 callers
Function
_muse_session
( guardrail_proxy: OwnedProxy, scenario: Scenario, tls_upstream: str, transcript: str, que
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:1407
↓ 8 callers
Function
_native_client_app
The unauthenticated discoverable router served over TestClient with a signed UI session cookie available, plus fakes for the two database-backed h
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:12080
↓ 8 callers
Method
_neutralize_orphaned_tool_blocks
( messages: list[AllMessageValues], optional_params: dict )
litellm/llms/bedrock/chat/converse_transformation.py:329
↓ 8 callers
Function
_noma_guardrail
(monkeypatch: pytest.MonkeyPatch)
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:2675
↓ 8 callers
Function
_non_empty_str
(value: object)
litellm/proxy/proxy_server.py:15705
← previous
next →
8,701–8,800 of 202,479, ranked by callers