MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunctionget_async_asgi_client
( app: ASGIApp, root_path: str = "", client: tuple[str, int] | None = None )
litellm/llms/custom_httpx/asgi_handler.py:35
↓ 3 callersMethodget_async_http_client
( cls, shared_session: Optional["ClientSession"] = None, )
litellm/llms/openai/common_utils.py:467
↓ 3 callersMethodget_async_streaming_response_iterator
( self, model: str, httpx_response: httpx.Response, request_body: dict[str, ob
litellm/llms/bigmodel/messages/transformation.py:136
↓ 3 callersMethodget_auth_headers
(self)
litellm/main.py:1430
↓ 3 callersFunctionget_authenticated_browser_user_id
(request: Request)
litellm/proxy/mcp_server/byok_oauth_endpoints.py:178
↓ 3 callersFunctionget_available_content_categories
Return available content categories for UI display. Includes categories defined in .yaml/.yml files and in .json files (e.g. harm_toxic_
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/patterns.py:218
↓ 3 callersMethodget_available_prompts
Return prompt IDs. Prefer already-loaded templates in memory to avoid unnecessary network calls (and to make tests deterministic).
litellm/integrations/gitlab/gitlab_prompt_manager.py:467
↓ 3 callersFunctionget_aws_partition
(aws_region_name: str | None)
litellm/litellm_core_utils/aws_partition.py:29
↓ 3 callersMethodget_aws_security_credentials
Return current AWS credentials for the GCP token exchange.
litellm/llms/vertex_ai/aws_credentials_supplier.py:42
↓ 3 callersMethodget_banner
(self)
litellm/models/user_banner.py:46
↓ 3 callersFunctionget_base_model_for_pricing
Helper function for calculating together ai pricing. Returns: - str: model pricing category if mapped else received model name
litellm/llms/fireworks_ai/cost_calculator.py:21
↓ 3 callersMethodget_binary
(self)
litellm/llms/pi/harness/transformation.py:448
↓ 3 callersFunctionget_bundled_model_cost_map
()
litellm/utils.py:9826
↓ 3 callersMethodget_by_id
Get a cached prompt JSON by prompt ID (relative to prompts_path).
litellm/integrations/gitlab/gitlab_prompt_manager.py:735
↓ 3 callersMethodget_cache
(self, *, key: str)
litellm/litellm_core_utils/oauth_token_exchange.py:32
↓ 3 callersMethodget_cache
(self, key: str)
litellm/llms/github_copilot/per_user_auth.py:52
↓ 3 callersMethodget_cache
(self, key, **kwargs)
litellm/caching/qdrant_semantic_cache.py:323
↓ 3 callersMethodget_cache_logic
Common get cache logic across sync + async implementations
litellm/caching/caching.py:637
↓ 3 callersMethodget_cache_with_similarity
( &self, _: &str, _: &Self::Context, )
litellm-rust/crates/cache-response/tests/response.rs:119
↓ 3 callersMethodget_cached_oauth_m2m_token
( self, api_base: str, client_id: str, client_secret: str, *,
litellm/llms/databricks/common_utils.py:309
↓ 3 callersFunctionget_callback_identifier
Get the callback identifier string, handling both strings and objects. This function extracts a string identifier from a callback, which can
litellm/proxy/health_endpoints/_health_endpoints.py:245
↓ 3 callersMethodget_callback_str_from_class_type
Get the callback string from the class type. Args: class_type: The class type to find the string for Returns:
litellm/litellm_core_utils/custom_logger_registry.py:156
↓ 3 callersMethodget_chat_completion_prompt
( self, model: str, messages: list[AllMessageValues], non_default_params: dict
litellm/integrations/humanloop.py:146
↓ 3 callersMethodget_chat_completion_prompt
( self, model, messages, non_default_params, promp
tests/unit/litellm_core_utils/test_litellm_logging.py:9919
↓ 3 callersFunctionget_cimd_document_url
()
litellm/proxy/mcp_server/oauth_utils.py:168
↓ 3 callersMethodget_combined_thinking_content
( self, chunks: Sequence["_ThinkingChunk"] )
litellm/litellm_core_utils/streaming_chunk_builder_utils.py:786
↓ 3 callersMethodget_complete_file_url
Get the complete S3 URL for the file upload request
litellm/llms/bedrock/files/transformation.py:690
↓ 3 callersMethodget_complete_url
( self, model: str, api_base: str | None, litellm_params: dict, # mutable-ok:
litellm/llms/hosted_vllm/image_edit/transformation.py:29
↓ 3 callersMethodget_complete_url
If api_base is not provided, use the default ModelScope /chat/completions endpoint.
litellm/llms/modelscope/chat/transformation.py:78
↓ 3 callersMethodget_complete_url
Get complete URL for Anthropic Skills API
litellm/llms/anthropic/skills/transformation.py:69
↓ 3 callersMethodget_complete_url
( self, api_base: str | None, api_key: str | None, model: str, optiona
litellm/llms/oci/chat/transformation.py:555
↓ 3 callersMethodget_complete_url
(self, api_base: str, model: str)
litellm/llms/strands_decider/decisions/transformation.py:111
↓ 3 callersMethodget_complete_url
( self, api_base: str | None, api_key: str | None, model: str, optiona
litellm/llms/databricks/messages/transformation.py:154
↓ 3 callersMethodget_complete_url
( self, api_base: str | None, api_key: str | None, model: str, optiona
litellm/llms/voyage/embedding/transformation_contextual.py:53
↓ 3 callersMethodget_complete_url
( self, api_base: str | None, litellm_params: dict, )
litellm/llms/openrouter/responses/transformation.py:133
↓ 3 callersMethodget_complete_url
( &self, api_base: Option<&str>, model: &str, params: &LitellmParams,
litellm-rust/crates/llms/src/bedrock_mantle/messages/transformation.rs:97
↓ 3 callersMethodget_config_attachments
Get the attachments loaded from config.yaml. Returns: Tuple of config-defined PolicyAttachment objects
litellm/proxy/policy_engine/attachment_registry.py:236
↓ 3 callersMethodget_config_class
(cls, model: str | None)
litellm/llms/bedrock/image_generation/image_handler.py:68
↓ 3 callersMethodget_config_guardrail_by_id
Get a config-owned in-memory guardrail by its ID, or None. Mirrors the fallback in get_guardrail_info: a DB-sourced in-memory entry
litellm/proxy/guardrails/guardrail_registry.py:1008
↓ 3 callersFunctionget_coroutine_checker
Get the cached coroutine checker instance, initializing if needed.
litellm/litellm_core_utils/cached_imports.py:33
↓ 3 callersMethodget_count_tokens_headers
The count-tokens headers around a resolved Anthropic auth header (``AnthropicModelInfo.get_auth_header``): x-api-key for a static key, an Auth
litellm/llms/anthropic/count_tokens/transformation.py:431
↓ 3 callersMethodget_credentials
(self)
tests/unit/test_redis.py:53
↓ 3 callersMethodget_credentials_for_vector_store
Get the credentials for a vector store Returns a dictionary of unpacked credentials for the vector store to use for the request
litellm/vector_stores/vector_store_registry.py:548
↓ 3 callersFunctionget_custom_logger_compatible_class
( logging_integration: str, )
litellm/litellm_core_utils/litellm_logging.py:6595
↓ 3 callersMethodget_data
(self, table_name, query_type, **kwargs)
tests/unit/proxy/common_utils/test_reset_budget_job.py:172
↓ 3 callersFunctionget_decisions_provider_config
(model: str, custom_llm_provider: str)
litellm/decisions/call.py:223
↓ 3 callersFunctionget_default_end_user_budget
Fetches the default end user budget from the database. ``budget_id`` selects the budget row; when omitted the proxy-wide ``litellm.max_e
litellm/proxy/auth/auth_checks.py:1746
↓ 3 callersFunctionget_default_limiter
()
tests/e2e/cli_harness/rate_limiter.py:99
↓ 3 callersMethodget_default_unvicorn_init_args
Get the arguments for `uvicorn` worker
litellm/proxy/proxy_cli.py:407
↓ 3 callersMethodget_deployment_model_for_cost
The provider-qualified model to price against. On a batch retrieve both self.model and litellm_params["model"] can be unset, and self
litellm/litellm_core_utils/litellm_logging.py:1211
↓ 3 callersMethodget_discovery_document
Override to support custom endpoints via environment variables. Falls back to default Microsoft endpoints if not set.
litellm/proxy/management_endpoints/sso/custom_microsoft_sso.py:55
↓ 3 callersMethodget_dynamic_langfuse_logging_config
This function is used to get the Langfuse logging config to use for a given request. It checks if the dynamic parameters are provide
litellm/integrations/langfuse/langfuse_handler.py:123
↓ 3 callersMethodget_effective_policies
Return effective input_policy per tool from in-memory state. If tool is in key or team blocked_tools -> "blocked", else global input_
litellm/proxy/db/tool_registry_writer.py:466
↓ 3 callersMethodget_endpoint_type
(url: str, custom_llm_provider: str | None = None)
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:461
↓ 3 callersMethodget_error_class
(self, error_message: str, status_code: int, headers: dict | httpx.Headers)
litellm/llms/replicate/chat/transformation.py:140
↓ 3 callersMethodget_error_class
(self, error_message: str, status_code: int, headers: dict | httpx.Headers)
litellm/llms/gemini/videos/transformation.py:624
↓ 3 callersMethodget_error_class
(self, error_message: str, status_code: int, headers: dict | httpx.Headers)
litellm/llms/vertex_ai/videos/transformation.py:844
↓ 3 callersMethodget_error_class
(self, error_message, status_code, headers)
litellm/llms/sap/embed/transformation.py:118
↓ 3 callersMethodget_error_information_for_logging_payload
( metadata: dict, original_exception: Exception | None, error_str: str | None, )
litellm/litellm_core_utils/litellm_logging.py:7475
↓ 3 callersFunctionget_fal_ai_image_edit_config
Get the appropriate Fal AI image edit configuration based on the model. Args: model: The Fal AI model name (e.g., "openai/gpt-image-
litellm/llms/fal_ai/image_edit/__init__.py:11
↓ 3 callersFunctionget_file_extension_from_mime_type
(mime_type: str)
litellm/types/files.py:157
↓ 3 callersMethodget_file_ids_from_messages
Gets file ids from messages
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:1912
↓ 3 callersFunctionget_file_mime_type_from_extension
(extension: str)
litellm/types/files.py:180
↓ 3 callersMethodget_file_search_tool_call
(kwargs: Mapping[str, object])
litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py:900
↓ 3 callersMethodget_filtered_registry
Get registry filtered by client IP access control. Args: client_ip: Optional client IP. When provided, non-public server
litellm/proxy/mcp_server/mcp_server_manager.py:7549
↓ 3 callersFunctionget_filtered_server_tools
( server: MCPServer, *, context: OperationContext, allowed_mcp_servers: Sequence[MCPServer],
litellm/proxy/mcp_server/catalog.py:829
↓ 3 callersMethodget_finish_reason_mapping
Return Dictionary of Gemini/Vertex AI finish reasons and their OpenAI-compatible mappings.
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:2087
↓ 3 callersMethodget_flux2_image_generation_url
Constructs the complete URL for Azure AI FLUX 2 image generation. FLUX 2 models on Azure AI use a different URL pattern than standar
litellm/llms/azure_ai/image_generation/flux_transformation.py:23
↓ 3 callersMethodget_frozen_credentials
(self)
tests/unit/test_redis_credential_provider.py:18
↓ 3 callersFunctionget_gemini_url
Build the Gemini API URL for the given mode. The API key is NOT included in the URL. Callers must pass it via the ``x-goog-api-key`` header i
litellm/llms/vertex_ai/common_utils.py:617
↓ 3 callersMethodget_generic_data
Generic implementation of get data. Self-heals across a single transient transport blip via `call_with_db_reconnect_retry`:
litellm/proxy/utils.py:6020
↓ 3 callersMethodget_generic_data
(self, key: str, value: str, table_name: str)
tests/unit/proxy/common_utils/test_registry_read_through.py:574
↓ 3 callersFunctionget_global_spend_report
Get Daily Spend per Team, based on specific startTime and endTime. Per team, view usage by each key, model [ { "group-by-
litellm/proxy/spend_tracking/spend_management_endpoints.py:1456
↓ 3 callersMethodget_group_ids_from_service_principal
Gets the groups belonging to the Service Principal Application Service Principal Id is an `Enterprise Application` in Azure AD
litellm/proxy/management_endpoints/ui_sso.py:4985
↓ 3 callersMethodget_guardrail_names
Get the list of guardrail names configured for a passthrough endpoint.
litellm/proxy/pass_through_endpoints/passthrough_guardrails.py:88
↓ 3 callersMethodget_guardrails_messages_for_call_type
Returns the messages for the given call type and data
litellm/integrations/custom_guardrail.py:1827
↓ 3 callersMethodget_header_column
(self, provider: str)
tests/unit/test_anthropic_beta_headers_filtering.py:64
↓ 3 callersMethodget_health_check_cache_key
Get the Redis key for health check results cache.
litellm/proxy/health_check_utils/shared_health_check_manager.py:64
↓ 3 callersFunctionget_health_check_document
( model: &str, custom_llm_provider: Option<&str>, )
litellm-rust/crates/inference-ocr/src/provider_config.rs:205
↓ 3 callersMethodget_health_check_status
Get the current status of health check coordination. Returns: Dict containing status information
litellm/proxy/health_check_utils/shared_health_check_manager.py:362
↓ 3 callersMethodget_hidden_params
( hidden_params: dict | None, )
litellm/litellm_core_utils/litellm_logging.py:7311
↓ 3 callersFunctionget_hidden_unhealthy_model_names
Model names to hide from a listing, empty when the filter is off. Empty is also the fail-open answer whenever the router cannot report health
litellm/proxy/common_utils/healthy_model_filter.py:60
↓ 3 callersMethodget_incoming_bearer_token
(headers: Mapping[str, str])
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:1866
↓ 3 callersFunctionget_input_sequence_length_bucket
(prompt_tokens: object)
litellm/types/integrations/prometheus.py:174
↓ 3 callersMethodget_install_hint
(self)
litellm/llms/pi/harness/transformation.py:451
↓ 3 callersMethodget_issuer_config
(self, issuer: str | None)
litellm/proxy/_types.py:5187
↓ 3 callersMethodget_job
(self, job_id: str, /)
litellm/proxy/openai_files_endpoints/common_utils.py:1595
↓ 3 callersMethodget_json_schema_from_pydantic_object
Override to use Pydantic's model_json_schema() instead of OpenAI's to_strict_json_schema(). OpenAI's to_strict_json_schema()
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:799
↓ 3 callersMethodget_json_schema_from_pydantic_object
(self, response_format: type[BaseModel] | dict | None)
litellm/llms/base_llm/chat/transformation.py:125
↓ 3 callersFunctionget_key_object
(**kwargs: object)
tests/unit/proxy/db/test_log_db_metrics.py:97
↓ 3 callersFunctionget_key_tag_rpm_limit
Get the per-request-tag rpm limit configured on a given api key. The returned dict is keyed by request tag, so each tag/group tracked on
litellm/proxy/auth/auth_utils.py:1732
↓ 3 callersMethodget_litellm_api_key_from_headers
Get the Litellm API key from the headers using case-insensitive lookup 1. Check if `x-litellm-api-key` is in the headers 2.
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:1932
↓ 3 callersMethodget_litellm_internal_jobs_user_api_key_auth
Returns a `UserAPIKeyAuth` object for internal LiteLLM jobs like key rotation. This is used to track actions performed by automated
litellm/types/proxy/auth/user_api_key_auth.py:305
↓ 3 callersMethodget_local
(&self, key: &str)
litellm-rust/crates/python-bridge/src/redis/store/auth_cache.rs:220
↓ 3 callersFunctionget_managed_vector_store_rows_by_uuids
Fetch managed vector store rows by their internal UUIDs. Follows the get_team_object / get_key_object / get_object_permission pattern: c
litellm/proxy/auth/auth_checks.py:4506
↓ 3 callersMethodget_many
(self, keys: Sequence[str], send: NativeSend)
litellm/redis/stores/auth_cache/handle.py:24
↓ 3 callersMethodget_many_sync
(self, counters: Sequence[UsageCounter])
litellm/redis/stores/router_usage/__init__.py:48
↓ 3 callersMethodget_mapped_headers
Get mapping of input headers to provider-specific headers.
tests/unit/test_anthropic_beta_headers_filtering.py:79
↓ 3 callersMethodget_mcp_client_side_auth_header_name
Get the header name used to pass the MCP auth header to the MCP server By default litellm will check for the header `x-mcp-auth` by
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:1909
↓ 3 callersFunctionget_mcp_server_ids_from_access_groups
Collect MCP server IDs from unified access groups. MCPs are matched by server ID.
litellm/proxy/auth/auth_checks.py:4825
← previousnext →27,301–27,400 of 202,479, ranked by callers