MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions68,180 in github.com/BerriAI/litellm

↓ 11 callersMethodget_bedrock_invoke_provider
Helper function to get the bedrock provider from the model handles 4 scenarios: 1. model=invoke/anthropic.claude-3-5-sonnet-
litellm/llms/bedrock/chat/invoke_transformations/base_invoke_transformation.py:485
↓ 11 callersMethodget_complete_url
Get the complete A2A agent endpoint URL. A2A agents use JSON-RPC 2.0 at the base URL, not specific paths. The method (messag
litellm/llms/a2a/chat/transformation.py:156
↓ 11 callersFunctionget_custom_labels_from_metadata
Get custom labels from metadata
litellm/integrations/prometheus.py:3678
↓ 11 callersFunctionget_custom_llm_provider_from_request_body
Get the `custom_llm_provider` from the request body Safely reads the request body
litellm/proxy/common_utils/openai_endpoint_utils.py:52
↓ 11 callersFunctionget_daily_activity
Common function to get daily activity for any entity type. ``resolve_entity_metadata`` lets a caller resolve entity metadata from the rows ac
litellm/proxy/management_endpoints/common_daily_activity.py:763
↓ 11 callersMethodget_file_content
Fetch the content of a file from the GitLab repository at the given ref (tag, branch, or commit SHA). If `ref` is None, uses self.ref
litellm/integrations/gitlab/gitlab_client.py:111
↓ 11 callersMethodget_model_names
Returns all possible model names for the router, including models defined via model_group_alias. If a team_id is provided, only depl
litellm/router.py:9249
↓ 11 callersMethodget_prompt_text_for_dlp
Concatenate text from every chat message (all roles) for pre-call DLP. Evaluates the same payload the model receives, not only the trailing u
litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/base.py:447
↓ 11 callersMethodget_provider_evals_api_config
Get provider-specific Evals API configuration Args: provider: The LLM provider Returns: Provider-sp
litellm/utils.py:8154
↓ 11 callersFunctionget_redis_async_client
( connection_pool: Optional[async_redis.BlockingConnectionPool] = None, **env_overrides, )
litellm/_redis.py:544
↓ 11 callersMethodget_requested_anthropic_messages_optional_param
Filter parameters to only include those defined in AnthropicMessagesRequestOptionalParams. Args: params: Dictionary of p
litellm/llms/anthropic/experimental_pass_through/messages/utils.py:24
↓ 11 callersFunctionget_ssl_configuration
Unified SSL configuration function that handles ssl_context and ssl_verify logic. SSL Configuration Priority: 1. If ssl_verify is provid
litellm/llms/custom_httpx/http_handler.py:280
↓ 11 callersMethodget_supported_openai_params
(self, model: str)
litellm/llms/bedrock/chat/converse_transformation.py:494
↓ 11 callersMethodget_supported_openai_params
(self, model)
litellm/llms/sap/chat/transformation.py:200
↓ 11 callersMethodget_usage_data
Retrieve usage data from LiteLLM daily user spend table.
litellm/integrations/cloudzero/database.py:40
↓ 11 callersMethodhealth_check
Health check endpoint for the prisma client
litellm/proxy/utils.py:4738
↓ 11 callersFunctionhealth_endpoint
🚨 USE `/health/liveliness` to health check the proxy 🚨 See more 👉 https://docs.litellm.ai/docs/proxy/health Check the health of all th
litellm/proxy/health_endpoints/_health_endpoints.py:902
↓ 11 callersMethodinc
(self, *args, **kwargs)
litellm/types/integrations/prometheus.py:910
↓ 11 callersMethodinfo
(self, section=None)
tests/llm_translation/test_vcr_redis_persister.py:444
↓ 11 callersFunctioninitialize_standard_callback_dynamic_params
Initialize the standard callback dynamic params from the kwargs checks supported request callback params in kwargs and sets the correspondin
litellm/litellm_core_utils/initialize_dynamic_callback_params.py:70
↓ 11 callersMethodisLight
()
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:1
↓ 11 callersFunctionis_base64_encoded
(s: str)
litellm/utils.py:7139
↓ 11 callersMethodis_internal_ip
Check if a client IP is from an internal/private network. Handles X-Forwarded-For comma chains (takes leftmost = original client).
litellm/proxy/auth/ip_address_utils.py:111
↓ 11 callersMethodis_shutting_down
Whether this worker has begun graceful shutdown.
litellm/proxy/shutdown/graceful_shutdown_manager.py:47
↓ 11 callersFunctionis_tool_name_prefixed
Check if tool name has a known MCP server prefix. When ``known_server_prefixes`` is provided the function verifies that the substring be
litellm/proxy/_experimental/mcp_server/utils.py:355
↓ 11 callersFunctioniteratorValue
(s,o,i,a)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 11 callersFunctionjoin_paths
(base_path: str, route: str)
litellm/proxy/utils.py:5780
↓ 11 callersMethodkeys
(self)
litellm/router_strategy/budget_limiter.py:72
↓ 11 callersFunctionl
litellm/proxy/_experimental/out/_next/static/chunks/0_9wsaj_z5w6i.js:8
↓ 11 callersFunctionl
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 11 callersFunctionle
(e)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 11 callersMethodmap_openai_params
Map parameters for XAI Responses API. Handles XAI-specific transformations: 1. Drops 'instructions' parameter (not supported
litellm/llms/xai/responses/transformation.py:133
↓ 11 callersFunctionmerge_agent_headers
Merge outbound HTTP headers for A2A agent calls. Merge rules: - Start with ``dynamic_headers`` (values extracted from the incoming client req
litellm/interactions/agents/utils.py:10
↓ 11 callersFunctionnavigateToPage
(page: PlaywrightPage, pageEnum: Page)
ui/litellm-dashboard/e2e_tests/helpers/navigation.ts:8
↓ 11 callersMethodocr
(self, model: str, document: dict[str, str])
tests/e2e/gateway/test_ocr_rust_e2e.py:85
↓ 11 callersMethodopenai_passthrough_handler
Handle OpenAI passthrough logging with cost tracking for chat completions, image generation, image editing, and responses API.
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:261
↓ 11 callersFunctionparseErrorMessage
(error: any)
ui/litellm-dashboard/src/components/shared/errorUtils.tsx:6
↓ 11 callersFunctionparse_tool_call_arguments
Parse tool call arguments from a JSON string. When the JSON is malformed (e.g. truncated by the model), this function attempts a lightwe
litellm/litellm_core_utils/prompt_templates/common_utils.py:1609
↓ 11 callersFunctionpatch_user
Patch a user according to SCIM v2 protocol
litellm/proxy/management_endpoints/scim/scim_v2.py:1429
↓ 11 callersMethodpick_model
Thompson-sample across eligible models. Stateless per-turn.
litellm/router_strategy/adaptive_router/adaptive_router.py:190
↓ 11 callersFunctionprint_verbose
( print_statement, logger_only: bool = False, log_level: Literal["DEBUG", "INFO", "ERROR"] = "DEBU
litellm/utils.py:478
↓ 11 callersFunctionrE
(e,t,r,s)
litellm/proxy/_experimental/out/_next/static/chunks/0nnx~7-7e5t~1.js:1
↓ 11 callersMethodread
(self, *args)
tests/test_litellm/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:209
↓ 11 callersMethodrecord
( self, kwargs: Mapping[str, Any], response_obj: Any, start_time: datetime,
litellm/integrations/otel/plumbing/metrics.py:91
↓ 11 callersFunctionregister_plugin
Register a plugin in the LiteLLM marketplace. LiteLLM acts as a registry/discovery layer. Plugins are hosted on GitHub/GitLab/Bitbucket.
litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py:182
↓ 11 callersFunctionresolve
(plugin: object)
litellm/proxy/proxy_server.py:14013
↓ 11 callersFunctionresolve_validated_local_image_path
Resolve ``candidate`` only when it is an existing supported image file.
litellm/proxy/common_utils/static_asset_utils.py:26
↓ 11 callersFunctionrun_agent
Validate, wire the environment, and hand off to the agent. On success this replaces the current process and never returns. Raises AgentRunErr
litellm/proxy/client/cli/commands/agents.py:168
↓ 11 callersFunctionrun_async_fallback
Loops through all the fallback model groups and calls kwargs["original_function"] with the arguments and keyword arguments provided. If the
litellm/router_utils/fallback_event_handlers.py:84
↓ 11 callersFunctionsafe_deep_copy
Safe Deep Copy The LiteLLM request may contain objects that cannot be pickled/deep-copied (e.g., tracing spans, locks, clients). Th
litellm/litellm_core_utils/core_helpers.py:294
↓ 11 callersFunctionsession_stats_snapshot
Read-only copy of the per-session VCR stats. Used by the summary.
tests/_vcr_conftest_common.py:1631
↓ 11 callersFunctionsetCallbacksCall
(accessToken: string, formValues: Record<string, any>)
ui/litellm-dashboard/src/components/networking.tsx:3478
↓ 11 callersFunctionsetSecureItem
(key: string, value: string)
ui/litellm-dashboard/src/utils/secureStorage.ts:15
↓ 11 callersMethodset_cache
(self, litellm_call_id: str, service_name: str, trace_id: str)
litellm/litellm_core_utils/litellm_logging.py:261
↓ 11 callersMethodsetup_gdpr_guardrail
Setup guardrail with all GDPR patterns (mimics the policy template)
tests/test_litellm/proxy/guardrails/guardrail_hooks/content_filter/test_gdpr_policy_e2e.py:25
↓ 11 callersFunctionsplit_server_prefix_from_name
Return the unprefixed name plus the server name used as prefix.
litellm/proxy/_experimental/mcp_server/utils.py:322
↓ 11 callersFunctionta
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 11 callersFunctionthrowError
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 11 callersFunctiontoken_endpoint
Accept the authorization code from client and exchange it for OAuth token. Supports PKCE flow by forwarding code_verifier to upstream provide
litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py:807
↓ 11 callersMethodtransform_generate_content_request
( self, model: str, contents: GenerateContentContentListUnionDict, tools: Opti
litellm/llms/gemini/google_genai/transformation.py:334
↓ 11 callersMethodtransform_optional_params
Transform the optional params to the format expected by the Vertex AI API. For example, "aspect_ratio" is transformed to "aspectRatio
litellm/llms/vertex_ai/image_generation/image_generation_handler.py:43
↓ 11 callersMethodtransform_search_request
( self, query: str | list[str], optional_params: dict[str, object], **kwargs:
litellm/llms/tinyfish/search/transformation.py:94
↓ 11 callersMethodtransform_to_anthropic_error
Transform an error message to Anthropic format. - If already in Anthropic format: passthrough unchanged - Otherwise: extract
litellm/anthropic_interface/exceptions/exception_mapping_utils.py:124
↓ 11 callersFunctiontruncate_tool_name
Truncate tool names that exceed OpenAI's 64-character limit. Uses format: {55-char-prefix}_{8-char-hash} to avoid collisions when multip
litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py:29
↓ 11 callersFunctionu
(t,e,r,n,i)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 11 callersMethodupdate
(self, where, data)
tests/test_litellm/proxy/management_endpoints/test_model_management_endpoints.py:286
↓ 11 callersMethodupdate_values
( self, alerting: Optional[List] = None, alerting_threshold: Optional[float] = None,
litellm/proxy/utils.py:484
↓ 11 callersFunctionw
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:39
↓ 11 callersMethodwait_for_drain
Poll the in-flight request counter until it reaches the drain target or ``timeout`` seconds elapse. Args: timeou
litellm/proxy/shutdown/graceful_shutdown_manager.py:87
↓ 10 callersFunctionBg
(s,o,i,a)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionD
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 10 callersFunctionDk
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionI
()
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:39
↓ 10 callersFunctionI
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/00p.gft-l.6p..js:1
↓ 10 callersFunctionI
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/01xm1xt.gmrff.js:1
↓ 10 callersFunctionJ
(e)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 10 callersFunctionL
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionM
(e)
litellm/proxy/_experimental/out/_next/static/chunks/036wlkuzplhfz.js:1
↓ 10 callersFunctionR
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:1
↓ 10 callersFunctionU
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionUh
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionV
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionW
(s,o,i)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunction_
(e)
litellm/proxy/_experimental/out/_next/static/chunks/06x5y8ia4k1mc.js:1
↓ 10 callersFunction_
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0d2qt-f_paso0.js:1
↓ 10 callersFunction_
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0hzdsr8t0ksq..js:1
↓ 10 callersFunction_
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0-3i_.uof35pm.js:1
↓ 10 callersMethod_PROXY_track_cost_callback
( self, kwargs, # kwargs to completion completion_response: Optional[Union[litellm
litellm/proxy/hooks/proxy_track_cost_callback.py:171
↓ 10 callersMethod_acompletion_streaming_iterator
Helper to iterate over a streaming response. Catches errors for fallbacks using the router's fallback system
litellm/router.py:1912
↓ 10 callersMethod_add_citations_as_annotations
Extract citations and search_results from Perplexity API response and add them as ChatCompletionAnnotation objects to the message.
litellm/llms/perplexity/chat/transformation.py:156
↓ 10 callersFunction_admin_user
()
tests/pass_through_unit_tests/test_passthrough_managed_ids.py:63
↓ 10 callersMethod_async_get_cache
Internal method to get from the cache. Handles different call types (embeddings, chat/completions, text_completion, transcription)
litellm/caching/caching_handler.py:134
↓ 10 callersFunction_backend
(cache)
tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_dual_cache_token_backend.py:32
↓ 10 callersFunction_build_prisma_with_keys
(user_keys, mock_user=None, updated_user=None)
tests/test_litellm/proxy/management_endpoints/scim/test_scim_key_deactivation.py:37
↓ 10 callersMethod_build_stdio_env
Resolve stdio env values, supporting header-driven placeholders.
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:1596
↓ 10 callersMethod_calculate_usage_per_chunk
( self, chunks: List[Union[Dict[str, Any], ModelResponse]], )
litellm/litellm_core_utils/streaming_chunk_builder_utils.py:514
↓ 10 callersFunction_check_org_key_limits
Check if the organization key is allocating guaranteed throughput limits. If so, raise an error if we're overallocating. Only runs check if
litellm/proxy/management_endpoints/key_management_endpoints.py:1270
↓ 10 callersMethod_check_tool_permission
Check if a tool is allowed based on the configured rules Args: tool_name: Name of the tool to check tool_typ
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:211
↓ 10 callersMethod_cleanup_engine_watcher
Clean up pidfd reader, waitpid thread ref, or stop polling and reset state.
litellm/proxy/utils.py:4368
↓ 10 callersFunction_config_cache_key
(param_name: str)
litellm/proxy/utils.py:2721
← previousnext →1,501–1,600 of 68,180, ranked by callers