MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersMethodget_error_class
(self, error_message: str, status_code: int, headers: dict | httpx.Headers)
litellm/llms/runwayml/videos/transformation.py:723
↓ 4 callersMethodget_error_class
(self, error_message: str, status_code: int, headers: dict | Headers)
litellm/llms/vertex_ai/files/transformation.py:1413
↓ 4 callersMethodget_error_class
(self, error_message: str, status_code: int, headers: dict | Headers)
litellm/llms/soniox/audio_transcription/transformation.py:250
↓ 4 callersFunctionget_fallback_model_group_for_lookup_groups
First lookup group with a specifically-keyed chain wins; the generic "*" chain applies only after every group missed, so a catch-all cannot s
litellm/router_utils/fallback_event_handlers.py:597
↓ 4 callersMethodget_file_ids_from_responses_tools
Gets file ids from responses API tools parameter. The tools can contain code_interpreter with container.file_ids: [
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:1971
↓ 4 callersFunctionget_file_mime_type_for_file_type
(file_type: FileType)
litellm/types/files.py:176
↓ 4 callersFunctionget_fine_tuning_provider_config
( custom_llm_provider: str, )
litellm/proxy/fine_tuning_endpoints/endpoints.py:52
↓ 4 callersFunctionget_fireworks_forwarded_user_id
(litellm_params: Mapping[str, object])
litellm/llms/fireworks_ai/common_utils.py:60
↓ 4 callersFunctionget_first_json_object
The first record, used to pick a deployment when batch load balancing is on. Read the way the upload validation reads it, since a file it ac
litellm/proxy/openai_files_endpoints/files_endpoints.py:346
↓ 4 callersMethodget_guardrail_by_id_from_db
Get a guardrail by its ID from the database
litellm/proxy/guardrails/guardrail_registry.py:527
↓ 4 callersFunctionget_guardrail_initializer_from_hooks
Get guardrail initializers by discovering them from the guardrail_hooks directory structure. Scans the guardrail_hooks directory for subdire
litellm/proxy/guardrails/guardrail_registry.py:246
↓ 4 callersMethodget_health_check_history
Get health check history with optional filtering
litellm/proxy/utils.py:8304
↓ 4 callersFunctionget_image_mime_type_from_url
Get mime type for common image URLs See gemini mime types: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/image-understandi
litellm/litellm_core_utils/prompt_templates/file_id_utils.py:449
↓ 4 callersFunctionget_initialized_guardrail_with_read_through
(guardrail_name: str)
litellm/proxy/common_utils/registry_read_through.py:349
↓ 4 callersFunctionget_installation_preference
(manifest: Mapping[str, object])
litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py:112
↓ 4 callersFunctionget_io_token_rate_limit_request_kwargs
()
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:129
↓ 4 callersMethodget_json_schema_from_pydantic_object
(self, response_format: type[BaseModel] | dict | None)
litellm/llms/anthropic/chat/transformation.py:1060
↓ 4 callersMethodget_jwt_role
Generic implementation of `get_user_roles` that can be used for both user and team roles. Returns the jwt role from the token.
litellm/proxy/auth/handle_jwt.py:642
↓ 4 callersMethodget_key_dynamic_logging_settings
(user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/litellm_pre_call_utils.py:1261
↓ 4 callersMethodget_latest_health_checks_for_models
Same as ``get_all_latest_health_checks``, bounded to the named models.
litellm/proxy/utils.py:8336
↓ 4 callersFunctionget_litellm_async_redis_cluster_class
Returns a timeout-tolerant ``RedisCluster`` subclass when installed redis-py already recovers node-level connections per-connection (8.x+), else b
litellm/caching/redis_cluster_node_isolation.py:86
↓ 4 callersFunctionget_litellm_model_info
(model: dict = {})
litellm/proxy/proxy_server.py:11117
↓ 4 callersMethodget_mai_image_edit_url
( api_base: str | None, api_version: str | None, )
litellm/llms/azure_ai/image_generation/mai_transformation.py:120
↓ 4 callersMethodget_mai_image_generation_url
( api_base: str | None, api_version: str | None, )
litellm/llms/azure_ai/image_generation/mai_transformation.py:98
↓ 4 callersMethodget_many
`RedisCache.async_batch_get_cache` for keys the caller found missing in memory, one `MGET` on the batch `send` picks, noting the keys Redis lacks as t
litellm-rust/crates/redis-store/src/auth_cache/mod.rs:214
↓ 4 callersMethodget_max_tokens_for_model
Get the max output tokens for a given model. Falls back to DEFAULT_ANTHROPIC_CHAT_MAX_TOKENS (configurable via env var) if model is n
litellm/llms/anthropic/chat/transformation.py:653
↓ 4 callersMethodget_mcp_auth_header_from_headers
Get the header passed to LiteLLM to pass to downstream MCP servers By default litellm will check for the header `x-mcp-auth` by sett
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:1784
↓ 4 callersMethodget_mcp_server_auth_headers_from_headers
Parse server-specific MCP auth headers from the request headers. Looks for headers in the format: x-mcp-{server_alias}-{header_name}
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:1810
↓ 4 callersMethodget_mcp_server_by_id
(self, server_id: str)
tests/unit/proxy/mcp_server/test_server_resolution.py:37
↓ 4 callersFunctionget_mcp_server_submissions
Admin-only endpoint to view all user-submitted MCP servers pending review.
litellm/proxy/management_endpoints/mcp_management_endpoints.py:1729
↓ 4 callersFunctionget_mistral_api_base
Return the Mistral origin without a trailing ``/v1``, so callers can append ``/v1/<route>``.
litellm/llms/mistral/common_utils.py:17
↓ 4 callersMethodget_model_cost_key
Maps the model name a user sends to the key `litellm.model_cost` stores it under, when the two differ. `get_model_info` tries this ke
litellm/llms/base_llm/base_utils.py:81
↓ 4 callersMethodget_model_file_id_mapping
Get model-specific file IDs for a list of proxy file IDs. Returns a dictionary mapping litellm_proxy/ file_id -> model_id -> model_fi
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:2097
↓ 4 callersMethodget_model_from_alias
(self, model: str)
litellm/router_deprecated.py:526
↓ 4 callersFunctionget_model_group_from_litellm_kwargs
(kwargs: dict)
litellm/proxy/common_utils/callback_utils.py:426
↓ 4 callersMethodget_model_id
( self, messages: list[AllMessageValues] | None, tools: Sequence[ChatCompletionToolPar
litellm/router_utils/prompt_caching_cache.py:469
↓ 4 callersMethodget_model_list_from_model_alias
( self, model_name: str | None = None )
litellm/router_deprecated.py:429
↓ 4 callersMethodget_model_response_iterator_for_request
( self, streaming_response: "Iterator[str] | AsyncIterator[str] | ModelResponse", sync
litellm/llms/base_llm/chat/transformation.py:442
↓ 4 callersMethodget_num_retries_from_retry_policy
(self, exception: Exception, model_group: str | None = None)
litellm/router_rust/surface/retries.py:267
↓ 4 callersMethodget_object_id
(self, token: dict, default_value: str | None)
litellm/proxy/auth/handle_jwt.py:694
↓ 4 callersMethodget_object_name
Get the object name for the request. Reads only the first JSONL entry (streamed) for batch files, so a large upload is never
litellm/llms/vertex_ai/files/transformation.py:1200
↓ 4 callersMethodget_openai_client
( self, api_key: str | None, api_base: str | None, timeout: float | httpx.Time
litellm/llms/openai/openai.py:2175
↓ 4 callersMethodget_openai_client
( self, api_key: str | None, api_base: str | None, timeout: float | httpx.Time
litellm/llms/openai/fine_tuning/handler.py:67
↓ 4 callersMethodget_openai_client_cache_key
Creates a cache key for the OpenAI client based on the client initialization parameters
litellm/llms/openai/common_utils.py:396
↓ 4 callersFunctionget_openai_compatible_model_info
( *, model: str, api_base: str, headers: Mapping[str, str], client: AsyncHTTPHandler,
litellm/llms/openai_like/model_info.py:61
↓ 4 callersMethodget_or_try_insert_with
( &mut self, value: &'a T, convert: impl FnOnce(&'a T) -> PyResult<Bound<'py, PyAny>>,
litellm-rust/crates/host-python/src/conversion_cache.rs:18
↓ 4 callersFunctionget_org_object_for_request
( org_id: str, prisma_client: PrismaClient, user_api_key_cache: UserApiKeyCache, parent_otel_s
litellm/proxy/auth/auth_checks.py:4671
↓ 4 callersFunctionget_organization_daily_activity
Get daily activity for specific organizations or all accessible organizations.
litellm/proxy/management_endpoints/organization_endpoints.py:571
↓ 4 callersFunctionget_passthrough_router_request_metadata
Build the request metadata carrying key-level spend attribution and the pre-call budget reservation for a router-model passthrough request.
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:272
↓ 4 callersFunctionget_pattern_metadata
Return pattern metadata for UI display. Returns: List of dictionaries containing pattern name, display_name, category, and descripti
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/patterns.py:159
↓ 4 callersMethodget_pattern_name
Return unique identifier for this violation type
tests/code_coverage_tests/memory_test.py:31
↓ 4 callersMethodget_policy_by_id_from_db
Get a policy by ID from the database. Args: policy_id: The ID of the policy to retrieve prisma_client: The P
litellm/proxy/policy_engine/policy_registry.py:577
↓ 4 callersMethodget_preset_cache_key_from_kwargs
Get the preset cache key from kwargs["litellm_params"] We use _get_preset_cache_keys for two reasons 1. optional params lik
litellm/caching/caching.py:552
↓ 4 callersMethodget_presidio_settings_from_request_data
(self, data: dict)
litellm/proxy/guardrails/guardrail_hooks/presidio.py:1783
↓ 4 callersFunctionget_prompt_info
Get detailed information about a specific prompt by ID, including prompt content 👉 [Prompt docs](https://docs.litellm.ai/docs/proxy/prompt_m
litellm/proxy/prompts/prompt_endpoints.py:478
↓ 4 callersFunctionget_provider_agents_api_config
Return a provider-specific BaseAgentsAPIConfig if the provider has a native agent-creation API, or None otherwise.
litellm/interactions/agents/utils.py:40
↓ 4 callersMethodget_provider_extraction_config
(model: str, provider: LlmProviders)
litellm/utils.py:10419
↓ 4 callersMethodget_provider_image_generation_config
( model: str, provider: LlmProviders, )
litellm/utils.py:11145
↓ 4 callersMethodget_provider_native_response
The provider's own response payload, when `req_format=native` was requested.
litellm/llms/base_llm/ocr/transformation.py:106
↓ 4 callersMethodget_provider_skills_api_config
Get provider-specific Skills API configuration Args: provider: The LLM provider Returns: Provider-s
litellm/utils.py:10788
↓ 4 callersFunctionget_proxy_base_url
Get the proxy base url from the environment variables.
litellm/proxy/utils.py:9950
↓ 4 callersFunctionget_proxy_hook
Factory method to get a proxy hook instance by name
litellm/proxy/hooks/__init__.py:55
↓ 4 callersMethodget_proxy_hook
(self, hook: str)
tests/unit/proxy/management_endpoints/test_prompt_cache_prediction.py:197
↓ 4 callersMethodget_proxy_server_request_from_cold_storage_with_object_key
Get the proxy server request from cold storage using the object key directly. Args: object_key: The S3/GCS object key to
litellm/litellm_core_utils/cold_storage_handler.py:27
↓ 4 callersMethodget_proxy_wide_credentials
(self, custom_llm_provider: str)
litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py:115
↓ 4 callersMethodget_pydantic_schema
Get JSON schema for a request or response model class, including TypedDicts. Args: model_class: Pydantic model class or
litellm/proxy/common_utils/custom_openapi_spec.py:50
↓ 4 callersFunctionget_request_guardrails
Get the request guardrails from the kwargs
litellm/utils.py:755
↓ 4 callersFunctionget_request_ip_address
(request: Request, use_x_forwarded_for: bool | None = False)
litellm/proxy/auth/auth_utils.py:105
↓ 4 callersMethodget_request_method
(request: Request | None)
litellm/proxy/auth/route_checks.py:752
↓ 4 callersMethodget_request_status
Determine if a request was successful or failed based on payload metadata. Args: payload (Union[dict, SpendLogsPayload])
litellm/proxy/utils.py:5875
↓ 4 callersMethodget_required_headers
Get the required headers for the Azure AI Anthropic CountTokens API. Azure AI Anthropic uses Anthropic's native API format, which re
litellm/llms/azure_ai/anthropic/count_tokens/transformation.py:36
↓ 4 callersFunctionget_reserved_counter_keys
(budget_reservation: dict | None)
litellm/proxy/spend_tracking/budget_reservation.py:124
↓ 4 callersFunctionget_resource_owner_scopes
Return ownership scopes that may access a user-created proxy resource. Raw user_id is included for rows created before scope prefixes existe
litellm/litellm_core_utils/resource_ownership.py:17
↓ 4 callersFunctionget_root_cause
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionget_route_relative_request_path
The request path the MCP route shapes are written against: the raw ASGI path with the deployment's ``root_path`` removed. ``scope["path"]`` a
litellm/proxy/mcp_server/oauth_utils.py:278
↓ 4 callersFunctionget_router_settings
Get router configuration and available settings. Returns: - fields: List of all configurable router settings with their metadata (type,
litellm/proxy/management_endpoints/router_settings_endpoints.py:92
↓ 4 callersFunctionget_sagemaker_response_stream_shape
Lazily load and cache the sagemaker-runtime stream shape for the process. Avoids importing botocore (and logging warnings) unless SageMaker
litellm/llms/sagemaker/common_utils.py:161
↓ 4 callersMethodget_search_tool_support
(self, model_name: str, team_id: str | None = None)
litellm/router_deprecated.py:560
↓ 4 callersMethodget_secret
( &self, name: &str, default_value: Option<Secret>, )
litellm-rust/crates/secrets/src/resolver.rs:59
↓ 4 callersMethodget_secret_str
( &'a self, name: &'a str, )
litellm-rust/crates/python-bridge/src/secrets/python.rs:40
↓ 4 callersFunctionget_ssl_verify
Common utility to resolve the SSL verification setting. Prioritizes: 1. Passed-in ssl_verify 2. os.environ["SSL_VERIFY"] 3. litel
litellm/llms/custom_httpx/http_handler.py:370
↓ 4 callersMethodget_sso_login_redirect
Step 1. Call Get Login Redirect for the SSO provider. Send the redirect response to `redirect_url` Args: redirect_url (s
litellm/proxy/management_endpoints/ui_sso.py:3308
↓ 4 callersMethodget_standard_logging_payload_session_id
Returns the end-user/conversation `litellm_session_id` for this request, independent of trace_id. Only populated when `litellm.reque
litellm/litellm_core_utils/litellm_logging.py:7567
↓ 4 callersMethodget_streaming_string_so_far
Get the string so far from the responses so far. ``response.output_text.done`` events carry the whole part in ``text``, while
litellm/llms/openai/responses/guardrail_translation/handler.py:1794
↓ 4 callersMethodget_structured_messages
( self, data: dict[str, object], # mutable-ok: matches the request converters' existing dict
litellm/router_strategy/switchyard_router/translation.py:82
↓ 4 callersMethodget_supported_openai_params
(self, model: str)
litellm/llms/mistral/chat/transformation.py:187
↓ 4 callersMethodget_supported_openai_params
Get supported OpenAI parameters for Bria 3.2.
litellm/llms/fal_ai/image_generation/bria_transformation.py:37
↓ 4 callersMethodget_supported_openai_params
Get the supported OpenAI params for the given model
litellm/llms/cerebras/chat.py:54
↓ 4 callersMethodget_team_dynamic_logging_settings
(user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/litellm_pre_call_utils.py:1267
↓ 4 callersFunctionget_team_object_by_alias
Look up a team by its team_alias (name) in the database. Args: team_alias: The team name/alias to look up prisma_client: Dat
litellm/proxy/auth/auth_checks.py:3874
↓ 4 callersMethodget_token
Get an access token for the specified scope. Args: scope: The OAuth2 scope to request (e.g., "api://my-app/.default")
litellm/proxy_auth/credentials.py:40
↓ 4 callersFunctionget_tool
Return a single tool row by tool_name, with the user owning the key that discovered it.
litellm/proxy/db/tool_registry_writer.py:267
↓ 4 callersMethodget_trace
( self, trace_id: str, scope: TraceScope, trace_ref: str = "", cursor:
litellm/tracing/receiver.py:42
↓ 4 callersFunctionget_ui_credentials
Get UI username and password from environment variables or master key. Args: master_key: Master key for the proxy (used as fallback
litellm/proxy/auth/login_utils.py:136
↓ 4 callersMethodget_unified_file_ids_for_provider_file_ids
( self, provider_file_ids: Sequence[str], user_api_key_dict: UserAPIKeyAuth, )
tests/unit/proxy/vector_store_files_endpoints/test_endpoints.py:67
↓ 4 callersMethodget_user_key_from_request_kwargs
Extract a stable affinity key from request kwargs. Source (proxy): `metadata.user_api_key_hash` for virtual-key callers. JWT-authent
litellm/router_utils/pre_call_checks/deployment_affinity_check.py:304
↓ 4 callersFunctionget_user_role
( user_obj: LiteLLM_UserTable | None, )
litellm/proxy/auth/auth_checks.py:1596
↓ 4 callersFunctionget_vertex_ai_image_generation_config
Get the appropriate image generation config for a Vertex AI model. Routes to the correct transformation class based on the model type: -
litellm/llms/vertex_ai/image_generation/__init__.py:21
↓ 4 callersFunctionget_vertex_ai_location
( config: &VertexConfig, env_lookup: &dyn Fn(&str) -> Option<String>, )
litellm-rust/crates/auth-gcp/src/config.rs:105
↓ 4 callersFunctionget_vertex_ai_lyria_model_info
(model: str)
litellm/llms/vertex_ai/common_utils.py:132
← previousnext →20,401–20,500 of 202,479, ranked by callers