MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunctioninput_items
(input: object)
litellm/responses/litellm_completion_transformation/compaction_items.py:203
↓ 4 callersMethodinsert
()
tests/integration/spend/test_shutdown_flush.py:386
↓ 4 callersMethodinsert_data
For new key / user logic
litellm/proxy/db/base_client.py:17
↓ 4 callersMethodinsert_point
(&self, point: StoredPoint)
litellm-rust/crates/cache-qdrant-semantic/tests/support/mod.rs:85
↓ 4 callersFunctioninternal_issuer_assertion_source
A zero-arg closure that mints fresh on every call: the shape an ``oidc/internal_issuer/...`` ref dispatches to once wired into ``TokenExchangeSpec
litellm/llms/base_llm/auth/internal_issuer.py:67
↓ 4 callersMethodinterrupt
(&self, error: PyErr)
litellm-rust/crates/host-python/src/driver.rs:263
↓ 4 callersMethodinvalid
(&self, expected: &'static str)
litellm-rust/crates/python-bridge/src/coercion.rs:144
↓ 4 callersFunctioninvalid_pem
(path: &Path, tls_source: TlsSource, fault: impl Into<PemFault>)
litellm-rust/crates/http/src/tls.rs:275
↓ 4 callersMethodinvalidate
Drop the chain's cached entry for ``(user_id, server_id)`` after the credential row changes (re-auth, revoke). Builds the chain if no fetch ha
litellm/proxy/mcp_server/outbound_credentials/per_user_oauth_store.py:229
↓ 4 callersFunctioninvalidate_access_group_caches
Drop every given access group from the caches, then raise if any drop failed. Every entry is attempted even when one raises, so a single unr
litellm/proxy/management_helpers/access_group_team_sync.py:123
↓ 4 callersMethodinvalidate_baseline_cache_estimate
Invalidate uncertain attempts; retire the reservation at logical completion.
litellm/litellm_core_utils/litellm_logging.py:3180
↓ 4 callersFunctioninvalidate_budget_reservation_counters
( budget_reservation: dict | None, )
litellm/proxy/spend_tracking/budget_reservation.py:432
↓ 4 callersMethodinvalidate_discovery_lists
(self, server_id: str)
litellm/proxy/mcp_server/mcp_server_manager.py:4669
↓ 4 callersFunctioninvalidate_oauth_metadata_cache
Drop cached upstream IdP metadata for a server whose definition changed.
litellm/proxy/mcp_server/discoverable_endpoints.py:205
↓ 4 callersFunctioninvitationCreateCall
( accessToken: string, userID: string, // Assuming formValues is an object )
ui/litellm-dashboard/src/components/networking.tsx:838
↓ 4 callersMethodinvoke
(&self, py: Python<'_>, name: &str, value: Py<PyAny>)
litellm-rust/crates/host-python/tests/hook_chain.rs:21
↓ 4 callersFunctioninvoke_kwargs
(client: MagicMock)
tests/unit/llms/sagemaker/test_sagemaker_embedding_openai.py:50
↓ 4 callersFunctionio_token_reconcile_success
( dual_cache: DualCache, kwargs: Mapping[str, object] | None, response_obj: object, )
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:821
↓ 4 callersFunctionisAnchor
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersMethodisArray
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionisBlank
(value: unknown)
ui/litellm-dashboard/src/app/(dashboard)/caching/_components/cache_settings/cacheSettingsFields.ts:52
↓ 4 callersFunctionisChatImageUrl
(url: string)
ui/litellm-dashboard/src/components/chat/imageHelpers.ts:13
↓ 4 callersFunctionisGuardrailStreamScope
(value: unknown)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsx:406
↓ 4 callersFunctionisJwtExpired
(token: string)
ui/litellm-dashboard/src/utils/jwtUtils.ts:3
↓ 4 callersFunctionisKeyExpired
(expires?: string | null)
ui/litellm-dashboard/src/utils/keyExpiryUtils.ts:28
↓ 4 callersFunctionisModeCompatibleWithEndpoint
(mode: string | null | undefined, endpointType: EndpointType)
ui/litellm-dashboard/src/components/chat_ui/mode_endpoint_mapping.tsx:61
↓ 4 callersFunctionisModelCompatibleWithEndpoint
(model: ModelGroup, endpointType: EndpointType)
ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/EndpointUtils.tsx:18
↓ 4 callersFunctionisOwnedByConfig
(source: RouterSettingsSource, key: string)
ui/litellm-dashboard/src/components/router_settings/ConfigOwned.tsx:14
↓ 4 callersFunctionisValidReturnUrl
(url: string, runtimeBackendUrl: string | null = null)
ui/litellm-dashboard/src/utils/returnUrlUtils.ts:229
↓ 4 callersFunctionisValidThreshold
(threshold: number | null)
ui/litellm-dashboard/src/components/team/teamMemberBudgetAlertEmails.ts:26
↓ 4 callersFunctionisViewOnlySessionRole
(rawUserRole?: string)
ui/litellm-dashboard/src/utils/roles.ts:137
↓ 4 callersFunctionis_absent
(value: SettingValue)
litellm/proxy/config_resolvers/settings_rules.py:114
↓ 4 callersMethodis_admin
(self, scopes: list)
litellm/proxy/auth/handle_jwt.py:392
↓ 4 callersFunctionis_ai_decide_model
(model: str)
litellm/llms/databricks/decisions/transformation.py:21
↓ 4 callersFunctionis_allowed_to_call_vector_store_files_endpoint
( provider: LlmProviders, vector_store_id: str, request: Request, user_api_key_dict: UserAPIKe
litellm/proxy/vector_store_endpoints/utils.py:507
↓ 4 callersFunctionis_ambiguous_keyed_prompt_data
(litellm_params: PromptLiteLLMParams)
litellm/proxy/prompts/prompt_endpoints.py:207
↓ 4 callersMethodis_anthropic_claude_model
Check if the model is an Anthropic Claude model that supports the thinking parameter. Returns True for: - anthropic/* models
litellm/llms/anthropic/messages/adapters/transformation.py:816
↓ 4 callersFunctionis_anthropic_sse_stream
Whether raw SSE frames are Anthropic Messages events. ``is_raw_sse_stream`` only says the chunks are unparsed bytes, and ``/v1/messages`` is not
litellm/llms/anthropic/messages/stream_assembly.py:556
↓ 4 callersFunctionis_azure_model_router
Check if the model is Azure AI Foundry Model Router. Detects patterns like: - "azure-model-router" - "model-router" - "model_rou
litellm/llms/azure_ai/cost_calculator.py:14
↓ 4 callersMethodis_azure_speech_route
(self, custom_llm_provider: str | None)
litellm/proxy/pass_through_endpoints/success_handler.py:638
↓ 4 callersFunctionis_baggage_mapped_route
(route: str)
litellm/proxy/common_utils/request_tag_mappings.py:18
↓ 4 callersFunctionis_bedrock
(mount: str)
tests/e2e/provider_cache.py:172
↓ 4 callersFunctionis_bedrock_application_inference_profile_arn
An application inference profile ARN ends in an opaque id with no provider substring, so the invoke path cannot resolve a provider from it. S
litellm/llms/bedrock/common_utils.py:1202
↓ 4 callersMethodis_bedrock_arn_model
Check if the model string is a Bedrock ARN, such as an Application Inference Profile (e.g. arn:aws:bedrock:us-east-1:123:application-
litellm/llms/anthropic/messages/adapters/transformation.py:829
↓ 4 callersFunctionis_bedrock_native_output_rejection
(status_code: int, error_text: str)
litellm/llms/bedrock/common_utils.py:438
↓ 4 callersMethodis_blocked
Whether an admin paused this deployment (was ``is_deployment_blocked``).
litellm/router_api.py:1331
↓ 4 callersFunctionis_bridge_authorization_code
Cheap prefix check that ``code`` is a gateway-sealed bridge authorization code rather than a raw upstream code, so the token endpoint can route wi
litellm/proxy/mcp_server/discoverable_endpoints.py:336
↓ 4 callersMethodis_claimed
(self, interaction_id: str)
litellm/interactions/background_cost_polling.py:149
↓ 4 callersFunctionis_claude_code_user_agent
Claude Code sends its API calls through the Anthropic SDK as `claude-cli/<version>` and its own fetches, such as gateway model discovery, as `clau
litellm/llms/anthropic/common_utils.py:400
↓ 4 callersFunctionis_claude_strict_tools_rejection
(status_code: int, error_text: str)
litellm/llms/anthropic/common_utils.py:1982
↓ 4 callersFunctionis_complexity_router_model
Whether ``model`` selects the complexity-router implementation.
litellm/router_strategy/auto_router/auto_router_model_naming.py:94
↓ 4 callersMethodis_contextualized_embeddings
(model: str)
litellm/llms/voyage/embedding/transformation_contextual.py:165
↓ 4 callersMethodis_cursor_route
Check if the URL route is a Cursor Cloud Agents API route.
litellm/proxy/pass_through_endpoints/success_handler.py:669
↓ 4 callersMethodis_database_lifecycle_error
True iff Postgres failed the statement because of a server lifecycle event: a refused connection during startup, shutdown or recovery (57P03),
litellm/proxy/db/exception_handler.py:342
↓ 4 callersFunctionis_databricks_app_url
(api_base: str)
litellm/llms/databricks/agent/transformation.py:75
↓ 4 callersFunctionis_decisions_model_mode
(mode: str | None)
litellm/types/utils.py:177
↓ 4 callersMethodis_empty
(&self)
litellm-rust/crates/router-core/src/registry.rs:392
↓ 4 callersFunctionis_empty_unsigned_thinking_block
True for an empty ``{"type": "thinking"}`` block carrying no signature. Used on both the emit and the request side: a thinking block is drop
litellm/llms/anthropic/common_utils.py:2171
↓ 4 callersFunctionis_event_loop_running
()
litellm/litellm_core_utils/asyncify.py:72
↓ 4 callersMethodis_flux2_model
Check if the model is an Azure AI FLUX 2 model. Args: model: Model name (e.g., flux.2-pro, azure_ai/flux.2-pro)
litellm/llms/azure_ai/image_generation/flux_transformation.py:60
↓ 4 callersMethodis_gemini_route
Check if the URL route is a Gemini API route.
litellm/proxy/pass_through_endpoints/success_handler.py:698
↓ 4 callersFunctionis_inert_migration
Whether a migration file changes nothing: only comments and `SELECT 1`, so applying it can neither repeat nor skip a database change.
litellm-proxy-extras/litellm_proxy_extras/migration_recovery.py:174
↓ 4 callersMethodis_jwt
(self, token: str)
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:11969
↓ 4 callersFunctionis_loopback_redirect_host
True when the redirect host is loopback (RFC 8252 section 7.3). Shared by every redirect-URI policy in the MCP OAuth surface so that none of them
litellm/proxy/mcp_server/oauth_utils.py:524
↓ 4 callersFunctionis_mantle_claude_model
(model: str)
litellm/llms/bedrock_mantle/common_utils.py:132
↓ 4 callersFunctionis_mcp_available
Returns True if the MCP module is available, False otherwise
litellm/proxy/mcp_server/utils.py:154
↓ 4 callersFunctionis_mcp_stdio_blocked
(transport: str | None)
litellm/proxy/mcp_server/stdio_gate.py:22
↓ 4 callersFunctionis_mcp_stdio_enabled
()
litellm/proxy/mcp_server/stdio_gate.py:14
↓ 4 callersMethodis_metric_registered
(self, metric_name)
litellm/integrations/prometheus_services.py:158
↓ 4 callersMethodis_model_gpt_5_model
(cls, model: str)
litellm/llms/azure/chat/gpt_reasoning_transformation.py:52
↓ 4 callersMethodis_model_gpt_5_search_model
Check if the model is a GPT-5 search variant (e.g. gpt-5-search-api). Search-only models have a severely restricted parameter set compared to
litellm/llms/openai/chat/gpt_reasoning_transformation.py:124
↓ 4 callersMethodis_model_o_series_model
(self, model: str)
litellm/llms/openai/chat/o_series_transformation.py:125
↓ 4 callersFunctionis_model_response_stream_empty
Check if a ModelResponseStream is empty based on: - If finish_reason is set -> it's non empty - If any field in choices is set (e.g. cont
litellm/litellm_core_utils/model_response_utils.py:22
↓ 4 callersFunctionis_mutable_tuned_candidate
(candidate: Mapping[str, object], baselines: Mapping[str, str])
litellm/router_strategy/auto_router/auto_router_tuning_baseline.py:125
↓ 4 callersFunctionis_openai_compatible_url
True if the URL targets an OpenAI-compatible API surface. For the shared Azure Cognitive Services domains we additionally require an OpenAI-s
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:94
↓ 4 callersMethodis_openai_embeddings_route
Check if the URL route is an OpenAI embeddings endpoint.
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:335
↓ 4 callersMethodis_openai_image_editing_route
Check if the URL route is an OpenAI image editing endpoint.
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:247
↓ 4 callersMethodis_openai_image_generation_route
Check if the URL route is an OpenAI image generation endpoint.
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:239
↓ 4 callersFunctionis_openai_upload
(request: Request)
tests/integration/providers/_vertex_batch_rows.py:144
↓ 4 callersFunctionis_output_token_limit_error
True when OpenAI/Azure rejected a chat request because the output budget could not fit a single visible token. GPT-5.x turns that case into
litellm/llms/openai/common_utils.py:259
↓ 4 callersMethodis_over_limit
Check if the license is over the limit
litellm/proxy/auth/litellm_license.py:139
↓ 4 callersMethodis_override
Whether ``selector`` is a per-request override one, whose pre-call check the router runs itself because it is not in the callback lists.
litellm/router_rust/steps/selection.py:255
↓ 4 callersFunctionis_password_breached
False when the check is disabled, the password is absent from the HIBP corpus, or HIBP is unreachable (fail open).
litellm/proxy/auth/password_policy.py:150
↓ 4 callersFunctionis_pdf_file_part
(part: object)
litellm/litellm_core_utils/prompt_templates/common_utils.py:459
↓ 4 callersFunctionis_present
Python reads most of these with `x or fallback`, so an empty value counts as unset everywhere
litellm-rust/crates/redis-resolve/src/options.rs:171
↓ 4 callersFunctionis_present_non_string
(value: object)
litellm/litellm_core_utils/prompt_templates/common_utils.py:1571
↓ 4 callersMethodis_prisma_data_error
True iff ``e`` is a base prisma ``DataError``: the database processed the statement and refused the data itself (e.g. ``invalid byte sequence
litellm/proxy/db/exception_handler.py:203
↓ 4 callersFunctionis_proxy_admin_request
(request_kwargs: Mapping[str, object] | None)
litellm/litellm_core_utils/routing_common_utils.py:99
↓ 4 callersFunctionis_proxy_api_resource
True when the RFC 8707 ``resource`` names the proxy itself (its base URL), which is how a native client asks for the proxy-API audience rather tha
litellm/proxy/mcp_server/gateway_dcr_flow.py:872
↓ 4 callersMethodis_read_only_transaction_error
True iff ``e`` is Postgres SQLSTATE 25006 surfaced through prisma: the pooled session answers reads but rejects writes, so the connection is
litellm/proxy/db/exception_handler.py:401
↓ 4 callersFunctionis_readiness_probe
(request: Request)
tests/integration/providers/_coralbricks.py:251
↓ 4 callersFunctionis_redis_timeout_failure
True when ``exc`` or any exception it was explicitly raised ``from`` is a timeout. redis-py's blocking pool reports a pool wait timeout as ``Conn
litellm/caching/redis_cache.py:323
↓ 4 callersMethodis_request
Whether the caller passed a bad outcome, rather than driving a call that cannot go on.
litellm-rust/crates/python-bridge/src/router/host.rs:463
↓ 4 callersMethodis_request_from_trusted_proxy
Return True if X-Forwarded-* headers on this request should be trusted. Trusts the headers iff both: 1. ``use_x_forwarded_
litellm/proxy/auth/ip_address_utils.py:144
↓ 4 callersFunctionis_secret_field
(name: str)
tests/e2e/fixture_canonical.py:77
↓ 4 callersMethodis_server_accessible_from_ip
Check if a server is accessible from the given client IP. - If client_ip is None, no IP filtering is applied (internal callers).
litellm/proxy/mcp_server/mcp_server_manager.py:7365
↓ 4 callersFunctionis_session_token
Cheap prefix check for a session ACCESS token so the admission edge can route gateway sessions vs keys, JWTs, and envelopes without crypto.
litellm/proxy/mcp_server/outbound_credentials/session_token.py:324
↓ 4 callersFunctionis_sse_error_stream
Whether the buffered stream carries nothing but error frames. post_call guardrails run in a chain, so a hook can be handed the terminal error fra
litellm/llms/anthropic/messages/stream_assembly.py:770
↓ 4 callersMethodis_streaming_request
(self, endpoint: str, request_data: dict)
litellm/llms/vllm/passthrough/transformation.py:56
↓ 4 callersMethodis_streaming_request
Check if request should be streamed
litellm/llms/watsonx/passthrough/transformation.py:15
← previousnext →20,601–20,700 of 202,479, ranked by callers