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
Function
_stream
()
tests/unit/llms/anthropic/messages/native/test_streaming_iterator.py:979
↓ 3 callers
Function
_stream_and_record
( monkeypatch: pytest.MonkeyPatch, respx_mock: respx.MockRouter, include_usage: bool )
tests/unit/litellm_core_utils/test_stream_usage_logging.py:77
↓ 3 callers
Function
_stream_bytes
(body: Mapping[str, JsonValue])
tests/integration/routing/test_vllm_passthrough_stream_usage_settings.py:90
↓ 3 callers
Function
_stream_choices
(response: httpx.Response)
tests/integration/providers/test_responses_bridge_incomplete.py:1181
↓ 3 callers
Function
_stream_choices
(chunks: Sequence[ChatCompletionChunk])
tests/integration/providers/test_ollama_prompt_tools_wire.py:206
↓ 3 callers
Function
_stream_chunk
(choices: list[StreamingChoices])
tests/unit/caching/test_caching_handler.py:3162
↓ 3 callers
Function
_stream_chunks
(request: dict[str, object], call: str)
tests/unit/llms/databricks/chat/test_databricks_chat_transformation.py:2905
↓ 3 callers
Function
_stream_chunks_have_generated_content
(chunks: Sequence[object])
litellm/router_rust/invoke/streaming.py:488
↓ 3 callers
Function
_stream_completion
(*poll_bodies: object)
tests/unit/llms/replicate/chat/test_handler.py:172
↓ 3 callers
Function
_stream_events
(stream: object)
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_router.py:194
↓ 3 callers
Function
_stream_identity_and_text
(route: str, lines: Sequence[str])
tests/integration/routing/test_complexity_router_databricks_classifier.py:356
↓ 3 callers
Method
_stream_pii_unmasking
Apply PII unmasking to streaming output (output_parse_pii=True path).
litellm/proxy/guardrails/guardrail_hooks/presidio.py:1667
↓ 3 callers
Function
_stream_raised_error_status
(error: Exception)
litellm/router_rust/invoke/streaming.py:1198
↓ 3 callers
Function
_stream_response
(case: _Case, *, thinking: bool)
tests/unit/llms/base_llm/chat/test_provider_chat_thinking.py:207
↓ 3 callers
Function
_stream_started_at_16khz_in_french_without_vad
()
tests/unit/llms/soniox/realtime/test_soniox_realtime_transformation.py:525
↓ 3 callers
Function
_stream_sync
(router: Router, **request: object)
tests/integration/sdk/test_router_sync_stream_fallback_wire.py:111
↓ 3 callers
Function
_stream_text
(response: httpx.Response)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:743
↓ 3 callers
Method
_stream_was_interrupted
Anthropic ends a stream with ``content_block_stop`` -> ``message_delta`` -> ``message_stop``; a client disconnect leaves the last eve
litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py:394
↓ 3 callers
Function
_stream_with_trailing_usage_chunk
()
tests/unit/text_completions/test_streaming_iterator.py:291
↓ 3 callers
Function
_streamed_events
()
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_sse_stream.py:47
↓ 3 callers
Function
_streamed_message_id
(raw_events: list[bytes])
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_message_id.py:241
↓ 3 callers
Function
_streamed_text
(sse: str, key: str)
tests/integration/observability/test_langtrace_delivery.py:173
↓ 3 callers
Function
_streamed_text
(chunks)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4914
↓ 3 callers
Function
_streamed_text_then_weather_call
(first_index: int)
tests/unit/responses/litellm_completion_transformation/test_streaming_iterator_transformation.py:396
↓ 3 callers
Function
_streamed_tool_call_ids
(tool_call_deltas, model="global.xai.grok-4.7")
tests/unit/llms/bedrock/chat/chat_completions/test_bedrock_chat_completions_transformation.py:1673
↓ 3 callers
Function
_streamed_usage
(chunks: Sequence[ModelResponseStream])
tests/unit/responses/mcp/test_chat_completions_handler.py:1828
↓ 3 callers
Function
_streamed_vllm_choice_fields
(choices: Iterable[object])
litellm/litellm_core_utils/streaming_chunk_builder_utils.py:1523
↓ 3 callers
Function
_streaming_litellm_params
(**extras)
tests/unit/proxy/guardrails/guardrail_hooks/test_bedrock_guardrails.py:5658
↓ 3 callers
Function
_streaming_logging_obj
()
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4839
↓ 3 callers
Function
_streams_response_ids
(request_route: str | None)
litellm/proxy/hooks/responses_id_security.py:121
↓ 3 callers
Function
_strict_about_the_token
(resumed_id: str)
tests/integration/providers/test_gemini_long_decode_wire.py:1029
↓ 3 callers
Function
_strict_selected
()
tests/unit/test_ruff_strict_gate.py:64
↓ 3 callers
Function
_string_headers
(headers: Mapping[str, str])
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:736
↓ 3 callers
Function
_strings
(value: JsonValue)
tests/integration/observability/test_guardrail_stream_scope_matrix.py:64
↓ 3 callers
Function
_strip_bearer
(value: str)
litellm/proxy/mcp_server/outbound_credentials/bridge_credentials.py:200
↓ 3 callers
Function
_strip_bearer
(value: str)
litellm/proxy/mcp_server/outbound_credentials/session_credentials.py:206
↓ 3 callers
Function
_strip_operation_id_method_suffix
(operation_id: str)
litellm/proxy/proxy_server.py:2082
↓ 3 callers
Function
_structured_messages_sent
(guardrail: GenericGuardrailAPI, rows: list[dict])
tests/unit/proxy/guardrails/guardrail_hooks/test_generic_guardrail_api.py:65
↓ 3 callers
Function
_stub_compress_result
(original_tokens, compressed_tokens, cache)
tests/unit/integrations/compression_interception/test_compression_interception_handler.py:401
↓ 3 callers
Function
_stub_env
(tmp_path, script_body)
tests/unit/test_type_check_gate.py:85
↓ 3 callers
Function
_stub_gauges
(prometheus_logger: PrometheusLogger)
tests/unit/integrations/test_prometheus_carried_budget_state.py:143
↓ 3 callers
Method
_stub_listing
(monkeypatch: pytest.MonkeyPatch)
tests/unit/proxy/mcp_server/test_rest_endpoints.py:4819
↓ 3 callers
Method
_subjects_seen_by
(provider: MagicMock)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:15285
↓ 3 callers
Function
_submit
(pool: ThreadPoolExecutor, target: _Target, calls: tuple[_Call, ...])
tests/integration/authorization/test_responses_compact_id_ownership_chaos.py:98
↓ 3 callers
Function
_submit
( pool: ThreadPoolExecutor, clients: _Clients, calls: tuple[_Call, ...] )
tests/integration/compatibility/test_openai_sdk_client_paths_chaos.py:233
↓ 3 callers
Method
_submit
Drop the event rather than queue it once the backlog is full. A stalled telemetry backend must not let request volume grow an unbounded queue
litellm/llms/base_llm/auth/token_exchange.py:492
↓ 3 callers
Function
_subscript
(value: object, key: str | int)
litellm/llms/huggingface/embedding/handler.py:48
↓ 3 callers
Function
_succeeded_outcome
()
tests/unit/integrations/websearch_interception/test_websearch_native_blocks.py:62
↓ 3 callers
Function
_success_response
()
tests/unit/litellm_core_utils/test_litellm_logging.py:3009
↓ 3 callers
Function
_success_rows
(prefix: str, expected: int)
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:263
↓ 3 callers
Function
_success_target
The deployment id and metadata a success callback counts under, or None.
litellm/router_rust/surface/health.py:127
↓ 3 callers
Function
_successes
(statuses: MappingProxyType[str, str])
tests/integration/providers/test_ollama_prompt_tools_chaos.py:251
↓ 3 callers
Method
_sum_usage_counters
(usages: Sequence[BedrockGuardrailUsage])
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:1726
↓ 3 callers
Function
_summary
(run: HarnessRun)
tests/rust-python-harness/shared/reporting/ui.py:47
↓ 3 callers
Function
_summary_process_memory
(process: _ProcessHandle | None)
litellm/proxy/common_utils/debug_utils.py:323
↓ 3 callers
Function
_summed_mapping
(first: Mapping[str, object], final: Mapping[str, object])
litellm/responses/mcp/round_billing.py:44
↓ 3 callers
Function
_supplied_logger
()
tests/unit/rust_bridge/host/test_callbacks_legacy_python.py:27
↓ 3 callers
Function
_supported_spans
(grounding: Sequence[Mapping[str, object]])
tests/unit/llms/vertex_ai/gemini/test_long_decode.py:295
↓ 3 callers
Function
_supports_color
()
litellm/setup_wizard.py:140
↓ 3 callers
Method
_supports_tool_search_on_bedrock
Check if the model supports tool search on Bedrock. The model map's ``supports_tool_search`` flag is authoritative: an exact
litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude_transformation.py:470
↓ 3 callers
Method
_surface_response_headers_from_result
(self, logging_result: object)
litellm/litellm_core_utils/litellm_logging.py:3061
↓ 3 callers
Function
_surface_target
(surface: Surface)
tests/integration/observability/test_s3_v2_streaming_failure_dedupe.py:37
↓ 3 callers
Function
_suspend
(process: psutil.Process)
tests/integration/_support/process.py:208
↓ 3 callers
Function
_swap_in_model_cost_map
(new_model_cost_map: dict)
litellm/proxy/proxy_server.py:5634
↓ 3 callers
Method
_sync
(self)
tests/unit/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.py:4480
↓ 3 callers
Function
_sync_access_group_on_keys
Rows are locked in sorted token order, the order every spend writer locks key rows in.
litellm/proxy/management_endpoints/access_group_endpoints.py:372
↓ 3 callers
Function
_sync_access_group_on_teams
Rows are locked in sorted team_id order, the order every spend writer locks team rows in, so this cannot deadlock with them.
litellm/proxy/management_endpoints/access_group_endpoints.py:350
↓ 3 callers
Function
_sync_cached_and_stored_environment_variables_rows
( pc: ProxyConfig, cached: SimpleNamespace | None, stored: SimpleNamespace | None )
tests/unit/proxy/proxy_server/test_proxy_config.py:5668
↓ 3 callers
Function
_sync_client
( status_code: int, payload: object, )
tests/unit/litellm_core_utils/test_oauth_token_exchange.py:48
↓ 3 callers
Function
_sync_exchange
(base_url: str, ssl_verify: bool | None = False)
tests/integration/sdk/test_http2_wire.py:223
↓ 3 callers
Function
_sync_group_roster
Bring the group's team roster to the plan in one locked bulk transaction. A member whose user row was deleted after the members were resolved is
litellm/proxy/management_endpoints/scim/scim_v2.py:3393
↓ 3 callers
Function
_synthetic_message
(name: str, arguments: Mapping[str, str])
tests/integration/mcp/test_mcp_accounting_guardrails.py:413
↓ 3 callers
Function
_system_block_messages
( cache_control: dict[str, str], document: str = "a complex legal agreement" )
tests/unit/router_utils/test_prompt_caching_cache.py:32
↓ 3 callers
Function
_system_with_billing_header
(real_text: str)
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:6562
↓ 3 callers
Function
_table_gone_error
()
tests/unit/proxy/utils/prisma_and_spend/test_spend_functions.py:714
↓ 3 callers
Function
_table_server
(server_id: str = "database-server")
tests/unit/proxy/mcp_server/test_server_resolution.py:74
↓ 3 callers
Function
_tag
(text: str)
tests/integration/providers/test_malformed_tools_chaos.py:75
↓ 3 callers
Function
_tag
()
tests/integration/providers/test_decisions_box_deployment_flag_wire.py:189
↓ 3 callers
Function
_tag_deployment_with_access_group
Write `access_group` into one deployment's model_info; returns the (model_id, updated model_info) pair when a write happened, None when the de
litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:437
↓ 3 callers
Function
_tag_known_to_group
( ctx: "RoutingContext", model: str, positive_tags: Sequence[str], routing_confirmed: frozense
litellm/router_strategy/tag_based_routing.py:459
↓ 3 callers
Function
_tag_registry_row
A row as the names-only registry query sees it: only ``tag_name`` is read off it.
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:3750
↓ 3 callers
Function
_tag_sequence
(tags: object)
litellm/router_strategy/tag_based_routing.py:554
↓ 3 callers
Function
_tag_shutdown_config
(directory: Path, upstream: str, redis_buffer: bool, *, gated: bool = False)
tests/integration/spend/test_shutdown_flush.py:46
↓ 3 callers
Function
_tagged_chat_wire
(identity: str, expected: dict[str, JsonValue])
tests/integration/providers/test_openai_chat_wire.py:282
↓ 3 callers
Function
_tags_header
(tags: list[str] | None)
tests/e2e/llm_translation/passthrough_client.py:240
↓ 3 callers
Function
_tags_in_metadata
Tags out of a metadata bucket the caller controls the shape of. A request can send its metadata (and its ``tags``) as anything the JSON body
litellm/router_strategy/tag_based_routing.py:739
↓ 3 callers
Function
_talk_without_a_reply
(ws_base: str, query: str, key: str)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:1577
↓ 3 callers
Method
_team
(access_group_ids)
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:11589
↓ 3 callers
Method
_team
(self, member_count)
tests/unit/proxy/management_endpoints/test_team_endpoints.py:13631
↓ 3 callers
Function
_team_access_over_cached_users
()
tests/unit/enterprise/proxy/management_endpoints/test_project_endpoints_prisma.py:2269
↓ 3 callers
Method
_team_admin
()
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:11172
↓ 3 callers
Function
_team_admin_requests_member_key
Whether the caller is a team admin asking for a team key owned by another member of that team.
litellm/proxy/management_endpoints/key_management_endpoints.py:1413
↓ 3 callers
Function
_team_arrays
View a team's untyped list columns as sequences of ids.
litellm/repositories/team_repository.py:40
↓ 3 callers
Function
_team_deployment
(public_name: str, model_id: str, litellm_params: Mapping[str, object])
tests/unit/enterprise/proxy/management_endpoints/test_project_endpoints_prisma.py:1894
↓ 3 callers
Method
_team_destination
(cls, service_name: str | None = None)
tests/unit/integrations/otel/test_otel_v2_destinations.py:5698
↓ 3 callers
Method
_team_granted_servers
The raw MCP-server set a team grants (before any org ceiling): its object_permission (direct ``mcp_servers``, the ``all_proxy_servers`` sentin
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3738
↓ 3 callers
Method
_team_has_passthrough_route_access
( team_object: LiteLLM_TeamTable | None, route: str, request_method: str | None = None
litellm/proxy/auth/handle_jwt.py:1712
↓ 3 callers
Function
_team_ids
()
tests/integration/routing/test_ptu_shares.py:242
↓ 3 callers
Method
_team_ids_for_mcp_grant
The team ids whose MCP grants a caller inherits. A caller with an explicit ``team_id`` uses that single team; every other caller inherits no
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3692
↓ 3 callers
Function
_team_info
(gateway: Gateway, team_id: str)
tests/integration/management/test_team_delete_large_membership.py:242
← previous
next →
25,301–25,400 of 202,479, ranked by callers