Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
68,180 in github.com/BerriAI/litellm
⨍
Functions
68,180
◇
Types & classes
10,037
↳
Endpoints
1,734
↓ 8 callers
Function
ensure_unique_openapi_operation_ids
( openapi_schema: Dict[str, Any], reserved_operation_ids: Optional[Set[str]] = None, )
litellm/proxy/proxy_server.py:1086
↓ 8 callers
Function
ew
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 8 callers
Method
extract_fields
Extract field values from data using JSONPath-like expressions. Supports simple expressions like: - "query" -> data["query"]
litellm/proxy/pass_through_endpoints/jsonpath_extractor.py:16
↓ 8 callers
Function
extract_images_from_message
Extract images from a message. For data URLs (e.g., "data:image/png;base64,iVBOR..."), only the base64 data portion is extracted. This i
litellm/litellm_core_utils/prompt_templates/common_utils.py:1530
↓ 8 callers
Function
extract_model_id_from_unified_id
Extract model ID from a unified resource ID. Args: unified_id: The unified resource ID (decoded or encoded) Returns: Mo
litellm/llms/base_llm/managed_resources/utils.py:183
↓ 8 callers
Function
ey
(e,t,n,r)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 8 callers
Function
f
()
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 8 callers
Method
fetch
(e)
litellm/proxy/_experimental/out/_next/static/chunks/02813b2b-kz98.js:8
↓ 8 callers
Method
find_by_id
(self, team_id: str, id_field: str = "team_id")
litellm/repositories/team_repository.py:49
↓ 8 callers
Method
find_team_with_model_access
Find first team with access to the requested model
litellm/proxy/auth/handle_jwt.py:1315
↓ 8 callers
Function
fromURIReference
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callers
Function
gen
()
tests/test_litellm/caching/test_redis_cache.py:819
↓ 8 callers
Method
generate
Generate an API key based on the provided data. Docs: https://docs.litellm.ai/docs/proxy/virtual_keys Args: mod
litellm/proxy/client/keys.py:109
↓ 8 callers
Function
getExtensions
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callers
Function
getLocalStorageItem
(key: string)
ui/litellm-dashboard/src/utils/localStorageUtils.ts:7
↓ 8 callers
Method
get_access_token
Get access token and project id 1. Check if credentials are already in self._credentials_project_mapping 2. If not, load cre
litellm/llms/vertex_ai/vertex_llm_base.py:840
↓ 8 callers
Method
get_allowed_agents
Get list of allowed agent IDs for the given user/key based on permissions. Returns: List[str]: List of allowed agent IDs
litellm/proxy/agent_endpoints/auth/agent_permission_handler.py:35
↓ 8 callers
Function
get_api_key_metadata
Get api key metadata, falling back to deleted keys table for keys not found in active table. This ensures that key_alias and team_id are preserve
litellm/proxy/management_endpoints/common_daily_activity.py:267
↓ 8 callers
Method
get_available_deployment_for_pass_through
Returns deployments available for pass-through endpoints (based on load balancing strategy) Similar to get_available_deployment, but
litellm/router.py:10680
↓ 8 callers
Method
get_azure_client
( self, api_key: Optional[str], api_base: Optional[str], api_version: Optional
litellm/llms/azure/assistants.py:28
↓ 8 callers
Method
get_bedrock_invoke_provider
Helper function to get the bedrock provider from the model handles 3 scenarions: 1. model=invoke/anthropic.claude-3-5-sonnet
litellm/llms/bedrock/base_aws_llm.py:385
↓ 8 callers
Method
get_cache
(self)
litellm/llms/vertex_ai/context_caching/vertex_ai_context_caching.py:574
↓ 8 callers
Method
get_closest_marker
(self, name: str)
tests/llm_translation/test_vcr_classification.py:77
↓ 8 callers
Function
get_complete_model_list
Logic for returning complete model list for a given key + team pair
litellm/proxy/auth/model_checks.py:180
↓ 8 callers
Method
get_complete_url
Get the complete URL for the RAGFlow API call. Constructs URL based on endpoint type: - Chat: /api/v1/chats_openai/{chat_id}
litellm/llms/ragflow/chat/transformation.py:63
↓ 8 callers
Method
get_config_class
(cls, model: str | None)
litellm/llms/bedrock/image_edit/handler.py:58
↓ 8 callers
Method
get_cost_for_code_interpreter
Calculate cost for code interpreter feature. Azure: $0.03 USD per session (from model cost map) OpenAI: $0.03 USD per sessio
litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py:616
↓ 8 callers
Method
get_cost_for_file_search
" OpenAI: $2.50/1k calls Azure: $0.1 USD per 1 GB/Day (storage-based pricing) Doc: https://platform.openai.com/docs/pricing#
litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py:487
↓ 8 callers
Method
get_deployment_model_info
For a given model id, return the model info 1. Check if model_id is in model info 2. If not, check if litellm model name is
litellm/router.py:8495
↓ 8 callers
Function
get_end_user_id_for_cost_tracking
Used for enforcing `disable_end_user_cost_tracking` param. service_type: "litellm_logging" or "prometheus" - used to allow prometheus only d
litellm/utils.py:8873
↓ 8 callers
Method
get_error_class
Return CometAPI-specific error class
litellm/llms/cometapi/chat/transformation.py:125
↓ 8 callers
Method
get_error_class
( self, error_message: str, status_code: int, headers: Union[dict, httpx.Headers] )
litellm/llms/openai/videos/transformation.py:454
↓ 8 callers
Method
get_error_class
(self, error_message: str, status_code: int, headers: Union[dict, Headers])
litellm/llms/fireworks_ai/common_utils.py:20
↓ 8 callers
Function
get_hidden_params_dict
(response: object)
litellm/router_utils/add_retry_fallback_headers.py:18
↓ 8 callers
Function
get_known_models_from_wildcard
(wildcard_model: str, litellm_params: Optional[LiteLLM_Params] = None)
litellm/proxy/auth/model_checks.py:262
↓ 8 callers
Function
get_logging_caching_headers
(request_data: Dict)
litellm/proxy/common_utils/callback_utils.py:366
↓ 8 callers
Method
get_models
List all models available on the Ollama server via /api/tags endpoint.
litellm/llms/ollama/common_utils.py:93
↓ 8 callers
Function
get_oci_base_url
Return the OCI inference base URL, respecting any explicit api_base override. If ``api_base`` already ends with a fully-formed OCI action path
litellm/llms/oci/common_utils.py:180
↓ 8 callers
Method
get_openai_client
( self, api_key: Optional[str], api_base: Optional[str], timeout: Union[float,
litellm/llms/openai/openai.py:2174
↓ 8 callers
Method
get_optional_params_image_edit
Get optional parameters for the image edit API. Args: model: The model name image_edit_provider_config: The
litellm/images/utils.py:13
↓ 8 callers
Function
get_optional_params_image_gen
( model: Optional[str] = None, n: Optional[int] = None, quality: Optional[str] = None, respons
litellm/utils.py:2917
↓ 8 callers
Function
get_org_object
- Check if org id in proxy Org Table - if valid, return LiteLLM_OrganizationTable object - if not, then raise an error Args:
litellm/proxy/auth/auth_checks.py:2613
↓ 8 callers
Method
get_provider_config
Get the provider configuration for a given custom_llm_provider. Args: custom_llm_provider: The provider identifier (e.g.
litellm/a2a_protocol/providers/config_manager.py:20
↓ 8 callers
Method
get_provider_container_config
( provider: LlmProviders, )
litellm/utils.py:8553
↓ 8 callers
Method
get_provider_model_info
( model: Optional[str], provider: LlmProviders, )
litellm/utils.py:8186
↓ 8 callers
Method
get_provider_specific_headers
Get the provider specific headers for the given custom llm provider. Supports comma-separated provider lists for headers that work a
litellm/litellm_core_utils/get_provider_specific_headers.py:8
↓ 8 callers
Method
get_public_mcp_servers
Return the MCP servers published to the AI Hub via /v1/mcp/make_public. Default (litellm.public_mcp_hub_strict_whitelist=True): mirr
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:3791
↓ 8 callers
Function
get_redis_connection_pool
( **env_overrides, )
litellm/_redis.py:631
↓ 8 callers
Function
get_redis_url_from_environment
()
litellm/_redis.py:289
↓ 8 callers
Method
get_required_headers
Get the required headers for the CountTokens API. Args: api_key: The Anthropic API key Returns: Dic
litellm/llms/anthropic/count_tokens/transformation.py:56
↓ 8 callers
Function
get_response_headers
Sets the Appropriate OpenAI headers for the response and forward all headers as llm_provider-{header} Note: _response_headers Passed here s
litellm/litellm_core_utils/llm_response_utils/get_headers.py:4
↓ 8 callers
Method
get_router_model_id
Extract the router deployment model_id from litellm_params. Checks both litellm_metadata and metadata for model_info.id. Used by cost
litellm/litellm_core_utils/litellm_logging.py:513
↓ 8 callers
Method
get_settings
Get router settings method, returns a dictionary of the settings and their values. For example get the set values for routing_strateg
litellm/router.py:9537
↓ 8 callers
Function
get_str_from_messages
Converts a list of messages to a string
litellm/litellm_core_utils/prompt_templates/common_utils.py:187
↓ 8 callers
Method
get_team_ids_from_jwt
(self, token: dict)
litellm/proxy/auth/handle_jwt.py:248
↓ 8 callers
Method
get_team_info
Get current team information
tests/test_team_members.py:39
↓ 8 callers
Function
get_team_membership
Returns team membership object if user is member of team. Do a isolated check for team membership vs. doing a combined key + team + user + t
litellm/proxy/auth/auth_checks.py:1377
↓ 8 callers
Function
get_team_models
Returns: - List of model name strings - Empty list if no models set - If model_access_groups is provided, only return models that are
litellm/proxy/auth/model_checks.py:139
↓ 8 callers
Function
get_test_client
Create OpenAI client with generated key
tests/openai_endpoints_tests/test_e2e_openai_responses_api.py:21
↓ 8 callers
Method
get_user_email
(self, token: dict, default_value: Optional[str])
litellm/proxy/auth/handle_jwt.py:514
↓ 8 callers
Function
get_user_id_from_request
Get the user id from the request
litellm/proxy/management_endpoints/internal_user_endpoints.py:574
↓ 8 callers
Function
handle_any_messages_to_chat_completion_str_messages_conversion
Handles any messages to chat completion str messages conversion Relevant Issue: https://github.com/BerriAI/litellm/issues/9494
litellm/litellm_core_utils/prompt_templates/common_utils.py:55
↓ 8 callers
Function
i
(e)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 8 callers
Function
i
litellm/proxy/_experimental/out/_next/static/chunks/06x5y8ia4k1mc.js:2
↓ 8 callers
Function
i
litellm/proxy/_experimental/out/_next/static/chunks/0hzdsr8t0ksq..js:2
↓ 8 callers
Function
i_
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 8 callers
Function
ij
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 8 callers
Method
increment_cache
(self, key, value: int, **kwargs)
litellm/caching/disk_cache.py:60
↓ 8 callers
Method
initialize_from_proxy_config
Static method to initialize WebSearchInterceptionLogger from proxy config. Used in callback_utils.py to simplify initialization logi
litellm/integrations/websearch_interception/handler.py:1229
↓ 8 callers
Function
io
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 8 callers
Function
isIndexed
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callers
Method
isObject
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callers
Function
is_anthropic_oauth_key
Check if a value contains an Anthropic OAuth token (sk-ant-oat*).
litellm/llms/anthropic/common_utils.py:47
↓ 8 callers
Method
is_database_service_unavailable_error
True iff the exception means the database could not answer at the infrastructure level (connection refused, socket/interface failure,
litellm/proxy/db/exception_handler.py:142
↓ 8 callers
Method
is_debug_enabled
Check if the client opted into MCP debug mode. Looks for ``x-litellm-mcp-debug: true`` (case-insensitive) in the request hea
litellm/proxy/_experimental/mcp_server/mcp_debug.py:135
↓ 8 callers
Method
is_license_acceptable
Check if a license (or compound SPDX expression) is acceptable.
tests/code_coverage_tests/check_licenses.py:180
↓ 8 callers
Function
is_passthrough_list_route
Return True when this is a GET list route whose results should be served from the DB (user-scoped) rather than forwarded upstream.
litellm/proxy/pass_through_endpoints/managed_id_rewriter.py:787
↓ 8 callers
Function
is_web_search_tool
Check if a tool is a web search tool (native or LiteLLM standard). Detects: - LiteLLM standard: name == "litellm_web_search" - OpenA
litellm/integrations/websearch_interception/tools.py:150
↓ 8 callers
Method
items
(self)
litellm/types/llms/base.py:41
↓ 8 callers
Method
iter_bytes
(self)
tests/test_litellm/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:422
↓ 8 callers
Function
iter_known_server_prefixes
Yield every prefix form that may appear in tool names for ``server``. Always includes the *current* prefix returned by ``get_server_prefix``.
litellm/proxy/_experimental/mcp_server/utils.py:292
↓ 8 callers
Method
json
(self)
tests/llm_translation/test_litellm_proxy_provider.py:276
↓ 8 callers
Function
k
(t)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 8 callers
Function
key_for
(base: &str)
litellm-rust/crates/ai-gateway/src/io/realtime_pool.rs:547
↓ 8 callers
Function
list_guardrail_submissions
List team guardrail submissions. Returns only guardrails with a team_id. Admins see all submissions. Non-admin users see submissions for tea
litellm/proxy/guardrails/guardrail_endpoints.py:798
↓ 8 callers
Method
listing_entries
`(response_id, metadata_lookup_id)` for each listed model, de-duplicated by response_id while preserving order. For team-scoped rows
litellm/proxy/common_utils/model_listing_utils.py:93
↓ 8 callers
Function
make_spend_log_row
Factory for fake LiteLLM_SpendLogs rows.
tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py:286
↓ 8 callers
Method
map_openai_params
( self, non_default_params: dict, optional_params: dict, model: str, d
litellm/llms/azure_ai/image_generation/mai_transformation.py:132
↓ 8 callers
Method
maybe_get_model_id
Get model_id from logging object or request metadata. The router sets model_info.id when selecting a deployment. This tries multiple
litellm/proxy/common_request_processing.py:2723
↓ 8 callers
Method
merge
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callers
Function
mock_request
()
tests/pass_through_unit_tests/test_pass_through_unit_tests.py:43
↓ 8 callers
Function
n
()
litellm/proxy/_experimental/out/_next/static/chunks/0m5k-5fv1ya8x.js:3
↓ 8 callers
Function
n
()
litellm/proxy/_experimental/out/_next/static/chunks/09dh.hm0vr~61.js:3
↓ 8 callers
Method
normalize
Apply all xAI normalization passes in order.
litellm/llms/xai/realtime/transformation.py:71
↓ 8 callers
Function
normalize_request_route
Normalize request routes by replacing dynamic path parameters with placeholders. This prevents high cardinality in Prometheus metrics by col
litellm/proxy/auth/auth_utils.py:558
↓ 8 callers
Function
o
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/05.uhnqp00zd5.js:1
↓ 8 callers
Function
objMap
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callers
Method
onBackground
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:1
↓ 8 callers
Function
onChange
(info)
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/ModelsAndEndpointsView.tsx:185
↓ 8 callers
Function
p
(e)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
← previous
next →
2,301–2,400 of 68,180, ranked by callers