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
__setattr__
(self, name: str, value: Any)
tests/unit/proxy/common_utils/test_reset_budget_job.py:2494
↓ 3 callers
Method
__setitem__
(self, key: str, value: object)
tests/unit/proxy/test_budget_reservation.py:2188
↓ 3 callers
Function
_a2a_params
()
tests/unit/a2a_protocol/litellm_completion_bridge/test_handler.py:32
↓ 3 callers
Function
_a_tool_with_an_unsupported_field
()
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4257
↓ 3 callers
Function
_accept_otlp
()
litellm/proxy/anthropic_endpoints/gateway_endpoints.py:482
↓ 3 callers
Function
_accepts_prompt_cache_breakpoint
(block: object)
litellm/integrations/anthropic_cache_control_hook.py:693
↓ 3 callers
Function
_access_group_transaction
(prisma_client: PrismaClient)
litellm/proxy/management_endpoints/access_group_endpoints.py:176
↓ 3 callers
Function
_access_groups_of_deployments
(deployments: Sequence[_DeploymentRow])
litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:768
↓ 3 callers
Method
_accumulate_wxo_sse_text
(response: _SSELineSource)
litellm/a2a_protocol/providers/watsonx_orchestrate/handler.py:232
↓ 3 callers
Method
_acompletion
(completion_params: Mapping[str, object])
litellm/a2a_protocol/litellm_completion_bridge/handler.py:128
↓ 3 callers
Function
_acquire
Take one token from the cross-process per-provider limiter so probe traffic counts against the same aggregate budget as the CLI rows. Without
tests/e2e/claude_code/http_probe.py:98
↓ 3 callers
Function
_action
(marker: str)
tests/integration/streaming/test_noma_v2_streaming_settings.py:161
↓ 3 callers
Function
_activity_around_today
(gateway: Gateway, api_key: str)
tests/integration/spend/test_daily_activity_key_owner_traffic.py:129
↓ 3 callers
Function
_adaptive_router_flusher_loop
Drain every AdaptiveRouter's in-memory state + session aggregators into Postgres on a fixed cadence. Hot-path writes go to memory; this loop
litellm/proxy/proxy_server.py:4919
↓ 3 callers
Method
_addChatCompletion
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:11
↓ 3 callers
Function
_add_described_anew_per_fetch_for
(header: str)
tests/integration/mcp/test_mcp_credentials.py:490
↓ 3 callers
Method
_add_failed_attempts_spend
(self, own_usage: Usage | None)
litellm/litellm_core_utils/litellm_logging.py:2836
↓ 3 callers
Function
_add_headers_to_response
Helper function to add headers to a response's hidden params
litellm/litellm_core_utils/add_retry_fallback_headers.py:283
↓ 3 callers
Function
_add_mcp_metadata_to_response
Add MCP metadata to response's provider_specific_fields. This function adds MCP-related information to the response so that clients can
litellm/responses/mcp/chat_completions_handler.py:38
↓ 3 callers
Method
_add_prompt_cache_breakpoint_if_present
(source: object, target: _BlockT)
litellm/llms/anthropic/messages/adapters/transformation.py:554
↓ 3 callers
Function
_add_proxy_data
(data: dict[str, object], **kwargs: object)
tests/unit/proxy/agent_endpoints/test_a2a_endpoints.py:563
↓ 3 callers
Function
_admin
()
tests/unit/test_responses_id_security.py:1277
↓ 3 callers
Function
_admin
()
tests/unit/proxy/test_plugin_routes.py:31
↓ 3 callers
Function
_admin
()
tests/unit/proxy/management_endpoints/test_gateway_request_endpoints.py:59
↓ 3 callers
Function
_admin_group_config
(tmp_path: Path, admin_alias: str)
tests/integration/management/test_scim_group_delete.py:92
↓ 3 callers
Function
_admin_only_team
(request: pytest.FixtureRequest, fixture: str, scenario: Scenario)
tests/integration/authorization/test_team_admin_gate.py:504
↓ 3 callers
Function
_admin_route_allowed
(auth: UserAPIKeyAuth, request: Request, method: str, path: str)
litellm/proxy/admin_mcp.py:65
↓ 3 callers
Function
_admit_mcp_servers
( servers: Sequence[MCPServer], user_api_key_auth: UserAPIKeyAuth | None, )
litellm/proxy/mcp_server/operations.py:280
↓ 3 callers
Function
_admitted
(user_id: str, own: LiteLLM_ObjectPermissionTable | None = None)
tests/unit/proxy/mcp_server/test_ui_session_utils.py:354
↓ 3 callers
Function
_admitting_proxy
( tmp_path_factory: pytest.TempPathFactory, cert: tuple[Path, Path], router_settings: Mapping[str,
tests/integration/routing/test_responses_websocket_turn_admission.py:123
↓ 3 callers
Method
_advance
( self, run: _BatchRun, requested: BatchStatus, fields: Mapping[str, object] = _NO_FIELDS )
litellm/proxy/batches_endpoints/litellm_executed_batches.py:692
↓ 3 callers
Function
_advancing_sleep
(clock, step=0.5)
tests/unit/proxy/mcp_server/outbound_credentials/test_redis_refresh_coordinator.py:51
↓ 3 callers
Function
_advertised_authorization_servers
(gateway: Gateway, alias: str)
tests/integration/mcp/test_oauth_configuration.py:413
↓ 3 callers
Function
_agent
(pull: GitHubPullListItem)
litellm/proxy/roi_calculator/observed_sync.py:29
↓ 3 callers
Function
_agent_capped_servers
( allowed_mcp_servers: Sequence[str], agent_servers: Sequence[str], agent_access_group_servers: fr
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:404
↓ 3 callers
Function
_agent_from_registry
(agent_id_or_name: str)
litellm/proxy/common_utils/registry_read_through.py:325
↓ 3 callers
Function
_agent_id
(registry: AgentRegistry, agent_name: str)
tests/unit/proxy/agent_endpoints/auth/test_agent_permission_handler.py:41
↓ 3 callers
Function
_aggregate_top_keys
(results: object)
tests/integration/spend/test_daily_activity_routes.py:95
↓ 3 callers
Function
_akto_params
(**settings)
tests/unit/proxy/guardrails/guardrail_hooks/akto/test_akto.py:1501
↓ 3 callers
Function
_alias
(suffix: str, variant: str)
tests/integration/providers/test_malformed_tools_wire.py:2348
↓ 3 callers
Function
_all_outputs
(response: InteractionResponse)
tests/e2e/llm_translation/test_google_interactions_e2e.py:99
↓ 3 callers
Function
_all_workers_serve
(gateway: Gateway, model: str)
tests/integration/routing/test_vllm_passthrough_stream_relay.py:770
↓ 3 callers
Function
_allow_client_side_advisor_credentials
Whether a caller-supplied advisor api_base/api_key may be honored. Gated on the proxy's ``allow_client_side_credentials`` opt-in. When the in
litellm/llms/anthropic/messages/native/interceptors/advisor.py:195
↓ 3 callers
Function
_allow_loopback_only
()
tests/unit/conftest.py:244
↓ 3 callers
Function
_allowed
(models: tuple[str, ...], fit_filter: frozenset[str] | None)
litellm/router_strategy/complexity_router/complexity_router.py:1338
↓ 3 callers
Method
_allowlist_updates
(mock_prisma)
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:8747
↓ 3 callers
Function
_always
(reply: Reply)
tests/integration/sdk/test_router_tool_call_stream_fallback_budget_wire.py:112
↓ 3 callers
Function
_always_failing_router
(num_retries)
tests/unit/test_router/test_router.py:9879
↓ 3 callers
Method
_annotation_args
(annotation: object)
litellm/llms/volcengine/responses/transformation.py:433
↓ 3 callers
Function
_answer
(marker: str)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_pre_content_retry_chaos.py:76
↓ 3 callers
Function
_answer
(marker: str)
tests/integration/streaming/test_faked_responses_stream_chaos.py:126
↓ 3 callers
Function
_answer
(stream: bool)
tests/unit/llms/vertex_ai/gemini/test_rejected_thought_signature_retry.py:143
↓ 3 callers
Method
_answer
(self, input_tokens: int | None)
litellm/router_rust/steps/precall.py:411
↓ 3 callers
Method
_answer_cache
(self, step: Mapping[str, object])
litellm/router_rust/core.py:3574
↓ 3 callers
Method
_answer_cache_sync
(self, step: Mapping[str, object])
litellm/router_rust/core.py:3639
↓ 3 callers
Function
_answer_text
(events: tuple[Event, ...])
tests/integration/providers/test_bedrock_nova_sonic_realtime_tool_calls.py:509
↓ 3 callers
Function
_answer_turn
()
tests/integration/providers/test_bedrock_nova_sonic_realtime_tool_calls.py:505
↓ 3 callers
Function
_answer_with_text_and_tool_call
()
tests/unit/responses/test_streaming_iterator.py:2508
↓ 3 callers
Function
_answered
(served: Iterable[_Served])
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:832
↓ 3 callers
Function
_answered
(served: tuple[_Served, ...])
tests/integration/providers/test_decisions_box_deployment_flag_chaos.py:125
↓ 3 callers
Function
_answers
(answers: Iterable[str])
tests/e2e_harness/test_proxy_client.py:396
↓ 3 callers
Function
_anthropic
(gateway: Gateway)
tests/integration/providers/test_count_tokens_error_shapes_wire.py:71
↓ 3 callers
Function
_anthropic_error_message
(status: int, text: str, payload: bytes)
tests/integration/messages_endpoint/test_tool_result_text_wire.py:211
↓ 3 callers
Function
_anthropic_fixture
(_base_url: str)
tests/rust-python-harness/strategies/trace_parity/sdk/chat_completions/case.py:15
↓ 3 callers
Function
_anthropic_image_source_data
( source: AnthropicContentParamSource | AnthropicContentParamSourceUrl | AnthropicContentParamSourceFileId
litellm/litellm_core_utils/token_counter.py:1504
↓ 3 callers
Function
_anthropic_message
(text: str)
tests/integration/spend/test_spend_log_latest_turn.py:67
↓ 3 callers
Function
_anthropic_message_chunks
(texts)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:2008
↓ 3 callers
Function
_anthropic_messages_attempt
( logging_obj: LiteLLMLoggingObj, response: httpx.Response )
tests/unit/proxy/pass_through_endpoints/test_streaming_handler_interrupt.py:812
↓ 3 callers
Method
_anthropic_messages_logged_response
The ModelResponse a /v1/messages spend_logs row is built from. A streaming call bridged onto the Responses API is the one case where
litellm/litellm_core_utils/litellm_logging.py:5346
↓ 3 callers
Function
_anthropic_messages_logging_obj
(recorder: _EventRecorder, call_id: str)
tests/unit/proxy/pass_through_endpoints/test_streaming_handler_interrupt.py:826
↓ 3 callers
Function
_anthropic_messages_payload
()
tests/unit/llms/github_copilot/test_per_user_auth.py:747
↓ 3 callers
Function
_anthropic_request
(*extra_headers: tuple[bytes, bytes])
tests/unit/proxy/test_model_list_aliases.py:88
↓ 3 callers
Function
_anthropic_response
(url: str)
tests/unit/llms/bedrock/test_claude_platform_provider.py:63
↓ 3 callers
Function
_anthropic_sse
(event: Mapping[str, object] | None)
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:812
↓ 3 callers
Function
_anthropic_sse_chunks
()
tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.py:3491
↓ 3 callers
Function
_anthropic_sse_chunks_led_by_a_non_object_data_line
(*, line_in_its_own_chunk: bool)
tests/unit/proxy/guardrails/guardrail_hooks/test_presidio.py:2645
↓ 3 callers
Function
_anthropic_tool
(name: str, schema: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_converse_lookaround_regex_wire.py:153
↓ 3 callers
Method
_anyof_tool
()
tests/unit/llms/azure/chat/test_azure_chat_gpt_transformation.py:288
↓ 3 callers
Function
_api_base_from
(litellm_params: Mapping[str, object])
litellm/llms/xai/files/transformation.py:87
↓ 3 callers
Function
_api_base_kwarg
(kwargs: Mapping[str, object])
litellm/responses/main.py:757
↓ 3 callers
Method
_api_key
(self, *, api_key: str | None, handle: ContainerHandle)
litellm/llms/opensandbox/sandbox/transformation.py:356
↓ 3 callers
Function
_api_key_params
(backend: str, env: str)
tests/e2e/llm_translation/test_chat_tool_round_trip_e2e.py:55
↓ 3 callers
Function
_api_key_secret_reference
The call path reads an ``oidc/`` api_key reference from the proxy's own filesystem or environment and sends the result upstream, so it is server-o
litellm/types/router.py:495
↓ 3 callers
Function
_api_versions
(paths: Sequence[str])
tests/unit/llms/vertex_ai/gemini/test_long_decode.py:1021
↓ 3 callers
Function
_append_domain_filters
(query: str, domains: list[str])
litellm/llms/tinyfish/search/transformation.py:297
↓ 3 callers
Function
_append_query_params
(url: str, params: Iterable[tuple[str, str]])
litellm/proxy/mcp_server/gateway_dcr_flow.py:596
↓ 3 callers
Method
_append_query_params
Append query_params to url, skipping keys already present in the URL.
litellm/llms/custom_httpx/llm_http_handler.py:6785
↓ 3 callers
Function
_applied_guardrails
(data: dict)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:1873
↓ 3 callers
Function
_applied_in_header_spend_log_and_trace
( rig: _Rig, since: int, team: str, response: httpx.Response, *, rows_expected: int = 1 )
tests/integration/observability/test_guardrail_pipeline_applied_header.py:815
↓ 3 callers
Function
_apply
(connection: psycopg.Connection[tuple[object, ...]], migration: Path)
tests/integration/database/migrations/test_drop_accounting_event_tables.py:21
↓ 3 callers
Function
_apply
(auth: httpx2.Auth, request: httpx2.Request)
tests/unit/proxy/mcp_server/outbound_credentials/test_httpx_auth.py:15
↓ 3 callers
Function
_apply_budget_limits_to_end_user_params
Helper function to apply budget limits to end user parameters. Args: end_user_params: Dictionary to update with budget parameters
litellm/proxy/auth/user_api_key_auth.py:1270
↓ 3 callers
Function
_apply_choice_fields
(choice: StreamingChoices, fields: Mapping[str, object])
litellm/litellm_core_utils/streaming_handler.py:193
↓ 3 callers
Method
_apply_compression_results
Write each compression result into a copy of ``messages``. A result is a real compression only when it is a non-empty string that dif
litellm/proxy/guardrails/guardrail_hooks/compresr/compresr.py:883
↓ 3 callers
Function
_apply_fallback_hidden_params_to_item
( fallback_item: object, prepared_fallback_hidden_params: _Prepared, )
litellm/router_rust/invoke/streaming.py:563
↓ 3 callers
Method
_apply_finish_choice_fields
(self, choice: StreamingChoices)
litellm/litellm_core_utils/streaming_handler.py:2130
↓ 3 callers
Function
_apply_group_patch_updates
Apply the group's metadata/displayName patch updates to the database. Membership itself is not written here; it is reconciled onto the source of
litellm/proxy/management_endpoints/scim/scim_v2.py:3328
↓ 3 callers
Method
_apply_implicit_output_cap
Hard-cap generation length when the request has no explicit cap. Guards against an unbounded response overshooting a small TPM/OTPM b
litellm/proxy/hooks/parallel_request_limiter_v3.py:904
↓ 3 callers
Method
_apply_masking_to_model_response
Apply masking to the actual model response when mask=True and masked content is available.
litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py:941
↓ 3 callers
Method
_apply_masking_to_response
Apply masked content from bedrock guardrail to the response object. Args: response: The response object to modify
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:3199
← previous
next →
22,101–22,200 of 202,479, ranked by callers