Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
202,479 in github.com/BerriAI/litellm
⨍
Functions
202,479
◇
Types & classes
26,341
↳
Endpoints
5,595
↓ 3 callers
Method
connect
(self, *args: object, **kwargs: object)
tests/_ws_vcr.py:418
↓ 3 callers
Function
connect_guarded
( deployment: &RedisDeployment, breaker: litellm_circuit_breaker::Breaker, )
litellm-rust/crates/redis-store/tests/support/mod.rs:93
↓ 3 callers
Function
connect_url
(auth: &AwsIamAuth)
litellm-rust/crates/redis-connect/src/sources/aws.rs:64
↓ 3 callers
Function
connected_prisma
(database_url: str | None = None)
tests/integration/_support/prisma_clients.py:14
↓ 3 callers
Method
connection
()
tests/unit/router_strategy/test_complexity_router.py:7422
↓ 3 callers
Method
connection
(&self)
litellm-rust/crates/redis-client/src/connection.rs:327
↓ 3 callers
Function
consent_of
(groups: Iterable[TelemetryGroup])
litellm/telemetry/consent.py:76
↓ 3 callers
Function
constrains_continuation
(params: Mapping[str, object])
litellm/router_utils/pre_call_checks/continuation_prefill_check.py:85
↓ 3 callers
Method
construct_dynamic_otel_headers
Construct dynamic Arize headers from standard callback dynamic params This is used for team/key based logging. Returns:
litellm/integrations/arize/arize.py:291
↓ 3 callers
Method
construct_dynamic_otel_headers
Construct dynamic Langfuse headers from standard callback dynamic params This is used for team/key based logging. Returns:
litellm/integrations/langfuse/langfuse_otel.py:507
↓ 3 callers
Method
construct_request_headers
Construct authorization headers using Vertex AI auth
litellm/integrations/gcs_pubsub/pub_sub.py:69
↓ 3 callers
Function
construct_split_tool_call
(id: str, function_name: str, function_arg_parts: List[str])
tests/unit/llms/anthropic/messages/native/test_parallel_tool_calls.py:56
↓ 3 callers
Function
construct_target_url
Allow user to specify their own project id / location. If missing, use defaults Handle cachedContent scenario - https://github.com/Berr
litellm/llms/vertex_ai/common_utils.py:1287
↓ 3 callers
Method
construct_target_url_with_subpath
Helper function to construct the full target URL with subpath handling. Args: base_target: The base target URL
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:796
↓ 3 callers
Method
constructor
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callers
Method
container_path
Absolute container path; relative paths resolve against workdir.
litellm/harness/sandbox/docker.py:163
↓ 3 callers
Method
contains
(&self, key: &str)
litellm-rust/crates/model-catalog/src/store/mod.rs:216
↓ 3 callers
Function
contains_encrypted_marker
True if any string in value, at any JSON depth, starts with the encrypted-value prefix.
litellm/proxy/guardrails/guardrail_registry.py:115
↓ 3 callers
Function
content_filtered
()
tests/unit/test_router/core/test_parity_regress5_errors.py:60
↓ 3 callers
Function
content_of
The assistant message content of a successful chat response, or None when the body is not a success shape (an error body, or an elided streamed bo
tests/e2e/router/reliability_support.py:405
↓ 3 callers
Function
content_text
Plain text of a LangChain message content (str or content blocks).
litellm/llms/deepagents/harness/transformation.py:132
↓ 3 callers
Function
context
(mcp: RequestContext<RoleServer>)
litellm-rust/crates/gateway-mcp/src/server.rs:150
↓ 3 callers
Function
context
()
litellm-rust/crates/host-python/src/gil.rs:150
↓ 3 callers
Function
context_management_with_edits
(context_management: JsonValue)
litellm/llms/anthropic/common_utils.py:291
↓ 3 callers
Function
context_tree_createNode
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callers
Function
continuation_cap_of
(request_body: RequestBody)
litellm/llms/vertex_ai/gemini/long_decode.py:94
↓ 3 callers
Function
contraction_len
`'(?i:s|t|re|ve|m|ll|d)`, the contraction both encodings spell out. Simple case folding also maps U+017F (long s) onto `s`.
litellm-rust/crates/token-counter-fast/src/scanner.rs:92
↓ 3 callers
Method
control_replica_urls_for
The control replicas a client built for these endpoints polls when its caller names none: this stack's own list for this stack's endpoints, si
tests/e2e/e2e_config.py:79
↓ 3 callers
Method
conversation_ids
(self, response_id: str)
tests/integration/observability/test_otel_conversation_id.py:164
↓ 3 callers
Function
convert_connector_entries
( payload: MCPConnectorImportRequest, )
litellm/proxy/management_endpoints/mcp_connector_import.py:170
↓ 3 callers
Function
convert_custom_tool_format_to_chat_shape
Responses API grammar formats are flat ({"type": "grammar", "definition", "syntax"}); Chat Completions wraps the same fields in a "grammar" o
litellm/litellm_core_utils/prompt_templates/common_utils.py:1051
↓ 3 callers
Function
convert_health_check_to_dict
Convert health check database record to dictionary format
litellm/proxy/health_endpoints/_health_endpoints.py:734
↓ 3 callers
Function
convert_list_message_to_dict
( messages: Sequence[BaseModel | Mapping[str, object]], )
litellm/utils.py:9617
↓ 3 callers
Function
convert_priority_to_percent
Convert priority reservation value to percentage (0.0-1.0). Supports three formats: 1. Plain float/int: 0.9 -> 0.9 (90%) 2. Dict wit
litellm/proxy/hooks/rate_limiter_utils.py:141
↓ 3 callers
Method
convert_skill_to_anthropic_tool
Convert a LiteLLM skill to an Anthropic-style tool (messages API format). Args: skill: The skill from LiteLLM database
litellm/llms/litellm_proxy/skills/prompt_injection.py:279
↓ 3 callers
Method
convert_str_chunk_to_generic_chunk
Convert a string chunk to a GenericStreamingChunk Note: This is used for Cohere pass through streaming logging
litellm/llms/cohere/common_utils.py:184
↓ 3 callers
Function
convert_to_azure_openai_messages
( messages: list[AllMessageValues], )
litellm/litellm_core_utils/prompt_templates/factory.py:1163
↓ 3 callers
Function
convert_to_dict
Converts a message to a dictionary if it's a Pydantic model. Args: message: The message, which may be a Pydantic model or a dictiona
litellm/utils.py:9599
↓ 3 callers
Method
convert_tool_use_to_openai_format
Convert Anthropic tool_use format to OpenAI ChatCompletionToolCallChunk format. Args: anthropic_tool_content: Anthropic
litellm/llms/anthropic/chat/transformation.py:669
↓ 3 callers
Function
convert_upload_files_to_file_data
Convert FastAPI UploadFile objects to file data tuples for litellm. Converts UploadFile objects to tuples of (filename, content, content_typ
litellm/proxy/common_utils/http_parsing_utils.py:617
↓ 3 callers
Function
cool_group
(rig: Rig, name: str)
tests/integration/spend/test_router_cooldown_failure_row.py:189
↓ 3 callers
Method
cooldown_status
The status Python's cooldown rules read: the provider's, else 500.
litellm-rust/crates/router-core/src/error.rs:447
↓ 3 callers
Function
cooled
(core: RouterCore, *ids: str)
tests/unit/test_router/core/test_parity_regress5_streams.py:68
↓ 3 callers
Function
coordination_config
(server: &RedisServer)
litellm-rust/crates/gateway/src/redis/mod.rs:518
↓ 3 callers
Function
copyProps
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callers
Method
copy_for_new_call
One turn of a long-lived connection: the connection's deployment, key and metadata under its own call id, start time and chunk buffers, so the
litellm/litellm_core_utils/litellm_logging.py:956
↓ 3 callers
Method
cost_by_service
(self)
tests/integration/observability/_ternary_support.py:67
↓ 3 callers
Function
cost_entry
`model_cost.get(key)`: `None` when the key is absent, else the entry as stored.
litellm-rust/crates/router-core/src/model_info.rs:115
↓ 3 callers
Function
cost_map_backend_model
The model a deployment's prices are inherited from (``_cost_map_backend_model``).
litellm/router_rust/surface/registry.py:381
↓ 3 callers
Function
cost_map_environment
(upstream: str)
tests/integration/_support/workers.py:137
↓ 3 callers
Method
count
(self, where: Mapping[str, object] | None = None)
tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_writes.py:45
↓ 3 callers
Method
count
(self, where: tuple[object, ...])
tests/unit/proxy/list_api/test_list_framework.py:98
↓ 3 callers
Function
count_by_rule
(violations: Sequence[Violation])
scripts/test_quality_gate.py:91
↓ 3 callers
Function
count_by_rule
(violations: Sequence[Violation])
scripts/type_discipline_gate.py:101
↓ 3 callers
Function
count_by_rule
(violations: Sequence[Violation])
scripts/openapi_docs_gate.py:90
↓ 3 callers
Function
count_cache_plan
( model: str, api_key: str, plan: PromptCachePlan, token_counter: TokenCounter = count_prompt_
litellm/llms/anthropic/prompt_cache_prediction.py:571
↓ 3 callers
Function
count_context_edits
( context_management: CountContextManagement | None, tools: Sequence[Mapping[str, object]] | None,
litellm/llms/anthropic/messages/context_management/inference_view.py:38
↓ 3 callers
Function
count_embedding_inputs
(input: str | Sequence[object])
litellm/router_utils/embedding_batch_size_check.py:31
↓ 3 callers
Function
count_input_tokens
Input-token count per model, sharing one native count across models that select the same tokenizer.
litellm/proxy/spend_tracking/input_tokens.py:64
↓ 3 callers
Method
count_reasoning_tokens
(self, response: ModelResponse)
litellm/litellm_core_utils/streaming_chunk_builder_utils.py:918
↓ 3 callers
Function
count_request_fields
(count_body: Mapping[str, JsonValue])
tests/integration/providers/_count_tokens_system_lift.py:115
↓ 3 callers
Method
count_success
`sync_deployment_callback_on_success`: count a success against `id`, configured or not, and return the counter's key.
litellm-rust/crates/router-core/src/lib.rs:487
↓ 3 callers
Function
count_tokens
Count tokens for Anthropic Messages API format. This endpoint follows the Anthropic Messages API token counting specification. It ac
litellm/proxy/anthropic_endpoints/endpoints.py:326
↓ 3 callers
Method
count_tokens
( self, model_to_use: str, messages: Sequence[Mapping[str, object]] | None, co
litellm/llms/bedrock/count_tokens/bedrock_token_counter.py:175
↓ 3 callers
Function
count_tokens_publisher
(model: str)
litellm/llms/vertex_ai/vertex_ai_partner_models/count_tokens/handler.py:56
↓ 3 callers
Method
count_unique
(frame: pl.DataFrame, column: str)
litellm/integrations/focus/export_engine.py:184
↓ 3 callers
Function
counted
(metrics: JsonValue)
tests/integration/_support/daily_activity.py:265
↓ 3 callers
Function
counter
(load: JsonLoader)
litellm-rust/crates/token-counter/tests/token_counter.rs:16
↓ 3 callers
Function
cr
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 3 callers
Function
create
(team_id: str)
tests/unit/proxy/management_endpoints/test_ui_sso.py:11364
↓ 3 callers
Function
create
(package: str, source: str)
tests/rust-python-harness/conftest.py:20
↓ 3 callers
Method
create
Create a new credential. Args: credential_name (str): Name of the credential credential_info (Dict[str, Any]
litellm/proxy/client/credentials.py:74
↓ 3 callers
Method
create
(self, data: Mapping[str, object])
litellm/proxy/policy_engine/policy_registry.py:110
↓ 3 callers
Method
create
(self, data: Mapping[str, object])
litellm/proxy/management_endpoints/organization_endpoints.py:128
↓ 3 callers
Method
create
(self, *, data: _EventCreateData)
litellm/proxy/management_endpoints/workflow_management_endpoints.py:151
↓ 3 callers
Method
create
Return a destination implementation for the requested provider.
litellm/integrations/focus/destinations/factory.py:20
↓ 3 callers
Method
create
(self, data: Dict[str, Any])
tests/unit/repositories/test_repositories.py:90
↓ 3 callers
Method
createAndFill
(e=null,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 3 callers
Function
createAriaAnswerDocument
(question: string, answerElement: HTMLElement)
ui/litellm-dashboard/src/components/liteadmin/answerExport.ts:187
↓ 3 callers
Function
createBlobPreviewUrl
(file: File)
ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatUI.tsx:545
↓ 3 callers
Function
createChatDisplayMessage
( inputMessage: string, hasFile: boolean, filePreviewUrl?: string, fileName?: string, )
ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatImageUtils.tsx:45
↓ 3 callers
Function
createHtmlReadyId
(s,o="_")
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callers
Function
createLineElement
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callers
Function
createMultimodalMessage
( inputMessage: string, file: File, )
ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ResponsesImageUtils.tsx:17
↓ 3 callers
Method
createResult
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 3 callers
Function
createSelectionColumn
( options: SelectionColumnOptions<TData> = {}, )
ui/litellm-dashboard/src/components/shared/DataTable/DataTableSelectionColumn.tsx:41
↓ 3 callers
Function
create_always_5xx_deployment
Fronts an upstream group that cannot answer, so every call is a real 500, benched on its first InternalServerError.
tests/e2e/router/reliability_support.py:222
↓ 3 callers
Method
create_assistants
( self, api_key: str | None, api_base: str | None, timeout: float | httpx.Time
litellm/llms/openai/openai.py:2593
↓ 3 callers
Function
create_batch
Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports
litellm/proxy/batches_endpoints/endpoints.py:263
↓ 3 callers
Method
create_bedrock_guardrail
Register a Bedrock guardrail, opted out of `default_on` by default. `default_on=True` applies the guardrail to every request the proxy serves
tests/e2e/guardrails/guardrails_client.py:192
↓ 3 callers
Function
create_cache_write_task
(write_factory: Callable[[], Awaitable[None]])
litellm/caching/caching_handler.py:292
↓ 3 callers
Method
create_content_part_added_event
(self)
litellm/responses/litellm_completion_transformation/streaming_iterator.py:820
↓ 3 callers
Method
create_credential
(self, body: CredentialCreateBody)
tests/e2e/proxy_client.py:959
↓ 3 callers
Method
create_gauge
(self, service: str, type_of_request: str)
litellm/integrations/prometheus_services.py:189
↓ 3 callers
Function
create_genai_metrics
(meter: Meter)
litellm/integrations/otel/plumbing/metrics.py:70
↓ 3 callers
Function
create_invitation_for_user
Create an invitation for the user to onboard to LiteLLM Admin UI.
litellm/proxy/management_helpers/user_invitation.py:11
↓ 3 callers
Method
create_logging_object
( results: Sequence[Mapping[str, object]], litellm_model_name: str | None = None )
litellm/cost_calculator.py:3634
↓ 3 callers
Method
create_logging_realtime_object
( usage: Usage, results: OpenAIRealtimeStreamList )
litellm/cost_calculator.py:3558
↓ 3 callers
Method
create_many
(self, data: list[dict], skip_duplicates: bool)
tests/unit/proxy/db/test_db_spend_update_writer.py:4739
↓ 3 callers
Function
create_mcp_router_test_client
()
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:147
← previous
next →
26,501–26,600 of 202,479, ranked by callers