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
↓ 7 callers
Function
import_mcp_servers
Bulk-import MCP connectors. Accepts the Claude Desktop / Claude Code ``mcpServers`` mapping or the Anthropic Messages API ``mcp_serve
litellm/proxy/management_endpoints/mcp_management_endpoints.py:2123
↓ 7 callers
Method
init_pubsub_client
(self)
tests/unit/proxy/auth/test_auth_checks.py:2304
↓ 7 callers
Function
initial_cell
Cold-start prior for a (model, request_type) cell. mean = base_tier_weight[tier] + (STRENGTH_BONUS if request_type in strengths else 0)
litellm/router_strategy/adaptive_router/bandit.py:45
↓ 7 callers
Function
initialize_callbacks_on_proxy
( value: Any, premium_user: bool, config_file_path: str, litellm_settings: dict, callback_
litellm/proxy/common_utils/callback_utils.py:137
↓ 7 callers
Function
initialize_guardrail
( litellm_params: "LitellmParams", guardrail: "Guardrail", )
litellm/proxy/guardrails/guardrail_hooks/llm_as_a_judge/__init__.py:352
↓ 7 callers
Function
initialize_guardrail
(litellm_params: "LitellmParams", guardrail: "Guardrail")
litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/__init__.py:23
↓ 7 callers
Function
initialize_guardrail
( litellm_params: "LitellmParams", guardrail: "Guardrail", *, async_handler: "AsyncHTTPHandler
litellm/proxy/guardrails/guardrail_hooks/agent_365/__init__.py:13
↓ 7 callers
Function
input_images
(decision_input: DecisionsIRState | DecisionsIRMessages)
litellm/llms/base_llm/decisions/transformation.py:130
↓ 7 callers
Function
insert_sso_user
Helper function to create a New User in LiteLLM DB after a successful SSO login Args: result_openid (OpenID): User information in Op
litellm/proxy/management_endpoints/ui_sso.py:2867
↓ 7 callers
Method
insert_with_deliveries
(self, rows, *, write_spend_logs: bool = True)
tests/integration/database/test_spendlogs_ledger_parity.py:1368
↓ 7 callers
Function
install_orjson_stub_if_missing
The /v1/messages stream wrapper imports proxy modules that import ``orjson`` and ``soundfile`` at load time. Where either is not installed (s
tests/unit/test_router/core/streaming_helpers.py:35
↓ 7 callers
Function
installed_langfuse_version
Only ``importlib.metadata`` reads correctly on every major. ``langfuse.version`` was removed in v4, ``langfuse.__version__`` does not exist i
litellm/integrations/langfuse/langfuse.py:240
↓ 7 callers
Function
interactive_configure
Configure selected agents, retaining injectable pickers for embedders.
litellm/proxy/client/cli/commands/configure_setup.py:422
↓ 7 callers
Function
interpret_kwargs
(fields: serde_json::Value)
litellm-rust/crates/redis-resolve/tests/interpret.rs:45
↓ 7 callers
Method
into_mcp
(self)
litellm-rust/crates/gateway-mcp/src/error.rs:200
↓ 7 callers
Function
invalid
(setting: &str, expected: Expected)
litellm-rust/crates/redis-resolve/src/options.rs:181
↓ 7 callers
Function
invalid_request
(err: serde_json::Error)
litellm-rust/crates/inference-messages/src/types.rs:40
↓ 7 callers
Method
invalidate_server_definition_caches
(self, server_id: str)
litellm/proxy/mcp_server/mcp_server_manager.py:4676
↓ 7 callers
Function
invalidate_spend_counter
(counter_key: str)
litellm/proxy/proxy_server.py:4437
↓ 7 callers
Function
invalidate_user_provider_credential_cache
Write the not-connected tombstone rather than deleting: a read in flight before the disconnect must not fill the token back in behind it (fills ar
litellm/proxy/credential_endpoints/user_provider_credentials.py:205
↓ 7 callers
Function
isFilledPtuValue
(value: unknown)
ui/litellm-dashboard/src/utils/ptuValidation.ts:23
↓ 7 callers
Function
isFunc
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callers
Function
isObject
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callers
Function
isOrdered
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callers
Method
isSelectable
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 7 callers
Function
is_advisor_orchestration_failure
Whether ``exception`` was tagged by ``mark_advisor_orchestration_failure``.
litellm/router_utils/cooldown_handlers.py:75
↓ 7 callers
Function
is_anthropic_invalid_thinking_block_error
Detect Anthropic 400 errors caused by invalid thinking blocks in replayed history: a missing or invalid signature, or a block with empty thin
litellm/llms/anthropic/common_utils.py:1921
↓ 7 callers
Method
is_enabled
Check if guardrails are enabled for a passthrough endpoint. Passthrough endpoints are opt-in only - guardrails only run when
litellm/proxy/pass_through_endpoints/passthrough_guardrails.py:73
↓ 7 callers
Method
is_end_user_within_model_budget
( self, end_user_id: str, end_user_model_max_budget: Mapping[str, object], mod
litellm/proxy/auth/user_api_key_auth.py:454
↓ 7 callers
Function
is_env_credential_login_enabled
Whether a login with UI_USERNAME/UI_PASSWORD (or the master-key fallback) can succeed. Two settings can turn it off: `disable_env_credential_logi
litellm/proxy/auth/login_utils.py:185
↓ 7 callers
Method
is_error_str_context_window_exceeded
Check if an error string indicates a context window exceeded error.
litellm/litellm_core_utils/exception_mapping_utils.py:89
↓ 7 callers
Function
is_expected_client_error
True when the proxy itself rejected the request with an HTTP 4xx before any provider call (bad key, budget, unknown model, guardrail). A 4xx
litellm/litellm_core_utils/core_helpers.py:308
↓ 7 callers
Function
is_explicitly_disabled_factory
Return True only when the model map explicitly sets *key* to ``False``. This is the opt-out mirror of :func:`_supports_factory`. Where ``_su
litellm/utils.py:3534
↓ 7 callers
Function
is_gateway_dcr_client_id
Cheap prefix routing test so the root endpoints only enter the aggregate arm for clients this flow registered; every other client_id keeps today's
litellm/proxy/mcp_server/gateway_dcr_flow.py:433
↓ 7 callers
Method
is_info_route
Check if route is an info route
litellm/proxy/auth/route_checks.py:568
↓ 7 callers
Method
is_initialized
Check if the registry has been initialized with policies. Returns: True if policies have been loaded, False otherwise
litellm/proxy/policy_engine/policy_registry.py:320
↓ 7 callers
Function
is_known_model
Returns True if the model is in the llm_router model names
litellm/proxy/utils.py:9868
↓ 7 callers
Function
is_managed_cloud_storage_uri
True if file_id is a raw cloud-storage object URI (e.g. ``s3://bucket/key``), up to ``MAX_FILE_ID_DECODE_PASSES`` layers of percent-encoding
litellm/litellm_core_utils/cloud_storage_security.py:33
↓ 7 callers
Function
is_master_key
Raw-only constant-time master-key comparison. The hashed form is never considered equivalent — only the raw master-key string matches.
litellm/proxy/spend_tracking/spend_tracking_utils.py:138
↓ 7 callers
Method
is_premium
1. verify_license_without_api_request: checks if license was generate using private / public key pair 2. _verify: checks if license i
litellm/proxy/auth/litellm_license.py:100
↓ 7 callers
Function
is_provider_error_chunk
(chunk: object)
litellm/llms/anthropic/messages/native/streaming_iterator.py:153
↓ 7 callers
Function
is_response_without_output
(result: object)
litellm/caching/caching_handler.py:212
↓ 7 callers
Method
is_type
(&self, block_type: ContentBlockType)
litellm-rust/crates/llms-types/src/formats/messages/request.rs:108
↓ 7 callers
Function
is_ui_session_credential
Whether the caller is the dashboard's SSO-minted session token acting as its user, the only credential shape allowed to widen a request to the own
litellm/proxy/mcp_server/ui_session_utils.py:38
↓ 7 callers
Function
is_valid_json
Checks whether the value passed is a valid serialized JSON string
litellm/llms/gigachat/chat/transformation.py:53
↓ 7 callers
Function
items
(reply: Value)
litellm-rust/crates/redis-store/src/rate_limits/scripts.rs:181
↓ 7 callers
Function
ix
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 7 callers
Function
j
(e,s)
litellm/proxy/_experimental/out/_next/static/chunks/2k-fkubkt19cc.js:19
↓ 7 callers
Function
j
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0cz1d0mv5g_q7.js:1
↓ 7 callers
Function
jg
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callers
Method
json
(self)
litellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py:63
↓ 7 callers
Method
json_body
(self)
tests/unit/llms/base_llm/auth/test_token_exchange.py:75
↓ 7 callers
Function
json_object
(body: bytes)
tests/e2e_harness/test_provider_edge.py:80
↓ 7 callers
Function
json_reply
(body: Mapping[str, JsonValue], status: int = 200)
tests/integration/providers/_dashscope_video_support.py:42
↓ 7 callers
Method
jsonify_team_object
(self, db_data: Mapping[str, object])
litellm/proxy/utils.py:6540
↓ 7 callers
Function
k
({...e})
litellm/proxy/_experimental/out/_next/static/chunks/0csaxmztgrx3b.js:434
↓ 7 callers
Function
k
({visible:e,patternName:t,patternRegex:r,patternAction:s,onNameChange:l,onRegexChange:i,onActionChange:n,onAdd
litellm/proxy/_experimental/out/_next/static/chunks/11et800l-khs-.js:1
↓ 7 callers
Function
keep
(endpoint: Mapping[str, object])
litellm/proxy/health_check.py:569
↓ 7 callers
Function
key_aliases
Lists key aliases with pagination and optional search. Non-admin users only see aliases for keys they own or keys belonging to their tea
litellm/proxy/management_endpoints/key_management_endpoints.py:7464
↓ 7 callers
Method
key_from_principal
Hand back the resolved key object carried on the Principal. Stopgap for the request flow that still consumes ``UserAPIKeyAuth`` for b
litellm/proxy/auth/resolvers/store.py:96
↓ 7 callers
Function
keyed
(key: &str)
litellm-rust/crates/cache-response/tests/support/mod.rs:20
↓ 7 callers
Function
keyed_caller
(scenario: Scenario)
tests/integration/observability/test_stream_error_alert_api_base.py:153
↓ 7 callers
Method
keywords
Name positionals by the sync signature, since the async entry may order its parameters differently.
litellm/rust_bridge/public_call.py:96
↓ 7 callers
Function
kill_stray_process
(pid: int)
tests/integration/_support/process.py:412
↓ 7 callers
Method
kind
(&self)
litellm-rust/crates/python-bridge/src/router/host.rs:258
↓ 7 callers
Function
lQ
litellm/proxy/_experimental/out/_next/static/chunks/3yrgf44a9g52e.js:1
↓ 7 callers
Function
labelWithHint
(label: React.ReactNode, hint: string)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsx:74
↓ 7 callers
Method
langfuse
(self, name: str, host: str | None = None)
tests/integration/observability/test_otel_team_capture_message_content.py:200
↓ 7 callers
Method
last
The last deployment added.
litellm-rust/crates/router-core/src/registry.rs:671
↓ 7 callers
Method
leftover_error
Non-None when the test consumed fewer interactions than were recorded, meaning a passing replay proved less than the bundle claims.
tests/e2e/provider_edge.py:511
↓ 7 callers
Function
list_field
(data: object, key: str)
litellm/llms/base_llm/guardrail_translation/utils.py:335
↓ 7 callers
Method
list_tools
(self, key: str, server_id: str | None = None)
tests/e2e/mcp/mcp_client.py:306
↓ 7 callers
Function
listed_store
(gateway: Gateway, vector_store_id: str, *, key: str | None = None)
tests/integration/management/test_vector_store_config_ownership.py:32
↓ 7 callers
Function
litellm_logging_obj_from_kwargs
The logging object the bridged call logs through, when the caller supplied one.
litellm/llms/anthropic/messages/utils.py:170
↓ 7 callers
Method
load
Load providers from JSON configuration file
litellm/llms/openai_like/json_loader.py:50
↓ 7 callers
Function
load_active_user_by_id
Load a live litellm user by id, returning the record when the user is active or a precise failure otherwise. The interactive DCR client authentica
litellm/proxy/mcp_server/bridge_token_flow.py:324
↓ 7 callers
Method
load_agents_from_db_and_config
Rebuild the registry from the DB rows plus the agents declared in config.yaml. ``agent_config`` defaults to the agents remembered by
litellm/proxy/agent_endpoints/agent_registry.py:507
↓ 7 callers
Function
load_es256_private_key
Parses an unencrypted PEM EC private key. Never echoes the key material in an error.
litellm/llms/base_llm/auth/jwt_signing.py:35
↓ 7 callers
Method
load_local_blog_posts
Load the bundled local backup blog posts.
litellm/litellm_core_utils/get_blog_posts.py:83
↓ 7 callers
Method
load_state_from_db
Add each row's persisted delta to a freshly computed cold-start prior. A row holds an accumulated delta, not a full posterior, and can be one
litellm/router_strategy/adaptive_router/adaptive_router.py:137
↓ 7 callers
Function
loads
`json.loads(text)`. Integers keep full precision, and a repeated key keeps its first position with its last value, as `dict(pairs)` does. An escape th
litellm-rust/crates/python-compat/src/json.rs:55
↓ 7 callers
Method
lock
(&self)
litellm-rust/crates/host-native/tests/driver.rs:90
↓ 7 callers
Function
log
(s,...o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callers
Function
log_beta_gated_strips
(stripped: Sequence[str], model: str | None, provider: str)
litellm/anthropic_beta_gated_fields.py:298
↓ 7 callers
Method
logging_breakdown
(self)
litellm/litellm_core_utils/llm_cost_calc/finalization.py:37
↓ 7 callers
Method
logging_hook
( self, kwargs: dict[str, object], result: object, call_type: str )
tests/unit/proxy/guardrails/test_guardrail_endpoints.py:3881
↓ 7 callers
Function
login
(app: &App, cookie: Option<&str>)
litellm-rust/crates/gateway-ui/tests/routes.rs:39
↓ 7 callers
Method
lookup
(self, key: str)
tests/e2e/provider_cache.py:534
↓ 7 callers
Method
lookup
(&self, name: &'static str)
litellm-rust/crates/python-bridge/src/routes/ocr/project.rs:37
↓ 7 callers
Function
lookup_model_info_for_registration
(model: str, custom_llm_provider: str | None)
litellm/utils.py:4110
↓ 7 callers
Function
m
()
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:53
↓ 7 callers
Function
m
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/0dvgjd47fte1d.js:1
↓ 7 callers
Function
makeOpenAIResponsesRequest
( messages: ResponsesMessage[], updateTextUI: (role: string, delta: string, model?: string) => void, sel
ui/litellm-dashboard/src/components/llm_calls/responses_api.tsx:91
↓ 7 callers
Method
make_multipart_http_request
Process multipart/form-data requests, handling both files and form fields. Iterates ``form.multi_items()`` rather than ``form.items()`` so re
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:582
↓ 7 callers
Function
make_redis_persister
( client: Optional[Any] = None, ttl_seconds: int = CASSETTE_TTL_SECONDS, )
tests/_vcr_redis_persister.py:135
↓ 7 callers
Function
make_slo
Build a StandardLoggingPayload-like dict with sentinel values distinct from make_kwargs/make_response defaults, so tests can prove the SLO branch
tests/unit/integrations/newrelic/test_newrelic.py:114
↓ 7 callers
Function
malformed
(lookup: &str)
litellm-rust/crates/router-core/src/model_info.rs:60
↓ 7 callers
Method
map_generate_content_optional_params
Map Google GenAI parameters to provider-specific format. Args: generate_content_optional_params: Optional parameters for
litellm/llms/gemini/google_genai/transformation.py:109
↓ 7 callers
Function
map_graph_response
( graph_response: object, model: str, messages: Sequence[AllMessageValues], )
litellm/llms/microsoft_365_copilot/chat/transformation.py:248
↓ 7 callers
Method
map_response_format_to_anthropic_output_format
(self, value: dict | None)
litellm/llms/anthropic/chat/transformation.py:1859
← previous
next →
11,001–11,100 of 202,479, ranked by callers