MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 7 callersFunctionimport_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 callersMethodinit_pubsub_client
(self)
tests/unit/proxy/auth/test_auth_checks.py:2304
↓ 7 callersFunctioninitial_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 callersFunctioninitialize_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 callersFunctioninitialize_guardrail
( litellm_params: "LitellmParams", guardrail: "Guardrail", )
litellm/proxy/guardrails/guardrail_hooks/llm_as_a_judge/__init__.py:352
↓ 7 callersFunctioninitialize_guardrail
(litellm_params: "LitellmParams", guardrail: "Guardrail")
litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/__init__.py:23
↓ 7 callersFunctioninitialize_guardrail
( litellm_params: "LitellmParams", guardrail: "Guardrail", *, async_handler: "AsyncHTTPHandler
litellm/proxy/guardrails/guardrail_hooks/agent_365/__init__.py:13
↓ 7 callersFunctioninput_images
(decision_input: DecisionsIRState | DecisionsIRMessages)
litellm/llms/base_llm/decisions/transformation.py:130
↓ 7 callersFunctioninsert_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 callersMethodinsert_with_deliveries
(self, rows, *, write_spend_logs: bool = True)
tests/integration/database/test_spendlogs_ledger_parity.py:1368
↓ 7 callersFunctioninstall_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 callersFunctioninstalled_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 callersFunctioninteractive_configure
Configure selected agents, retaining injectable pickers for embedders.
litellm/proxy/client/cli/commands/configure_setup.py:422
↓ 7 callersFunctioninterpret_kwargs
(fields: serde_json::Value)
litellm-rust/crates/redis-resolve/tests/interpret.rs:45
↓ 7 callersMethodinto_mcp
(self)
litellm-rust/crates/gateway-mcp/src/error.rs:200
↓ 7 callersFunctioninvalid
(setting: &str, expected: Expected)
litellm-rust/crates/redis-resolve/src/options.rs:181
↓ 7 callersFunctioninvalid_request
(err: serde_json::Error)
litellm-rust/crates/inference-messages/src/types.rs:40
↓ 7 callersMethodinvalidate_server_definition_caches
(self, server_id: str)
litellm/proxy/mcp_server/mcp_server_manager.py:4676
↓ 7 callersFunctioninvalidate_spend_counter
(counter_key: str)
litellm/proxy/proxy_server.py:4437
↓ 7 callersFunctioninvalidate_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 callersFunctionisFilledPtuValue
(value: unknown)
ui/litellm-dashboard/src/utils/ptuValidation.ts:23
↓ 7 callersFunctionisFunc
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunctionisObject
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunctionisOrdered
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersMethodisSelectable
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 7 callersFunctionis_advisor_orchestration_failure
Whether ``exception`` was tagged by ``mark_advisor_orchestration_failure``.
litellm/router_utils/cooldown_handlers.py:75
↓ 7 callersFunctionis_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 callersMethodis_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 callersMethodis_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 callersFunctionis_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 callersMethodis_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 callersFunctionis_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 callersFunctionis_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 callersFunctionis_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 callersMethodis_info_route
Check if route is an info route
litellm/proxy/auth/route_checks.py:568
↓ 7 callersMethodis_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 callersFunctionis_known_model
Returns True if the model is in the llm_router model names
litellm/proxy/utils.py:9868
↓ 7 callersFunctionis_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 callersFunctionis_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 callersMethodis_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 callersFunctionis_provider_error_chunk
(chunk: object)
litellm/llms/anthropic/messages/native/streaming_iterator.py:153
↓ 7 callersFunctionis_response_without_output
(result: object)
litellm/caching/caching_handler.py:212
↓ 7 callersMethodis_type
(&self, block_type: ContentBlockType)
litellm-rust/crates/llms-types/src/formats/messages/request.rs:108
↓ 7 callersFunctionis_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 callersFunctionis_valid_json
Checks whether the value passed is a valid serialized JSON string
litellm/llms/gigachat/chat/transformation.py:53
↓ 7 callersFunctionitems
(reply: Value)
litellm-rust/crates/redis-store/src/rate_limits/scripts.rs:181
↓ 7 callersFunctionix
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 7 callersFunctionj
(e,s)
litellm/proxy/_experimental/out/_next/static/chunks/2k-fkubkt19cc.js:19
↓ 7 callersFunctionj
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0cz1d0mv5g_q7.js:1
↓ 7 callersFunctionjg
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersMethodjson
(self)
litellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py:63
↓ 7 callersMethodjson_body
(self)
tests/unit/llms/base_llm/auth/test_token_exchange.py:75
↓ 7 callersFunctionjson_object
(body: bytes)
tests/e2e_harness/test_provider_edge.py:80
↓ 7 callersFunctionjson_reply
(body: Mapping[str, JsonValue], status: int = 200)
tests/integration/providers/_dashscope_video_support.py:42
↓ 7 callersMethodjsonify_team_object
(self, db_data: Mapping[str, object])
litellm/proxy/utils.py:6540
↓ 7 callersFunctionk
({...e})
litellm/proxy/_experimental/out/_next/static/chunks/0csaxmztgrx3b.js:434
↓ 7 callersFunctionk
({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 callersFunctionkeep
(endpoint: Mapping[str, object])
litellm/proxy/health_check.py:569
↓ 7 callersFunctionkey_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 callersMethodkey_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 callersFunctionkeyed
(key: &str)
litellm-rust/crates/cache-response/tests/support/mod.rs:20
↓ 7 callersFunctionkeyed_caller
(scenario: Scenario)
tests/integration/observability/test_stream_error_alert_api_base.py:153
↓ 7 callersMethodkeywords
Name positionals by the sync signature, since the async entry may order its parameters differently.
litellm/rust_bridge/public_call.py:96
↓ 7 callersFunctionkill_stray_process
(pid: int)
tests/integration/_support/process.py:412
↓ 7 callersMethodkind
(&self)
litellm-rust/crates/python-bridge/src/router/host.rs:258
↓ 7 callersFunctionlQ
litellm/proxy/_experimental/out/_next/static/chunks/3yrgf44a9g52e.js:1
↓ 7 callersFunctionlabelWithHint
(label: React.ReactNode, hint: string)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsx:74
↓ 7 callersMethodlangfuse
(self, name: str, host: str | None = None)
tests/integration/observability/test_otel_team_capture_message_content.py:200
↓ 7 callersMethodlast
The last deployment added.
litellm-rust/crates/router-core/src/registry.rs:671
↓ 7 callersMethodleftover_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 callersFunctionlist_field
(data: object, key: str)
litellm/llms/base_llm/guardrail_translation/utils.py:335
↓ 7 callersMethodlist_tools
(self, key: str, server_id: str | None = None)
tests/e2e/mcp/mcp_client.py:306
↓ 7 callersFunctionlisted_store
(gateway: Gateway, vector_store_id: str, *, key: str | None = None)
tests/integration/management/test_vector_store_config_ownership.py:32
↓ 7 callersFunctionlitellm_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 callersMethodload
Load providers from JSON configuration file
litellm/llms/openai_like/json_loader.py:50
↓ 7 callersFunctionload_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 callersMethodload_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 callersFunctionload_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 callersMethodload_local_blog_posts
Load the bundled local backup blog posts.
litellm/litellm_core_utils/get_blog_posts.py:83
↓ 7 callersMethodload_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 callersFunctionloads
`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 callersMethodlock
(&self)
litellm-rust/crates/host-native/tests/driver.rs:90
↓ 7 callersFunctionlog
(s,...o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunctionlog_beta_gated_strips
(stripped: Sequence[str], model: str | None, provider: str)
litellm/anthropic_beta_gated_fields.py:298
↓ 7 callersMethodlogging_breakdown
(self)
litellm/litellm_core_utils/llm_cost_calc/finalization.py:37
↓ 7 callersMethodlogging_hook
( self, kwargs: dict[str, object], result: object, call_type: str )
tests/unit/proxy/guardrails/test_guardrail_endpoints.py:3881
↓ 7 callersFunctionlogin
(app: &App, cookie: Option<&str>)
litellm-rust/crates/gateway-ui/tests/routes.rs:39
↓ 7 callersMethodlookup
(self, key: str)
tests/e2e/provider_cache.py:534
↓ 7 callersMethodlookup
(&self, name: &'static str)
litellm-rust/crates/python-bridge/src/routes/ocr/project.rs:37
↓ 7 callersFunctionlookup_model_info_for_registration
(model: str, custom_llm_provider: str | None)
litellm/utils.py:4110
↓ 7 callersFunctionm
()
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:53
↓ 7 callersFunctionm
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/0dvgjd47fte1d.js:1
↓ 7 callersFunctionmakeOpenAIResponsesRequest
( messages: ResponsesMessage[], updateTextUI: (role: string, delta: string, model?: string) => void, sel
ui/litellm-dashboard/src/components/llm_calls/responses_api.tsx:91
↓ 7 callersMethodmake_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 callersFunctionmake_redis_persister
( client: Optional[Any] = None, ttl_seconds: int = CASSETTE_TTL_SECONDS, )
tests/_vcr_redis_persister.py:135
↓ 7 callersFunctionmake_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 callersFunctionmalformed
(lookup: &str)
litellm-rust/crates/router-core/src/model_info.rs:60
↓ 7 callersMethodmap_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 callersFunctionmap_graph_response
( graph_response: object, model: str, messages: Sequence[AllMessageValues], )
litellm/llms/microsoft_365_copilot/chat/transformation.py:248
↓ 7 callersMethodmap_response_format_to_anthropic_output_format
(self, value: dict | None)
litellm/llms/anthropic/chat/transformation.py:1859
← previousnext →11,001–11,100 of 202,479, ranked by callers