MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions71,069 in github.com/BerriAI/litellm

↓ 24 callersMethodremove
(e)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 24 callersMethodslice
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 24 callersFunctiontN
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 23 callersMethod_map_function
Map OpenAI-style tools/functions to Vertex AI format. Args: value: List of tool definitions optional_params:
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:583
↓ 23 callersFunctionasync_data_generator
( response, user_api_key_dict: UserAPIKeyAuth, request_data: dict, request: Request | None = N
litellm/proxy/proxy_server.py:6906
↓ 23 callersMethodaudio_transcriptions
( self, model: str, audio_file: FileTypes, optional_params: dict, lite
litellm/llms/custom_httpx/llm_http_handler.py:1241
↓ 23 callersFunctioncall_create
( harness: Harness, *, provider: Optional[str] = None, user: Optional[UserAPIKeyAuth] = None,
tests/test_litellm/proxy/batches_endpoints/test_endpoints.py:231
↓ 23 callersMethodcancel_batch
( self, batch_id: str, *, key: str, provider: str | None = None )
tests/e2e/batches/batch_client.py:125
↓ 23 callersFunctioncleanup_router_config_variables
()
litellm/proxy/proxy_server.py:715
↓ 23 callersMethodcommon_processing_pre_call_logic
( self, request: Request, general_settings: dict, user_api_key_dict: UserAPIKe
litellm/proxy/common_request_processing.py:940
↓ 23 callersMethodcreate
(self, data: Dict[str, Any])
tests/test_litellm/repositories/test_repositories.py:74
↓ 23 callersMethodexists
Check if a record exists.
litellm/repositories/base_repository.py:110
↓ 23 callersMethodexit
(self, server_id: str)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_max_concurrent_requests.py:29
↓ 23 callersMethodget_error_class
(self, error_message, status_code, headers)
tests/test_litellm/llms/base_llm/batches/test_transformation.py:87
↓ 23 callersFunctionget_secret_bool
Guarantees response from 'get_secret' is either boolean or none. Used for fixing linting errors. Args: secret_name: The name of the
litellm/secret_managers/main.py:136
↓ 23 callersMethodmatches
(self, path: str)
litellm/proxy/_lazy_features.py:50
↓ 23 callersMethodok
(self)
tests/e2e/e2e_http.py:122
↓ 23 callersMethodraise_for_status
(self)
tests/test_litellm/test_check_licenses.py:29
↓ 23 callersFunctions
()
litellm/proxy/_experimental/out/_next/static/chunks/035i-tbvd3z7s.js:10
↓ 23 callersMethodsetTimeout
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 23 callersFunctionset_body
(harness: Harness, body: Dict[str, Any])
tests/test_litellm/proxy/batches_endpoints/test_endpoints.py:227
↓ 23 callersMethodsetup_canadian_guardrail
Setup guardrail with all Canadian PII patterns (mimics the policy template)
tests/test_litellm/proxy/guardrails/guardrail_hooks/content_filter/test_ca_policy_e2e.py:21
↓ 23 callersFunctionsupports_function_calling
Check if the given model supports function calling and return a boolean value. Parameters: model (str): The model name to be checked.
litellm/utils.py:2290
↓ 23 callersFunctiontA
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 23 callersFunctiontS
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 23 callersFunctiontc
(e)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 23 callersFunctiontm
(e)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 23 callersFunctionto
()
litellm/proxy/_experimental/out/_next/static/chunks/1339tsypbt0.4.js:1
↓ 23 callersFunctionto
()
litellm/proxy/_experimental/out/_next/static/chunks/077lpxhql0wyy.js:1
↓ 23 callersMethodtransform_realtime_response
Keep this state less - leave the state management (e.g. tracking current_output_item_id, current_response_id, current_conversation_id, curren
litellm/llms/gemini/realtime/transformation.py:1143
↓ 23 callersFunctiontv
litellm/proxy/_experimental/out/_next/static/chunks/0nnx~7-7e5t~1.js:1
↓ 23 callersFunctionuseFn
(s=void 0)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 22 callersFunction_codes
(tmp_path, source)
tests/test_litellm/test_check_type_discipline.py:22
↓ 22 callersMethod_get_openai_compatible_provider_info
Get the OpenAI compatible provider info for Baseten
litellm/llms/baseten/chat.py:85
↓ 22 callersMethod_make
(env=None, config_value=None)
tests/test_litellm/integrations/test_opentelemetry.py:763
↓ 22 callersFunction_make_model
(model_id: str, model_name: str = "gpt-4")
tests/test_litellm/router_utils/test_health_check_allowed_fails_integration.py:19
↓ 22 callersFunction_make_response
Build a mock httpx response with the given JSON body.
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_promptguard.py:57
↓ 22 callersMethod_transform_openai_jsonl_content_to_bedrock_jsonl_content
Transforms OpenAI JSONL content to Bedrock batch format Bedrock batch format: { "recordId": "alphanumeric string", "modelInput": {JS
litellm/llms/bedrock/files/transformation.py:626
↓ 22 callersMethod_transform_parts
( parts: List[HttpxPartType], cumulative_tool_call_idx: int, is_function_call: Optiona
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:1575
↓ 22 callersMethod_update_kwargs_before_fallbacks
Adds/updates to kwargs: - num_retries - litellm_trace_id - metadata
litellm/router.py:2773
↓ 22 callersFunctionadapt_messages_to_generic_oci_standard
Convert an OpenAI-format message array to OCI GENERIC format.
litellm/llms/oci/chat/generic.py:168
↓ 22 callersMethodaddObserver
(e)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 22 callersMethodasync_success_handler
Implementing async callbacks, to handle asyncio event loop issues when custom integrations need to use async functions.
litellm/litellm_core_utils/litellm_logging.py:2364
↓ 22 callersFunctioncheck_feature_access_for_user
Raise HTTP 403 if the user's role is blocked from accessing the given feature by the UI settings stored in general_settings. Args:
litellm/proxy/common_utils/rbac_utils.py:17
↓ 22 callersFunctioncreate_audit_log_for_update
Create an audit log for an object.
litellm/proxy/management_helpers/audit_logs.py:196
↓ 22 callersMethodcreate_rate_limit_keys
Create the rate limit keys for the given key and value.
litellm/proxy/hooks/parallel_request_limiter_v3.py:521
↓ 22 callersFunctionderiveErrorMessage
(errorData: any)
ui/litellm-dashboard/src/app/(dashboard)/hooks/router/useRouterFields.ts:23
↓ 22 callersMethoddisconnect
For closing connection on server shutdown
litellm/proxy/db/base_client.py:43
↓ 22 callersFunctionep
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 22 callersMethodgetMutationCache
()
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 22 callersMethodgetValue
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 22 callersMethodget_bedrock_route
Get the bedrock route for the given model.
litellm/llms/bedrock/common_utils.py:892
↓ 22 callersFunctionget_current_spend
Read current spend from the cross-pod spend counter. Reads Redis FIRST (authoritative cross-pod value), not DualCache's async_get_cache
litellm/proxy/proxy_server.py:2045
↓ 22 callersMethodget_data
Check if key valid
litellm/proxy/db/base_client.py:12
↓ 22 callersFunctionget_optional_params_embeddings
( # 2 optional params model: str, user: Optional[str] = None, encoding_format: Optional[str] =
litellm/utils.py:3066
↓ 22 callersFunctionget_request_route
Resolve the request route from the ASGI scope, with ``root_path`` stripped. Prefer this over ``request.url.path`` for any auth, ACL, routing
litellm/proxy/auth/auth_utils.py:516
↓ 22 callersFunctionhandle_streamable_http_mcp
Handle MCP requests through StreamableHTTP.
litellm/proxy/_experimental/mcp_server/server.py:3676
↓ 22 callersFunctionhash_token
(token: str)
litellm/proxy/_types.py:218
↓ 22 callersMethodinfo
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 22 callersMethodmap_openai_params
( self, non_default_params: Dict, optional_params: Dict, model: str, d
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:1085
↓ 22 callersFunctionprometheus_label_factory
Returns a dictionary of label + values for prometheus. Ensures end_user param is not sent to prometheus if it is not supported. When ``
litellm/integrations/prometheus.py:3853
↓ 22 callersMethodsend_alert
Alerting based on thresholds: - https://github.com/BerriAI/litellm/issues/1298 - Responses taking too long - Requests are ha
litellm/integrations/SlackAlerting/slack_alerting.py:1271
↓ 22 callersMethodsetA
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0e9hs7onyj28m.js:1
↓ 22 callersMethodsubscribe
(e)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 22 callersFunctionsupports_httpx_timeout
Helper function to know if a provider implementation supports httpx timeout
litellm/utils.py:2132
↓ 22 callersFunctiontest
()
tests/proxy_unit_tests/test_key_generate_prisma.py:250
↓ 22 callersMethodtranslate_anthropic_messages_to_openai
( self, messages: List[ Union[ AnthropicMessagesUserMessageParam,
litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py:353
↓ 22 callersMethodupdate_environment_variables
( self, litellm_params: Dict, optional_params: Dict, model: Optional[str] = No
litellm/litellm_core_utils/litellm_logging.py:530
↓ 22 callersMethoduse
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 21 callersMethod_build_claims
Build JWT claims for the outbound MCP access token. Args: user_api_key_dict: LiteLLM auth context for the current reques
litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/mcp_jwt_signer.py:653
↓ 21 callersFunction_build_model_response
(content: str)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_xecguard.py:64
↓ 21 callersMethod_callback_capabilities
Inspect ``litellm.callbacks`` once and answer the per-hook capability questions used to short-circuit no-op work on the chat-completi
litellm/proxy/utils.py:1603
↓ 21 callersFunction_enable_aes
(monkeypatch)
tests/test_litellm/proxy/management_endpoints/test_credential_migration.py:36
↓ 21 callersFunction_gate
Call review_gate with safe defaults for the injectable hooks.
tests/test_litellm/test_github_review_gate.py:101
↓ 21 callersMethod_get_client
Returns the appropriate client based on the given deployment, kwargs, and client_type. Parameters: deployment (dict): Th
litellm/router.py:9687
↓ 21 callersFunction_http_response
(status_code: int = 200, json_body: dict | None = None)
tests/test_litellm/llms/vertex_ai/batches/test_handler.py:71
↓ 21 callersFunction_make_env_var_server
Lightweight server stand-in for the per-user env-var endpoints. The handlers only read ``server_id``/``server_name``/``alias``/``env_vars``/
tests/test_litellm/proxy/management_endpoints/test_mcp_management_endpoints.py:4179
↓ 21 callersFunction_make_pr
(**overrides)
tests/test_litellm/test_github_review_gate.py:75
↓ 21 callersFunction_make_request_mock
( method: str, params: dict, request_id: object = "req-1" )
tests/test_litellm/proxy/agent_endpoints/test_a2a_endpoints.py:366
↓ 21 callersFunction_make_response
(payload: Dict[str, Any], status_code: int = 200)
tests/test_litellm/llms/soniox/audio_transcription/test_soniox_audio_transcription_handler.py:22
↓ 21 callersFunction_make_row
Build a Prisma-like row object.
tests/test_litellm/proxy/memory/test_memory_endpoints.py:25
↓ 21 callersFunction_simple_chunk
(model: str = "gpt-4", content: str = "hi")
tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py:48
↓ 21 callersMethod_transform_request
( self, model: str, messages: List[AllMessageValues], optional_params: dict,
litellm/llms/bedrock/chat/converse_transformation.py:1634
↓ 21 callersFunction_transform_request_body
Common transformation logic across sync + async Gemini /generateContent calls.
litellm/llms/vertex_ai/gemini/transformation.py:1085
↓ 21 callersFunction_update_metadata_fields
Helper function to update all metadata fields (both premium and standard). Args: updated_kv: The key-value dict being used for the u
litellm/proxy/management_endpoints/common_utils.py:575
↓ 21 callersMethodaread
(self)
tests/test_litellm/a2a_protocol/providers/watsonx_orchestrate/test_watsonx_orchestrate_transformation.py:86
↓ 21 callersMethodarerank
(self, model: str, **kwargs)
litellm/router.py:3865
↓ 21 callersMethodaretrieve_batch
Iterate through all models in a model group to check for batch Future Improvement - cache the result.
litellm/router.py:5048
↓ 21 callersMethodasync_service_failure_hook
Arize is used mainly for LLM I/O tracing, sending router+caching metrics adds bloat to arize logs
litellm/integrations/arize/arize.py:127
↓ 21 callersMethodbasename
()
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 21 callersMethodbudget_alerts
( self, type: Literal[ "token_budget", "user_budget", "sof
litellm/proxy/utils.py:1824
↓ 21 callersMethodclose
(self)
tests/test_litellm/test_streaming_connection_cleanup.py:129
↓ 21 callersMethodcompletion_function
(self)
tests/llm_translation/base_llm_unit_tests.py:74
↓ 21 callersMethodcopyMetaAndAttributes
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 21 callersMethodcreate
(self, messages, model=None, **kwargs)
litellm/main.py:374
↓ 21 callersMethoddefaultQueryOptions
(e)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 21 callersMethodemit
(self, record: logging.LogRecord)
tests/test_litellm/proxy/proxy_server/test_proxy_config.py:816
↓ 21 callersFunctionemit_cassette_cache_session_banner
Call from ``pytest_terminal_summary``. No-op on xdist workers.
tests/_vcr_conftest_common.py:1997
↓ 21 callersFunctionet
({accessToken:e,token:C,userRole:w,userID:N,premiumUser:k})
litellm/proxy/_experimental/out/_next/static/chunks/00fcsizkvc4hx.js:1
↓ 21 callersFunctioneu
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
← previousnext →601–700 of 71,069, ranked by callers