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
↓ 4 callers
Method
_compaction_item
(cls, summary: str | None = None)
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:5151
↓ 4 callers
Method
_complete
(self, **kwargs)
tests/unit/test_utils.py:7252
↓ 4 callers
Function
_complete_cli
(browser: httpx.Client, callback: httpx.Response, session: CliSession)
tests/integration/authorization/test_sso_blank_identity.py:490
↓ 4 callers
Function
_complete_in_browser
(browser: httpx.Client, callback: httpx.Response, user_code: str)
tests/integration/authorization/test_cli_sso_login_ui_disabled.py:230
↓ 4 callers
Function
_completed
(gateway: Gateway, video_id: str)
tests/integration/providers/test_dashscope_video_chaos.py:95
↓ 4 callers
Function
_completed_of
(events: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_responses_bridge_tool_search_wire.py:341
↓ 4 callers
Function
_completion
(response: httpx.Response, marker: str)
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py:220
↓ 4 callers
Function
_completion
(identity: str, text: str)
tests/integration/providers/test_inferenceapis_context_window_fallbacks_wire.py:52
↓ 4 callers
Function
_completion
(event: _HookEvent)
tests/unit/test_router/test_router_callback_hook_sequence.py:304
↓ 4 callers
Function
_completion_logging_obj
(call_id: str)
tests/unit/test_main.py:6576
↓ 4 callers
Function
_compute_user_env_var_status
Build a status object for one server given the user's stored values. Stored credentials are write-only: the response reports only whether
litellm/proxy/management_endpoints/mcp_management_endpoints.py:2994
↓ 4 callers
Method
_conditions
(**overrides: object)
tests/unit/proxy/health_endpoints/test_deployment_warning_endpoints.py:152
↓ 4 callers
Function
_config
(wire: Wire, directory: Path, *, router_timeout: int | None = None)
tests/integration/providers/test_bedrock_stream_timeout_chaos.py:229
↓ 4 callers
Function
_config
(directory: Path, azure: Wire, guardrails: list[dict[str, JsonValue]])
tests/integration/observability/test_azure_content_safety_audit.py:167
↓ 4 callers
Function
_config
(tmp_path: Path, identity: str, policy_url: str, **flags: bool)
tests/integration/observability/test_panw_airs_block_masked_response.py:139
↓ 4 callers
Function
_config
The rig's proxy config with the fleet as its model list and, when given, another response cache.
tests/integration/caching/test_response_cache_chaos.py:172
↓ 4 callers
Function
_config_agent
(agent_name: str)
tests/unit/proxy/proxy_server/test_proxy_config.py:6025
↓ 4 callers
Function
_config_database
( environment_variables_read: Callable[[], Awaitable[SimpleNamespace | None]], writer_find_unique: Asy
tests/unit/proxy/proxy_server/test_proxy_config.py:5639
↓ 4 callers
Function
_config_field_endpoints
(response: ConfigFieldInfo)
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:4426
↓ 4 callers
Function
_config_proxy
( gateway: Gateway, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, overrides: Mapping[str, s
tests/integration/security/test_config_overrides.py:52
↓ 4 callers
Function
_config_row
(router_settings: RouterSettings)
tests/unit/proxy/test_fallback_management_endpoints.py:268
↓ 4 callers
Function
_config_section
(database_url: str, section: str)
tests/integration/configuration/test_effective_settings.py:98
↓ 4 callers
Function
_config_table
A private schema holding only `LiteLLM_Config`, seeded with ROWS listed and OUTSIDE unlisted rows.
tests/integration/database/test_chunked_in_lists.py:60
↓ 4 callers
Function
_configure_client
( monkeypatch: pytest.MonkeyPatch, *, client: object, system: KeyManagementSystem, key_man
tests/unit/rust_bridge/ocr/test_secrets.py:332
↓ 4 callers
Method
_configure_secret_manager
( monkeypatch: pytest.MonkeyPatch, stored_value: str | None, store_virtual_keys: bool = True )
tests/unit/proxy/hooks/test_key_management_event_hooks.py:520
↓ 4 callers
Function
_configure_target
( ctx: click.Context, target: Target, api_key: str | None, gateway_url: str | None, model:
litellm/proxy/client/cli/commands/configure.py:126
↓ 4 callers
Method
_conflict
(field: str, value: str, server_id: str = "existing-1")
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:8713
↓ 4 callers
Function
_connect_targets
(runtime: _Runtime)
tests/integration/providers/test_strands_decider_agentcore_wire.py:404
↓ 4 callers
Method
_connected_client
(self)
litellm/repositories/base_repository.py:48
↓ 4 callers
Function
_connected_prisma
()
tests/unit/proxy/health_endpoints/test_health_endpoints.py:3485
↓ 4 callers
Function
_connection_error_message
(exc: BaseException, url: str | None, timeout_seconds: float)
litellm/proxy/mcp_server/rest_endpoints.py:122
↓ 4 callers
Method
_construct_headers
(self)
litellm/caching/gcs_cache.py:40
↓ 4 callers
Method
_construct_url_for_response_id_in_path
Constructs a URL for the API request with the response_id in the path.
litellm/llms/azure/responses/transformation.py:261
↓ 4 callers
Function
_consume
( mode: Literal["sync", "async"], chunks: tuple[object, ...], error: Exception | None = None )
tests/rust-python-harness/shared/parity/test_stream.py:98
↓ 4 callers
Method
_consume_expected_death
True iff ``pid`` was killed on purpose by a planned recreate. `PrismaWrapper.recreate_prisma_client` records the old engine PID in `_
litellm/proxy/utils.py:7271
↓ 4 callers
Function
_consume_sync_stream
(wire: Wire)
tests/integration/sdk/test_bedrock_converse_stream_sync_decoder_wire.py:57
↓ 4 callers
Function
_container_model_object_id
(original_container_id: str, custom_llm_provider: str)
litellm/proxy/container_endpoints/ownership.py:66
↓ 4 callers
Function
_content
(body: dict[str, object])
tests/integration/observability/test_akto_logging_only.py:304
↓ 4 callers
Function
_content
(payloads: Sequence[Mapping[str, JsonValue]])
tests/integration/streaming/test_chat_stream_guardrail_error_events.py:263
↓ 4 callers
Function
_content
(response: ModelResponse)
tests/integration/sdk/test_openai_sdk_client_sessions_wire.py:98
↓ 4 callers
Function
_content
(index: int, **fields)
tests/unit/proxy/pass_through_endpoints/test_injected_stream_usage.py:23
↓ 4 callers
Method
_content_block_state
From the SSE chunks already sent to the client, return (open content-block index or None, highest content-block index seen or None).
litellm/llms/anthropic/chat/guardrail_translation/handler.py:734
↓ 4 callers
Function
_content_filter
(name: str, mode: str, action: str, *, default_on: bool)
tests/integration/observability/test_content_filter_logging_only.py:146
↓ 4 callers
Function
_content_of
(chunk)
tests/unit/llms/sagemaker/test_sagemaker_chat_transformation.py:114
↓ 4 callers
Function
_continue_turn
(text: str)
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:154
↓ 4 callers
Function
_control_plane
(bearer_token: str | None = None)
tests/unit/llms/bedrock/test_bedrock_model_listing.py:101
↓ 4 callers
Function
_conversation_is_continuing
Whether this request continues a conversation that was already underway. The counterfactual the savings driver prices against is one model servin
litellm/router_strategy/complexity_router/complexity_router.py:670
↓ 4 callers
Function
_converse_frames
The frames among ``items``, with the bytes an earlier guardrail's block message added read back into frames.
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:939
↓ 4 callers
Function
_converse_messages
(marker: str)
tests/integration/providers/test_bedrock_runtime_chat_completions_wire.py:88
↓ 4 callers
Function
_converse_stream_logging_obj
()
tests/unit/llms/bedrock/passthrough/test_bedrock_passthrough_transformation.py:617
↓ 4 callers
Function
_converse_text_stream
(texts: list[str])
tests/unit/llms/bedrock/passthrough/test_bedrock_passthrough_transformation.py:655
↓ 4 callers
Function
_convert_mcp_tool_choice_to_openai
Convert MCP ToolChoice to OpenAI tool_choice format. MCP: {mode: "auto"} | {mode: "required"} | {mode: "none"} OpenAI: "auto" | "required
litellm/proxy/mcp_server/sampling_handler.py:586
↓ 4 callers
Function
_convert_mcp_tools_to_openai
Convert MCP Tool definitions to OpenAI function calling format. MCP Tool: {name, description, inputSchema} OpenAI Tool: {type: "function"
litellm/proxy/mcp_server/sampling_handler.py:558
↓ 4 callers
Method
_convert_prisma_to_dict
Convert Prisma result to dict with decrypted litellm_params and datetime objects as ISO format strings. Args: prisma_obj
litellm/proxy/search_endpoints/search_tool_registry.py:203
↓ 4 callers
Function
_converted_tool
(name: str, description: str, properties: Mapping[str, JsonValue])
tests/integration/observability/test_bedrock_converse_guardrail_rewrites.py:535
↓ 4 callers
Function
_cool_down_original
(router: litellm.Router)
tests/unit/router_utils/pre_call_checks/test_session_id_affinity.py:68
↓ 4 callers
Method
_cooled_down_ids
(self, router)
tests/unit/test_router/test_router.py:6869
↓ 4 callers
Method
_cooled_down_ids
(self, router)
tests/unit/test_router/test_router.py:7020
↓ 4 callers
Function
_copilot_endpoint_rows
(path: Path)
tests/unit/test_model_prices_and_context_window.py:65
↓ 4 callers
Function
_coralbricks_rates
()
tests/unit/llms/openai_like/test_coralbricks_provider.py:204
↓ 4 callers
Method
_core_deployments_named
(self, model_name: str)
litellm/router_rust/steps/precall.py:62
↓ 4 callers
Method
_core_get_deployment_by_model_group_name
(self, model_group_name: str)
litellm/router_rust/surface/registry.py:1568
↓ 4 callers
Function
_cost
(upstream_url: str, *frames: dict[str, object])
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_deepgram_listen_passthrough_logging_handler.py:76
↓ 4 callers
Method
_cost
(self, response)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:2358
↓ 4 callers
Function
_count
(ctx: RoutingContext, payload: Mapping[str, object])
litellm/router_strategy/complexity_router/context_compaction.py:242
↓ 4 callers
Function
_count
(gateway: Gateway, body: Mapping[str, JsonValue], call_endpoint: bool = True)
tests/integration/providers/test_vertex_gemini_count_tokens_wire.py:1011
↓ 4 callers
Function
_count_advanced
How many rows the write actually moved past the due cutoff. A budget_duration of "0s" (or one the parser cannot read) resolves to the current
litellm/proxy/common_utils/reset_budget_job.py:368
↓ 4 callers
Method
_count_attempts
( self, *, global_num_retries, deployment_num_retries, request_num_ret
tests/unit/test_router_per_deployment_num_retries.py:531
↓ 4 callers
Function
_count_pdf
(pdf_base64: str)
tests/benchmarks/test_token_counter_pdf_benchmarks.py:51
↓ 4 callers
Function
_count_tokens_error
(response: httpx.Response, status: int)
tests/integration/routing/test_anthropic_overloaded_cooldown_owned_proxy.py:169
↓ 4 callers
Function
_count_with_edit
( monkeypatch: pytest.MonkeyPatch, edit: dict[str, JsonValue], drop_invalid_edits: bool, system: object =
tests/unit/llms/openai/responses/count_tokens/test_token_counter.py:505
↓ 4 callers
Function
_counted_on
(client: httpx.Client, key: str, body: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:358
↓ 4 callers
Function
_create
(gateway: Gateway, managed_file: str, key: str)
tests/integration/routing/test_batch_mode_deployments_wire.py:212
↓ 4 callers
Function
_create_batch_data
(input_file_id: str)
tests/unit/proxy/hooks/test_batch_rate_limiter.py:356
↓ 4 callers
Function
_create_endpoint
(gateway: Gateway, scenario: Scenario, body: Mapping[str, JsonValue])
tests/integration/spend/test_passthrough_request_tags.py:438
↓ 4 callers
Method
_create_error_message
Create a detailed error message from processed guardrail results. Args: processed_result: Processed response with detect
litellm/proxy/guardrails/guardrail_hooks/enkryptai/enkryptai.py:232
↓ 4 callers
Method
_create_mock_httpx_response
Create a mock httpx.Response for testing
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:75
↓ 4 callers
Method
_create_output_config_for_response_format
Build an outputConfig block for Bedrock's native structured outputs API. The Converse API expects: { "outputConf
litellm/llms/bedrock/chat/converse_transformation.py:1049
↓ 4 callers
Method
_create_passthrough_logging_payload
Create a mock passthrough logging payload for testing
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:93
↓ 4 callers
Function
_create_sampling_callback
( user_api_key_auth: UserAPIKeyAuth | None = None, raw_headers: Mapping[str, str] | None = None, c
litellm/proxy/mcp_server/mcp_server_manager.py:1868
↓ 4 callers
Function
_create_thread_litellm
(sync_mode, provider, assistant_client)
tests/unit/llms/openai/test_openai.py:2183
↓ 4 callers
Function
_create_xai_batch
(scenario: Scenario, *, results_status: int = 200)
tests/integration/providers/test_xai_batch_output_file_wire.py:117
↓ 4 callers
Function
_created
(request_data: dict[str, object], model: str = SEEDANCE_2_5, logging_obj: object = None)
tests/unit/llms/volcengine/test_volcengine_video_transformation.py:61
↓ 4 callers
Function
_created_cache_body
(total_token_count: int)
tests/unit/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:2381
↓ 4 callers
Function
_created_model
(gateway: Gateway, scenario: Scenario, body: Mapping[str, JsonValue])
tests/integration/security/test_api_key_secret_reference.py:352
↓ 4 callers
Function
_created_response_id
( gateway: Gateway, key: str, body: dict[str, JsonValue], headers: Mapping[str, str] | None = None )
tests/integration/spend/test_responses_stream_spend_row_id.py:132
↓ 4 callers
Function
_creator_logging
(logging_on: str)
tests/unit/proxy/common_utils/test_check_responses_cost.py:2106
↓ 4 callers
Method
_credential
(**values: str)
tests/unit/proxy/health_endpoints/test_health_endpoints.py:5449
↓ 4 callers
Function
_custom_key_update_hook
( hooks: _CustomKeyHooksModule, )
litellm/proxy/management_endpoints/key_management_endpoints.py:383
↓ 4 callers
Function
_custom_logger_class_exists_in_failure_callbacks
Returns True if an instance of the custom logger exists in litellm.failure_callback or litellm._async_failure_callback e.g if `LangfusePromp
litellm/utils.py:726
↓ 4 callers
Function
_custom_logger_class_exists_in_success_callbacks
Returns True if an instance of the custom logger exists in litellm.success_callback or litellm._async_success_callback e.g if `LangfusePromp
litellm/utils.py:708
↓ 4 callers
Method
_custom_prompt_row
(model_name: str, model_id: str)
tests/unit/router_strategy/test_complexity_router.py:2013
↓ 4 callers
Function
_cut_once_the_answer_starts
()
tests/unit/responses/mcp/test_chat_completions_handler.py:1795
↓ 4 callers
Function
_cut_stream_iterator
(sync_stream: bool, streaming_response: object)
tests/unit/llms/anthropic/chat/test_anthropic_chat_handler.py:3711
↓ 4 callers
Function
_data
(frame: JsonValue)
tests/integration/streaming/test_stream_clean_eof_without_finish_reason.py:67
↓ 4 callers
Function
_data
(gateway: Gateway, path: str, key: str, params: dict[str, str] | None = None)
tests/integration/management/test_listing_and_health_contracts.py:24
↓ 4 callers
Method
_data
(self, messages, session_id)
tests/unit/llms/anthropic/chat/guardrail_translation/test_anthropic_guardrail_handler.py:2103
↓ 4 callers
Function
_data_lines
(text: str)
tests/integration/streaming/test_chat_stream_guardrail_error_events.py:250
↓ 4 callers
Function
_database_outage
()
tests/unit/proxy/management_endpoints/test_ui_sso.py:2141
↓ 4 callers
Function
_database_user_role
(user_id: str)
tests/integration/management/test_scim_admin_group.py:122
← previous
next →
17,601–17,700 of 202,479, ranked by callers