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
↓ 5 callers
Method
_translate_response_format_param
Handles translation of response_format parameter to Bedrock format. Returns `optional_params` with the translated response_format pa
litellm/llms/bedrock/chat/converse_transformation.py:1323
↓ 5 callers
Method
_translate_thinking_to_openai
Translate Anthropic thinking to either thinking or reasoning_effort. A Claude-family target keeps ``thinking`` verbatim, since every bridged
litellm/llms/anthropic/messages/adapters/transformation.py:1261
↓ 5 callers
Function
_truncate_base64_in_string
Replace long base64 data-URI payloads in a string with a size placeholder.
litellm/litellm_core_utils/logging_utils.py:71
↓ 5 callers
Function
_twin_and_stream_errors
( route: Route, call: Call, status: int, headers: Mapping[str, str], marker: str )
tests/integration/sdk/test_stream_open_error_provider_headers_sdk.py:234
↓ 5 callers
Function
_two_thirds_of_a_ptu_minute
An output budget worth two thirds of a gpt-4.1 PTU minute once weighted at the model's output-to-input ratio, the way the ceiling counts it.
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:8923
↓ 5 callers
Function
_two_workers
Connects while the first worker is busy answering, so the idle worker wins the accept race.
tests/integration/mcp/test_mcp_listed_tool_metadata.py:155
↓ 5 callers
Function
_types
(events: tuple[OpenAIRealtimeEvents, ...])
tests/unit/llms/soniox/realtime/test_soniox_realtime_transformation.py:62
↓ 5 callers
Function
_ui_settings_db
(repo: UISettingsRepository)
litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py:126
↓ 5 callers
Function
_unified_file_id
(unified_id: str = "victim-unified-id", provider_file_id: str = RAW_FILE_ID)
tests/unit/proxy/fine_tuning_endpoints/test_endpoints.py:40
↓ 5 callers
Function
_unified_managed_file_id
()
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:4209
↓ 5 callers
Function
_unique_messages
()
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_router.py:120
↓ 5 callers
Function
_units_row
cost=None is a row written before the cost column existed (untracked in full).
tests/unit/proxy/guardrails/test_usage_endpoints.py:81
↓ 5 callers
Method
_unmask_pii_text
Replace PII tokens in *text* with their original values. Includes a fallback for tokens that were truncated by ``max_tokens``:
litellm/proxy/guardrails/guardrail_hooks/presidio.py:1322
↓ 5 callers
Method
_unmask_pii_text
(self, text, pii_tokens)
tests/unit/responses/test_responses_websocket_all_providers.py:3198
↓ 5 callers
Function
_unpack_config_row
(cached: object)
litellm/proxy/utils.py:5504
↓ 5 callers
Function
_unreachable_database_url
(database_url: str)
tests/integration/database/test_v1_migration_error_logging.py:88
↓ 5 callers
Function
_unsupported
(message: str, model: str)
litellm/llms/sail/common_utils.py:31
↓ 5 callers
Function
_update_frame
(update: JsonValue)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:544
↓ 5 callers
Function
_update_key_soft_budget
( db: _KeyUpdateTx, existing_key_row: LiteLLM_VerificationToken, soft_budget: float | None, ch
litellm/proxy/management_endpoints/key_management_endpoints.py:2792
↓ 5 callers
Method
_update_kwargs_before_fallbacks
``_update_kwargs_before_fallbacks``: a trace id and the requested group, in place.
litellm/router_rust/surface/legacy_members.py:502
↓ 5 callers
Method
_update_org_db
( self, response_cost: float | None, org_id: str | None, user_id: str | None,
litellm/proxy/db/db_spend_update_writer.py:1540
↓ 5 callers
Function
_update_team_members_list
Update the team's members_with_roles list.
litellm/proxy/management_endpoints/team_endpoints.py:3353
↓ 5 callers
Function
_uplift
(prices: dict[str, JsonValue], location: _Location)
tests/integration/spend/test_vertex_regional_uplift_spend.py:146
↓ 5 callers
Function
_upload
(scenario: Scenario, key: str, model: str, purpose: str)
tests/integration/management/test_managed_file_create_ownership.py:77
↓ 5 callers
Function
_upsert_jwt_handler
(**jwtauth: object)
tests/unit/proxy/management_endpoints/test_ui_sso.py:11230
↓ 5 callers
Function
_upstream
(marker: str)
tests/integration/observability/test_arize_otel_v2_openinference_modes.py:67
↓ 5 callers
Function
_upstream
(responses: "list[httpx2.Response]")
tests/unit/proxy/mcp_server/outbound_credentials/test_client_credentials.py:326
↓ 5 callers
Function
_upstream
(respx_mock: respx.MockRouter, monkeypatch: pytest.MonkeyPatch, first: httpx.Response, stream: bool)
tests/unit/llms/anthropic/messages/responses_adapters/test_responses_adapters_handler.py:1368
↓ 5 callers
Function
_upstream_body
(request: Request)
tests/integration/providers/test_cloudflare_clairic_extraction_wire.py:89
↓ 5 callers
Function
_upstream_creates
(gateway: Gateway, handle: ScenarioHandle, path: str)
tests/integration/management/test_managed_file_create_ownership.py:108
↓ 5 callers
Function
_upstream_target
(kind: Kind)
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:189
↓ 5 callers
Function
_usage_chunk
()
tests/unit/llms/openai/completion/test_text_completion_guardrail_handler.py:401
↓ 5 callers
Function
_usage_repository
()
tests/unit/proxy/management_endpoints/test_common_daily_activity.py:181
↓ 5 callers
Function
_usage_with_actions
(searches: int | None, opens: int | None = None)
tests/unit/llms/groq/test_groq_cost_calculator.py:18
↓ 5 callers
Function
_user_env_var_actions
( prisma_client: PrismaClient, )
litellm/proxy/mcp_server/db.py:780
↓ 5 callers
Function
_user_text
()
tests/integration/providers/test_bedrock_nova_sonic_realtime_tool_calls.py:206
↓ 5 callers
Method
_user_with_teams
(teams: list[str])
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:1805
↓ 5 callers
Method
_uses_deferred_backend_setup
True when setup is deferred until the client's first session.update.
litellm/litellm_core_utils/realtime_streaming.py:1360
↓ 5 callers
Function
_uvicorn_params
(argv: tuple[str, ...])
tests/unit/gateway/test_launch.py:112
↓ 5 callers
Function
_validate_query_response
(adapter: TypeAdapter[_ResponseT], value: object)
litellm/tracing/storage.py:29
↓ 5 callers
Function
_validate_reset_spend_value
(reset_to: object, key_in_db: LiteLLM_VerificationToken)
litellm/proxy/management_endpoints/key_management_endpoints.py:6778
↓ 5 callers
Function
_validate_responses_media
(adapter: TypeAdapter[_MediaT], value: object)
litellm/responses/litellm_completion_transformation/transformation.py:294
↓ 5 callers
Function
_validate_team_callback
(data: "AddTeamCallback")
litellm/proxy/management_endpoints/team_callback_endpoints.py:80
↓ 5 callers
Function
_validated_object_list
(value: object)
litellm/integrations/anthropic_cache_control_hook.py:136
↓ 5 callers
Function
_validated_object_mapping
(value: object)
litellm/integrations/anthropic_cache_control_hook.py:129
↓ 5 callers
Function
_vector
(index: int)
tests/integration/sdk/test_ollama_embedding_wire.py:30
↓ 5 callers
Function
_vendor
(route: Route)
tests/integration/providers/test_chat_completions_tool_search_history_wire.py:162
↓ 5 callers
Function
_vertex_count_tokens_peer
(status_code: int)
tests/unit/llms/vertex_ai/test_vertex_ai_common_utils.py:110
↓ 5 callers
Function
_vertex_job_response
(state: str = "JOB_STATE_SUCCEEDED")
tests/unit/llms/vertex_ai/batches/test_handler.py:62
↓ 5 callers
Function
_vertex_openai_row
(custom_id, model, prompt_tokens, completion_tokens)
tests/unit/batches/test_batch_utils.py:917
↓ 5 callers
Function
_video_create_call_kwargs
(config, **optional_params)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4129
↓ 5 callers
Function
_video_error
The provider's own status wins when it reported one. DashScope otherwise answers 200 even for failures, and a 200 has the proxy retry a call the p
litellm/llms/dashscope/videos/transformation.py:187
↓ 5 callers
Function
_vllm
(name: str, host: str, **model_info: object)
tests/unit/proxy/common_utils/test_codex_model_catalog.py:1225
↓ 5 callers
Function
_wait_for_close
(connection: websockets.ClientConnection, timeout: float)
tests/integration/providers/test_responses_websocket_session_limit.py:430
↓ 5 callers
Function
_wait_for_shadow_successes
(logger: _RecordingLogger, expected: int, timeout: float = 30.0)
tests/unit/test_router_silent_experiment.py:155
↓ 5 callers
Function
_wait_until_every_worker_serves
(gateway: Gateway, *models: str)
tests/integration/providers/test_files_batches_wire.py:203
↓ 5 callers
Function
_walk_idp
(browser: httpx.Client, authorize_url: str)
tests/integration/authorization/test_cli_sso_login_ui_disabled.py:224
↓ 5 callers
Function
_web_search_cost_per_call_from_model_info
Per-invocation web_search price from model_info when configured. Prefer ``search_context_cost_per_query`` (same shape as Gemini/Anthropic we
litellm/llms/xai/cost_calculator.py:113
↓ 5 callers
Function
_wildcard_deployment
(scenario: Scenario, **parameters: JsonValue)
tests/integration/providers/test_databricks_decisions_wire.py:166
↓ 5 callers
Method
_wildcard_deployment
(**litellm_params: str)
tests/unit/proxy/health_endpoints/test_health_endpoints.py:5453
↓ 5 callers
Function
_window_spend_rolls
(prisma_client)
tests/unit/proxy/common_utils/test_reset_budget_job.py:1134
↓ 5 callers
Function
_wire_cascade_reads_for_test
The budget tier's cascade reads the rows it is about to zero, so their spend counters can be invalidated after the commit. Give each of those
tests/unit/proxy/common_utils/test_reset_budget_job.py:3801
↓ 5 callers
Function
_wire_request
(bridge: _Bridge, marker: str, *, model: str = "gpt-6.1-sol", stream: bool = False)
tests/integration/providers/test_responses_bridge_input_audio_wire.py:112
↓ 5 callers
Function
_with_redacted_instructions
(params: Mapping[str, object])
litellm/litellm_core_utils/redact_messages.py:467
↓ 5 callers
Function
_without_foreign_open_servers
(tools: tuple[str, ...], open_aliases: frozenset[str])
tests/integration/mcp/test_mcp_transports.py:123
↓ 5 callers
Method
_wrap_responses_stream_for_container_ownership
Forward SSE chunks and record container ownership before the terminal chunk goes out. Streaming ``/v1/responses`` short-circuits out of
litellm/proxy/common_request_processing.py:3794
↓ 5 callers
Function
_write_config
(directory: Path, name: str, model_list: list[dict[str, JsonValue]])
tests/integration/providers/test_voyage_mongodb_host_wire.py:117
↓ 5 callers
Method
_write_config
(path: Path, litellm_settings: dict[str, object])
tests/unit/proxy/test_proxy_cli.py:4277
↓ 5 callers
Method
_write_event_field
(event: object, field: str, value: object)
litellm/llms/openai/responses/guardrail_translation/handler.py:1470
↓ 5 callers
Function
_write_strategy_folder
( root: Path, name: str = "example", *, init_source: str | None = None, )
tests/rust-python-harness/cli/test_cli.py:75
↓ 5 callers
Function
_write_stubs
(bin_dir: Path, names: tuple[str, ...])
tests/unit/test_component_entrypoint.py:56
↓ 5 callers
Function
_write_through_dual_cache
()
tests/unit/caching/test_dual_cache.py:846
↓ 5 callers
Function
_xai_completed_batch
()
tests/unit/enterprise/proxy/hooks/test_managed_files.py:2450
↓ 5 callers
Function
a
(e,r)
litellm/proxy/_experimental/out/_next/static/chunks/40jhif8i4dzqp.js:1
↓ 5 callers
Function
a
litellm/proxy/_experimental/out/_next/static/chunks/0-i21ejarohtj.js:1
↓ 5 callers
Method
a
()
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 5 callers
Function
a8
(e,t,n,r)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 5 callers
Function
aE
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/11et800l-khs-.js:49
↓ 5 callers
Function
aR
(e)
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:29
↓ 5 callers
Function
a_deployments_fail
(host: ScriptedHost, error: object)
tests/unit/test_router/core/test_fallbacks_characterization_outcomes.py:535
↓ 5 callers
Method
abort
(self)
tests/unit/proxy/guardrails/guardrail_hooks/test_presidio.py:5317
↓ 5 callers
Method
accepts
(self, model: str)
litellm/router_strategy/complexity_router/complexity_router.py:1367
↓ 5 callers
Function
accessGroupTestData
(t *testing.T, raw map[string]interface{})
terraform/provider/litellm/resource_access_group_test.go:13
↓ 5 callers
Function
acheck_copilot_seat
( user_id: str, github_token: str, credential_name: str, endpoints: GithubHostEndpoints, )
litellm/llms/github_copilot/per_user_auth.py:556
↓ 5 callers
Method
aclose
(self)
litellm/proxy/common_request_processing.py:751
↓ 5 callers
Method
aclose
(self)
tests/unit/proxy/utils/proxy_logging/test_streaming_hooks.py:201
↓ 5 callers
Function
aclose_superseded_attempt
Close an attempt a retry or fallback is taking over, so its end-of-stream logging records a failure.
litellm/llms/anthropic/messages/native/streaming_iterator.py:365
↓ 5 callers
Method
acompletion
( self, api_key: str | None, api_version: str, model: str, api_base: s
litellm/llms/azure/azure.py:414
↓ 5 callers
Method
acompletion
(self, *args: object, **kwargs: object)
litellm/router_rust/invoke/endpoints.py:152
↓ 5 callers
Method
acquire
(&self, request: ValidatedAzureRequest)
litellm-rust/crates/auth-azure/src/native.rs:157
↓ 5 callers
Method
acquire_health_check_lock
Attempt to acquire the global health check lock. Returns: bool: True if lock was acquired, False otherwise
litellm/proxy/health_check_utils/shared_health_check_manager.py:79
↓ 5 callers
Function
action
()
litellm-rust/crates/circuit-breaker/src/breaker.rs:400
↓ 5 callers
Function
active_beta_values
The ``anthropic-beta`` values a request will send: the comma-joined header (key matched case-insensitively) plus the body's ``anthropic_beta`` lis
litellm/anthropic_beta_gated_fields.py:108
↓ 5 callers
Function
active_request_redis_batch
The request's batch for this backend, or None outside a ``request_redis_batch_scope``.
litellm/caching/redis_batch.py:659
↓ 5 callers
Method
add_api_route_if_not_exists
Add an API route to the app only if it doesn't already exist. Args: app: The FastAPI application instance pa
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:3795
↓ 5 callers
Method
add_cache
Adds a result to the cache. Args: *args: args to litellm.completion() or embedding() **kwargs: kwargs to lit
litellm/caching/caching.py:795
↓ 5 callers
Method
add_key_level_controls
(key_metadata: dict | None, data: dict, _metadata_variable_name: str)
litellm/proxy/litellm_pre_call_utils.py:2199
↓ 5 callers
Method
add_litellm_data_for_backend_llm_call
- Adds user from headers - Adds forwardable headers - Adds org id
litellm/proxy/litellm_pre_call_utils.py:1892
↓ 5 callers
Method
add_litellm_failure_callback
(self, callback: object)
tests/unit/test_router/core/scripted_host.py:213
↓ 5 callers
Method
add_marker
(self, marker)
tests/unit/test_vcr_classification.py:61
← previous
next →
15,301–15,400 of 202,479, ranked by callers