MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions68,141 in github.com/BerriAI/litellm

↓ 12 callersFunctionuseTeams
()
ui/litellm-dashboard/src/app/(dashboard)/hooks/useTeams.tsx:10
↓ 12 callersMethodvalidate_environment
( self, *args, **kwargs )
litellm/llms/base.py:78
↓ 12 callersFunctionw
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0p.6bs58-_3lw.js:1
↓ 12 callersFunctionwe
(t,e)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 11 callersFunctionE
(s,o,i)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 11 callersFunctionE
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:1
↓ 11 callersFunctionR
(s,o,u,_,w)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 11 callersFunctionT
(e,t,r,n)
litellm/proxy/_experimental/out/_next/static/chunks/0p.6bs58-_3lw.js:1
↓ 11 callersFunction_async_get_cooldown_deployments
Async implementation of '_get_cooldown_deployments'
litellm/router_utils/cooldown_handlers.py:294
↓ 11 callersFunction_attach_mock_success_dispatch
Match production entrypoint: ``_run_deferred_stream_guardrails`` uses dispatch.
tests/test_litellm/proxy/guardrails/test_deferred_guardrail_logging.py:41
↓ 11 callersMethod_base_validate_azure_environment
(headers: dict, litellm_params: Optional[GenericLiteLLMParams])
litellm/llms/azure/common_utils.py:666
↓ 11 callersFunction_build_event_stream_frame
(event_type: str, payload: dict)
tests/test_litellm/llms/bedrock/passthrough/guardrail_translation/test_handler.py:745
↓ 11 callersFunction_classify_cursor_request
Classify a Cursor API request into a readable operation name.
litellm/proxy/pass_through_endpoints/llm_provider_handlers/cursor_passthrough_logging_handler.py:35
↓ 11 callersMethod_config
(self)
tests/test_litellm/llms/oci/test_oci_coverage_boost.py:851
↓ 11 callersFunction_converse_data
(endpoint: str = "model/anthropic.claude-3-sonnet/converse")
tests/test_litellm/llms/bedrock/passthrough/guardrail_translation/test_handler.py:37
↓ 11 callersMethod_convert_consecutive_user_messages_to_guarded_text
Convert consecutive user messages at the end to guarded_text type if guardrailConfig is present and no guarded_text is already presen
litellm/llms/bedrock/chat/converse_transformation.py:141
↓ 11 callersFunction_convert_mcp_messages_to_openai
Convert MCP SamplingMessage list to OpenAI messages format. MCP messages use: - role: "user" | "assistant" - content: TextContent | I
litellm/proxy/_experimental/mcp_server/sampling_handler.py:358
↓ 11 callersMethod_create_bedrock_block
Create appropriate Bedrock content block based on mime type.
litellm/litellm_core_utils/prompt_templates/factory.py:3515
↓ 11 callersMethod_decrypt_db_variables
Decrypts a dictionary of variables and returns them.
litellm/proxy/proxy_server.py:5126
↓ 11 callersFunction_enforce_upperbound_key_params
Enforce upperbound limits on key parameters. For key generation (fill_defaults=True): fills None values with upperbound defaults. For ke
litellm/proxy/management_endpoints/key_management_endpoints.py:584
↓ 11 callersFunction_engine
(legacy_compat=True)
tests/test_litellm/integrations/otel/test_otel_v2_emitter.py:53
↓ 11 callersMethod_extract_all_messages
Extract all messages (request + response) with sequence numbers and timestamps. Processes request messages from StandardLoggingPaylo
litellm/integrations/newrelic/newrelic.py:497
↓ 11 callersMethod_extract_text_from_messages
Extract text content from the last user message for routing. Handles tool-call conversations (where the last message may be an
litellm/router_strategy/auto_router/auto_router.py:86
↓ 11 callersMethod_fire_deferred_stream_logging
Fire the deferred streaming logging callback after the full streaming pipeline (including guardrail end-of-stream blocks) has complet
litellm/proxy/utils.py:2565
↓ 11 callersFunction_generic_lazy_import
Generic function that handles lazy importing for most attributes. This is the workhorse function - it does the actual importing and caching.
litellm/_lazy_imports.py:208
↓ 11 callersMethod_get_all_deployments
Return all deployments of a model name Used for accurate 'get_model_list'. if team_id specified, only return team-specific
litellm/router.py:9175
↓ 11 callersMethod_get_allowed_mcp_servers_for_team
Get allowed MCP servers for a team. Unions two sources: - Legacy team.object_permission (mcp_servers, mcp_access_groups,
litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py:992
↓ 11 callersMethod_get_async_client_session
(self, dynamic_client_session: Optional[ClientSession] = None)
litellm/llms/custom_httpx/aiohttp_handler.py:96
↓ 11 callersMethod_get_email_params
Get common email parameters used across different email sending methods Args: email_event: Type of email event
enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py:670
↓ 11 callersMethod_get_litellm_resource
Create an OpenTelemetry Resource using config-driven defaults.
litellm/integrations/opentelemetry.py:362
↓ 11 callersFunction_get_projected_spend_over_limit
(current_spend: float, soft_budget_limit: Optional[float])
litellm/proxy/utils.py:5522
↓ 11 callersMethod_handle_logging_proxy_only_error
Handle logging for proxy only errors by calling `litellm_logging_obj.async_failure_handler` Is triggered when self._is_proxy_only_er
litellm/proxy/utils.py:2132
↓ 11 callersMethod_handle_model_invocation_job_status
Handle ``GetModelInvocationJob`` status check for AWS Bedrock bulk batch inference jobs (the ARN type returned by ``CreateModelInvoca
litellm/llms/bedrock/batches/handler.py:163
↓ 11 callersFunction_init_custom_logger_compatible_class
Initialize a custom logger compatible class
litellm/litellm_core_utils/litellm_logging.py:3460
↓ 11 callersMethod_litellm_params
(self)
tests/test_litellm/llms/bedrock/files/test_bedrock_files_transformation.py:1187
↓ 11 callersFunction_make_audit_log
( action: str = "created", table_name: LitellmTableNames = LitellmTableNames.TEAM_TABLE_NAME, )
tests/test_litellm/proxy/management_helpers/test_audit_log_callbacks.py:35
↓ 11 callersFunction_make_chunk
( *, content: str = "", usage: Usage = None, finish_reason: str = None, custom_llm_provide
tests/test_litellm/litellm_core_utils/test_streaming_chunk_builder_cursor.py:38
↓ 11 callersFunction_make_dep
(dep_id: str, weight: Optional[int] = None)
tests/test_litellm/test_router_weighted_failover.py:25
↓ 11 callersFunction_make_guardrail
()
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_bedrock_guardrails.py:1953
↓ 11 callersFunction_make_module_with_source
(tmp_path, src: str, name: str)
tests/llm_translation/test_vcr_classification.py:281
↓ 11 callersFunction_make_prisma
Return a mock prisma_client with litellm_tooltable.upsert, find_many, find_unique.
tests/test_litellm/proxy/db/test_tool_registry_writer.py:55
↓ 11 callersMethod_make_proxy_logging
(self, mock_hook)
tests/test_litellm/llms/bedrock/passthrough/guardrail_translation/test_handler.py:777
↓ 11 callersFunction_make_request
Minimal fake Starlette Request.
tests/test_litellm/proxy/test_dynamic_mcp_route.py:43
↓ 11 callersFunction_make_router_mock
(enable_tag_filtering=True, match_any=True)
tests/test_litellm/router_strategy/test_router_tag_regex_routing.py:111
↓ 11 callersFunction_merge_query_params_into_data
For GET/DELETE endpoints that cannot carry a JSON body, read a JSON-encoded ``litellm_params_template`` query parameter and merge its con
litellm/proxy/google_endpoints/agents_endpoints.py:72
↓ 11 callersMethod_model_has_route_prefix
Whether a route prefix (e.g. ``mantle/``) appears as a leading path segment. A route token is only valid at the start of the model id or imme
litellm/llms/bedrock/common_utils.py:1012
↓ 11 callersFunction_models
Distinct body.model values, mirroring how the rate limiter collects the models from a streamed batch file before the access check.
tests/test_litellm/proxy/hooks/test_batch_file_validation.py:18
↓ 11 callersMethod_parse_s3_uri
Parse S3 URI to extract bucket name and object key. Args: s3_uri: S3 URI (e.g., "s3://bucket-name/path/to/file")
litellm/llms/bedrock/files/handler.py:41
↓ 11 callersMethod_pre_call_checks
Filter out model in model group, if: - model context window < message length. For azure openai models, requires 'base_model' is set.
litellm/router.py:9698
↓ 11 callersFunction_premium_user_check
Raises an HTTPException if the user is not a premium user
litellm/proxy/utils.py:5733
↓ 11 callersFunction_prepare_mcp_server_data
Helper function to prepare MCP server data for database operations. Handles JSON field serialization for mcp_info and env fields. Args:
litellm/proxy/_experimental/mcp_server/db.py:185
↓ 11 callersFunction_redact_sensitive_litellm_params
Replace credential-bearing values in ``litellm_params`` with ``REDACTED_BY_LITELM`` while preserving non-secret keys (``api_base``, ``reg
litellm/proxy/vector_store_endpoints/management_endpoints.py:74
↓ 11 callersFunction_resolve_model_from_preferences
Resolve an LLM model name from MCP ModelPreferences. Strategy: 1. Check hints for substring matches against known model names. 2. Fal
litellm/proxy/_experimental/mcp_server/sampling_handler.py:49
↓ 11 callersFunction_run
(coro)
tests/llm_translation/test_openai_record_replay_proxy.py:45
↓ 11 callersFunction_safe_body_matcher
Compare request bodies as bytes; never invokes ``json.loads``. vcrpy's stock ``body`` matcher unconditionally json-decodes ``application/json
tests/_vcr_conftest_common.py:689
↓ 11 callersFunction_sample_cassette_dict
()
tests/llm_translation/test_vcr_redis_persister.py:31
↓ 11 callersMethod_should_skip_batch_input_file_processing
Skip downloading batch input files when the operator disabled batch input-file rate limiting, when the batch runs entirely on a skip-
litellm/proxy/hooks/batch_rate_limiter.py:220
↓ 11 callersFunction_spec
(config)
tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_resolver.py:39
↓ 11 callersMethod_strip_markdown_json
Strip markdown code block wrapper from JSON content if present. SAP GenAI Hub with Anthropic models sometimes returns JSON wrapped in
litellm/llms/sap/chat/transformation.py:418
↓ 11 callersMethod_transform_messages_helper
Strip fields not permitted by FireworksAI from messages.
litellm/llms/fireworks_ai/chat/transformation.py:260
↓ 11 callersMethod_transform_response
Transforms the response from the Bedrock embedding provider to the OpenAI format.
litellm/llms/bedrock/embed/embedding.py:149
↓ 11 callersFunction_update_request_data_with_model_routing_hint
( data: Dict, request: Request, llm_router: Optional["Router"] = None, user_api_key_dict: Opti
litellm/proxy/vector_store_files_endpoints/endpoints.py:217
↓ 11 callersFunction_validate_team_member_add_permissions
Validate if user has permission to add members to the team. Standard users can self-join an *available team*, but the bypass must not be allo
litellm/proxy/management_endpoints/team_endpoints.py:2054
↓ 11 callersFunction_validate_token_response
Raise HTTPException 403 if any validation rule doesn't match the token response. Supports dot-notation for nested fields (e.g. ``"team.enterprise
litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py:189
↓ 11 callersMethodacompletion
( self, model: str, messages: list, api_base: str, custom_prompt_dict:
litellm/llms/custom_llm.py:91
↓ 11 callersMethodanalyze_text
Send text to the Presidio analyzer endpoint and get analysis results
litellm/proxy/guardrails/guardrail_hooks/presidio.py:262
↓ 11 callersMethodapply_client_tag_policy_pre_auth
Merge ``x-litellm-tags`` header tags into ``request_data`` BEFORE auth budget gates run, so ``_tag_max_budget_check`` (which only
litellm/proxy/litellm_pre_call_utils.py:1172
↓ 11 callersMethodaretrieve_batch
Iterate through all models in a model group to check for batch Future Improvement - cache the result.
litellm/router.py:5037
↓ 11 callersFunctionas
(e,t,s,r,a,n,i)
litellm/proxy/_experimental/out/_next/static/chunks/16.oisvgwzo8s.js:31
↓ 11 callersFunctionasend_message
Async: Send a message to an A2A agent. Uses the @client decorator for LiteLLM logging and tracking. If litellm_params contains custom_ll
litellm/a2a_protocol/main.py:201
↓ 11 callersMethodasync_increment_cache
Key - the key in cache Value - float - the value you want to increment by Refresh_ttl - bool - if True, resets the Redis TT
litellm/caching/dual_cache.py:359
↓ 11 callersMethodasync_write_secret
Async function to write a secret to AWS Secrets Manager Args: secret_name: Name of the secret secret_value:
litellm/secret_managers/aws_secret_manager_v2.py:243
↓ 11 callersFunctionbyok_token
Exchange an authorization code for a short-lived BYOK session JWT. 1. Validates the authorization code and PKCE challenge. 2. Stores the
litellm/proxy/_experimental/mcp_server/byok_oauth_endpoints.py:763
↓ 11 callersFunctionc
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:1
↓ 11 callersFunctionc
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 11 callersMethodcall_tool
Call an MCP Tool.
litellm/experimental_mcp_client/client.py:523
↓ 11 callersMethodcall_tool
Call a tool with the given name and arguments Args: server_name: Server name name: Tool name arg
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:3449
↓ 11 callersMethodclearTimeout
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:143
↓ 11 callersFunctionclearTokenCookies
()
ui/litellm-dashboard/src/utils/cookieUtils.ts:27
↓ 11 callersFunctioncreate_mock_router
Helper function to create a mock router with fallback configurations.
tests/test_litellm/proxy/auth/test_model_checks_fallbacks.py:5
↓ 11 callersFunctiondecrypt_global_env_var_values
Decrypt ``scope="global"`` env var values in place after reading the DB. Accepts ``MCPEnvVar`` models (``LiteLLM_MCPServerTable``) or plain dicts
litellm/proxy/_experimental/mcp_server/db.py:72
↓ 11 callersFunctione5
()
litellm/proxy/_experimental/out/_next/static/chunks/00p.gft-l.6p..js:1
↓ 11 callersFunctione5
()
litellm/proxy/_experimental/out/_next/static/chunks/01xm1xt.gmrff.js:1
↓ 11 callersFunctioneN
(t,r,a)
litellm/proxy/_experimental/out/_next/static/chunks/0~0su3wi_7f6-.js:1
↓ 11 callersFunctioneP
(e)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 11 callersFunctioneo
()
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 11 callersFunctioneu
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 11 callersMethodexchange_token
Exchange *subject_token* for a scoped access token. Returns the exchanged ``access_token`` string (suitable for a ``Bearer`` header).
litellm/proxy/_experimental/mcp_server/auth/token_exchange.py:69
↓ 11 callersFunctionez
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:106
↓ 11 callersFunctionf
()
litellm/proxy/_experimental/out/_next/static/chunks/05btv.l5gro_..js:10
↓ 11 callersFunctionfactory
()
tests/test_litellm/llms/custom_httpx/test_aiohttp_transport.py:396
↓ 11 callersMethodfilter_analyze_results_by_score
Drop detections that fall below configured per-entity score thresholds or match an entity type in the deny list.
litellm/proxy/guardrails/guardrail_hooks/presidio.py:518
↓ 11 callersMethodfind_and_validate_specific_team_id
Find and validate specific team ID from team_id_jwt_field or team_alias_jwt_field
litellm/proxy/auth/handle_jwt.py:1189
↓ 11 callersFunctionfunction_setup
( original_function: str, rules_obj, start_time, *args, **kwargs )
litellm/utils.py:727
↓ 11 callersFunctiongetProviderLogoAndName
(providerValue: string)
ui/litellm-dashboard/src/components/provider_info_helpers.tsx:313
↓ 11 callersMethodget_agent_by_id
Get an agent by its ID from the database
litellm/proxy/agent_endpoints/agent_registry.py:391
↓ 11 callersMethodget_aws_region_name_for_non_llm_api_calls
Get the AWS region name for non-llm api calls. LLM API calls check the model arn and end up using that as the region name.
litellm/llms/bedrock/base_aws_llm.py:642
↓ 11 callersFunctionget_azure_ad_token_provider
Get Azure AD token provider based on Service Principal with Secret workflow. Based on: https://github.com/openai/openai-python/blob/main/exa
litellm/secret_managers/get_azure_ad_token_provider.py:34
↓ 11 callersMethodget_base_model
(model: str)
litellm/llms/xai/common_utils.py:67
↓ 11 callersFunctionget_base_prompt_id
Extract the base prompt ID by stripping the version suffix if present. Args: prompt_id: Prompt ID that may include version suffix (e
litellm/proxy/prompts/prompt_endpoints.py:39
← previousnext →1,401–1,500 of 68,141, ranked by callers