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
_map_usage
Map OpenAI usage to Google GenAI usage format
litellm/google_genai/adapters/transformation.py:905
↓ 3 callers
Method
_map_web_search_options
Map web_search_options to Nova grounding systemTool. Nova grounding (web search) is only supported on Amazon Nova models. Re
litellm/llms/bedrock/chat/converse_transformation.py:486
↓ 3 callers
Function
_mapped_gemini_3_models
()
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:7669
↓ 3 callers
Function
_mapped_voice_name
(audio: dict[str, str])
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:10711
↓ 3 callers
Function
_mapping
(value: object)
litellm/llms/databricks/decisions/transformation.py:39
↓ 3 callers
Function
_mapping
(value: object)
tests/rust-python-harness/strategies/e2e_parity/sdk/messages/test_native_parity.py:862
↓ 3 callers
Function
_mapping
(value: object)
tests/e2e/perf/setup/mocks/replies.py:20
↓ 3 callers
Function
_mapping_cache_keys
A global mapping also answers lookups from every configured issuer, which cache their misses per issuer.
litellm/proxy/management_endpoints/jwt_key_mapping_endpoints.py:31
↓ 3 callers
Function
_mapping_field
One key of a raw provider payload, or None when the payload is not a mapping.
litellm/llms/anthropic/messages/native/utils.py:141
↓ 3 callers
Function
_mapping_or_none
(value: object)
litellm/proxy/spend_tracking/spend_event.py:219
↓ 3 callers
Function
_mark_async_entrypoint
(logging_obj: LiteLLMLoggingObj | None, marker: str, is_async: bool)
litellm/google_genai/main.py:46
↓ 3 callers
Function
_marked
(received: tuple[Request, ...])
tests/integration/providers/test_responses_minted_reasoning_replay_chaos.py:237
↓ 3 callers
Function
_marked
(received: tuple[Request, ...])
tests/integration/providers/test_chatgpt_responses_caller_stream_chaos.py:161
↓ 3 callers
Function
_marked
(part: dict[str, object], mark: dict[str, str] = _EPHEMERAL)
tests/unit/llms/openai/chat/test_openai_gpt_transformation.py:957
↓ 3 callers
Function
_marked_history
(marker: str)
tests/integration/providers/test_openai_responses_prompt_cache_breakpoint_wire.py:68
↓ 3 callers
Function
_marked_search_call
(search_id: str)
tests/integration/providers/test_anthropic_tool_search_result_modify_params_wire.py:123
↓ 3 callers
Function
_marked_tool_result_parts
()
tests/unit/llms/bedrock/chat/test_converse_transformation.py:10452
↓ 3 callers
Function
_marker
()
tests/integration/providers/test_azure_entra_token_reuse_wire.py:221
↓ 3 callers
Function
_marker
(kind: str = "")
tests/integration/observability/test_otel_team_capture_message_content.py:40
↓ 3 callers
Method
_marker
(*, member: bool = True, classifier: bool = False)
tests/unit/test_router/test_router.py:13137
↓ 3 callers
Method
_marker
(tag: str, target: str = "answer")
tests/unit/test_router/test_router.py:13886
↓ 3 callers
Function
_marker_in
(text: str)
tests/integration/routing/test_deployment_mode_routing_wire.py:90
↓ 3 callers
Function
_marker_of
(body: Mapping[str, JsonValue])
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:501
↓ 3 callers
Function
_marker_of
(request: Request)
tests/integration/providers/test_decisions_box_deployment_flag_chaos.py:55
↓ 3 callers
Function
_marker_of
(request: Request)
tests/integration/providers/test_bedrock_mantle_claude_chat_chaos.py:119
↓ 3 callers
Function
_marker_of
(request: Request)
tests/integration/providers/test_responses_bridge_verbosity_wire.py:54
↓ 3 callers
Method
_mask_pii_in_messages
Return a copy of messages with any detected PII replaced by “[MASKED <TYPE>]” tokens.
litellm/proxy/guardrails/guardrail_hooks/lakera_ai_v2.py:447
↓ 3 callers
Function
_mask_presigned_request_headers
A pre-signed request carries its auth inside its own ``headers`` key, which logging treats as request body (only the top-level headers channel get
litellm/llms/custom_httpx/llm_http_handler.py:561
↓ 3 callers
Function
_masked_through_upstream_error
(upstream: tuple[bytes, ...])
tests/unit/proxy/guardrails/test_anthropic_sse.py:113
↓ 3 callers
Function
_master_key_hmac_key
(master_key: str)
litellm/proxy/moyai_endpoints.py:90
↓ 3 callers
Function
_match_and_track_policies
Match policies via attachments and request body, track them in metadata. Returns: Tuple of (applied_policy_names, policy_reasons)
litellm/proxy/litellm_pre_call_utils.py:4233
↓ 3 callers
Method
_matched_escalation_keyword
The escalation keyword the prompt contains, or None when escalation is off. Matching is a case-sensitive substring test so the default "LITEL
litellm/router_strategy/complexity_router/complexity_router.py:3729
↓ 3 callers
Method
_matches
(self, row: _ManagedObjectRow, where: Mapping[str, object])
tests/unit/proxy/response_api_endpoints/test_endpoints.py:895
↓ 3 callers
Method
_matching
(self, where: tuple[Predicate, ...])
litellm/proxy/list_api/in_memory.py:131
↓ 3 callers
Function
_matching_span
(destination: Wire, response_id: str)
tests/integration/observability/_openinference_support.py:569
↓ 3 callers
Function
_max_migration_timestamp
Max timestamp in a set/list of migration names (0 if empty).
litellm-proxy-extras/litellm_proxy_extras/utils.py:207
↓ 3 callers
Function
_may_carry_prompt_cache_breakpoint
(message: Mapping[str, object])
litellm/integrations/anthropic_cache_control_hook.py:701
↓ 3 callers
Function
_maybe_auto_initialize_arize_phoenix
Auto-initialize ArizePhoenixLogger when Phoenix env vars are detected. Called during ``otel`` callback setup so that users get nested traces
litellm/litellm_core_utils/litellm_logging.py:6552
↓ 3 callers
Method
_maybe_drop_speed_param
( model: str, optional_params: dict, drop_params: bool, custom_llm_provider: s
litellm/llms/anthropic/chat/transformation.py:776
↓ 3 callers
Function
_mcp_meta_trace_carrier
The W3C trace context (``traceparent``/``tracestate``) the MCP client propagated in the request's ``params._meta`` (SEP-414), or ``None``. Wh
litellm/proxy/mcp_server/server.py:282
↓ 3 callers
Function
_mcp_request_ctx
(**overrides)
tests/unit/proxy/mcp_server/test_mcp_logging.py:305
↓ 3 callers
Function
_mcp_result_text
(content)
tests/unit/proxy/guardrails/guardrail_hooks/_cisco_ai_defense_test_utils.py:132
↓ 3 callers
Function
_mcp_server_url
(tool: object)
litellm/responses/mcp/tool_precheck.py:13
↓ 3 callers
Function
_mcp_session_id_from_headers
The ``mcp-session-id`` of a stateful MCP session, read case-insensitively from the request headers. ``None`` for stateless calls (no such header).
litellm/proxy/mcp_server/operations.py:237
↓ 3 callers
Function
_media_response
(*chunks: bytes, content_length: int | None)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_transcribe_passthrough_logging_handler.py:282
↓ 3 callers
Function
_media_source
(media: str, bucket_owner: str | None)
litellm/llms/bedrock/embed/twelvelabs_marengo_3_transformation.py:104
↓ 3 callers
Function
_member
(scenario: Scenario, *models: str)
tests/integration/security/test_files_batches_access.py:204
↓ 3 callers
Function
_member_auth
()
tests/unit/llms/anthropic/messages/test_caller_model_checks.py:63
↓ 3 callers
Function
_member_key_request
(data: GenerateKeyRequest, acting_as_team_admin: bool)
litellm/proxy/management_endpoints/key_management_endpoints.py:1429
↓ 3 callers
Function
_member_role
(info: TeamInfoRead, user_id: str)
tests/e2e/management/test_team_management_e2e.py:217
↓ 3 callers
Function
_member_update_patches
(team_snapshot: LiteLLM_TeamTable)
tests/unit/proxy/management_endpoints/test_team_endpoints.py:15326
↓ 3 callers
Function
_member_update_request
(**overrides)
tests/unit/proxy/test_team_member_update.py:103
↓ 3 callers
Function
_member_value
A member id is opaque to us but has to be there; an empty one is a client error.
litellm/proxy/management_endpoints/scim/scim_v2.py:578
↓ 3 callers
Function
_membership
(db, team_id: str, member_id: str)
tests/integration/management/test_team_member_reset_budget.py:77
↓ 3 callers
Function
_membership
(where: Mapping[str, object])
tests/unit/repositories/test_chunked_in.py:66
↓ 3 callers
Function
_membership_reaches
(user_id: str, team_id: str, *, total_spend: float)
tests/integration/spend/test_team_member_total_spend_reconciliation.py:78
↓ 3 callers
Function
_membership_tx_db
(tx: "Prisma")
litellm/proxy/management_helpers/bulk_user_deletion.py:177
↓ 3 callers
Function
_membership_user_ids
(team_id: str)
tests/integration/management/test_team_delete_inputs.py:124
↓ 3 callers
Method
_merge_bedrock_guardrail_responses
Merge the per-chunk ApplyGuardrail responses of a chunked request into one, so a caller cannot tell whether chunking happened. Only e
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:1640
↓ 3 callers
Method
_merge_config_and_db_search_tools
( config_search_tools: Sequence[SearchToolTypedDict], db_search_tools: Sequence[dict[str, obje
litellm/proxy/proxy_server.py:9922
↓ 3 callers
Method
_merge_discovered_oauth_metadata
(server: MCPServer, metadata: MCPOAuthMetadata | None)
litellm/proxy/mcp_server/mcp_server_manager.py:2189
↓ 3 callers
Method
_merge_filtered_messages
( self, original_messages: list[AllMessageValues] | None, updated_target_messages: lis
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:789
↓ 3 callers
Method
_merge_masked_texts
Reconcile the guardrail's masked output with the flat `texts` list. - No masked output: keep the originals (guardrail allowed conten
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:753
↓ 3 callers
Function
_merge_native_request_fields
Merge native top-level request fields into ``extra_body`` so the HTTP handler forwards them verbatim onto the outgoing request body. An expli
litellm/google_genai/main.py:223
↓ 3 callers
Method
_merge_reasoning_only_assistant_messages
Responses API emits prior-turn reasoning as its own ``reasoning`` input item, which becomes a standalone assistant message with
litellm/responses/litellm_completion_transformation/transformation.py:1751
↓ 3 callers
Function
_merged_keys
(base: Mapping[_RowKey, object], extra: Mapping[_RowKey, object])
litellm/proxy/guardrails/usage_tracking.py:102
↓ 3 callers
Function
_message
(message_id: str, content: list[JsonValue], stop_reason: str)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:407
↓ 3 callers
Function
_message
(completed: bool, model: str)
tests/unit/proxy/hooks/test_autorouter_baseline_cache.py:55
↓ 3 callers
Function
_message_delta
(response: Mapping[str, object])
tests/unit/llms/anthropic/messages/native/test_fake_stream_iterator.py:37
↓ 3 callers
Function
_message_field
(message: object, key: str)
litellm/responses/litellm_completion_transformation/transformation.py:616
↓ 3 callers
Function
_message_role
(message: AllMessageValues)
litellm/llms/base_llm/guardrail_translation/utils.py:248
↓ 3 callers
Function
_message_shapes
(request: _AnthropicRequest)
tests/unit/responses/litellm_completion_transformation/test_anthropic_responses_bridge.py:240
↓ 3 callers
Function
_message_without_fields
(message: AllMessageValues, dropped: frozenset[str])
litellm/litellm_core_utils/prompt_templates/common_utils.py:1113
↓ 3 callers
Function
_messages
(marker: str)
tests/integration/providers/test_bedrock_runtime_chat_completions_sad_wire.py:46
↓ 3 callers
Method
_messages
(self)
tests/unit/llms/openai/chat/test_openai_gpt_transformation.py:1525
↓ 3 callers
Function
_messages_body
(model: str, marker: str, stream: bool)
tests/integration/providers/test_malformed_tools_wire.py:313
↓ 3 callers
Function
_messages_body
(model: str, **extra: JsonValue)
tests/integration/providers/test_bedrock_invoke_dangerous_tool_use_beta_wire.py:58
↓ 3 callers
Function
_messages_body
(session: str, marker: str)
tests/integration/routing/test_prompt_cache_pin_ttl.py:316
↓ 3 callers
Function
_messages_logger
()
tests/unit/rust_bridge/host/test_callbacks_legacy_python.py:250
↓ 3 callers
Function
_messages_stream_text
(response: httpx.Response)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:783
↓ 3 callers
Function
_messages_the_inference_polyfill_sends
(model: str)
tests/unit/proxy/test_proxy_token_counter.py:4132
↓ 3 callers
Method
_messages_with_tool_reference
(self, extra_parts=())
tests/unit/llms/openai/chat/test_openai_gpt_transformation.py:1451
↓ 3 callers
Function
_metadata
(metadata: Mapping[str, JsonValue])
tests/integration/caching/test_response_cache_model_group_key.py:48
↓ 3 callers
Function
_metadata_values
(litellm_params: object)
litellm/litellm_core_utils/provider_affinity.py:61
↓ 3 callers
Function
_metric_samples
(metric_name: str)
tests/unit/integrations/test_prometheus_custom_metadata_label_counts.py:55
↓ 3 callers
Function
_metric_success_kwargs
()
tests/unit/integrations/otel/test_otel_v2_logger.py:3030
↓ 3 callers
Function
_metric_values
(name: str, model_id: str)
tests/unit/integrations/test_prometheus_invalid_key_filtering.py:529
↓ 3 callers
Function
_mid_stream_debug_info
( logged_api_base: str | None, routed_api_base: str | None, failure: Literal["transport_error", "u
tests/unit/litellm_core_utils/test_streaming_handler.py:2252
↓ 3 callers
Function
_midnight
(day: date)
tests/integration/observability/test_ternary_focus_export.py:45
↓ 3 callers
Function
_migration_log_path
(test_name: str, tmp_path: Path)
tests/integration/database/test_v1_migration_error_logging.py:55
↓ 3 callers
Function
_minimal_grant
()
tests/unit/proxy/mcp_server/outbound_credentials/test_envelope.py:78
↓ 3 callers
Function
_minimax_error
The video handlers rebuild provider errors from ``response.text``, so the message has to ride on the response as well or it reaches the calle
litellm/llms/minimax/videos/transformation.py:183
↓ 3 callers
Function
_mint_failure_response
(failure: ProxyCredentialMintFailure)
litellm/proxy/mcp_server/gateway_dcr_flow.py:1537
↓ 3 callers
Function
_mint_refresh
()
tests/unit/proxy/mcp_server/outbound_credentials/test_session_token.py:64
↓ 3 callers
Method
_mint_session_id
Mints a vault id for this request, overwriting anything already there. Redaction and restoration both happen inside one request/response pair
litellm/proxy/guardrails/guardrail_hooks/llm_shield_proxy/llm_shield_proxy.py:285
↓ 3 callers
Function
_mint_with_token_len
(n: int)
tests/unit/proxy/mcp_server/outbound_credentials/test_envelope.py:439
↓ 3 callers
Method
_minted_session_id
The vault id this process minted for `data`, or None if it has none. Read only from `litellm_metadata`, the proxy-private store `_mint_sessio
litellm/proxy/guardrails/guardrail_hooks/llm_shield_proxy/llm_shield_proxy.py:299
↓ 3 callers
Function
_minutes_ago
(minutes: float)
tests/unit/proxy/spend_tracking/test_background_interaction_settlement.py:176
↓ 3 callers
Function
_missing_dashboard_team_loader
()
tests/unit/proxy/auth/test_search_tool_deny_by_default.py:82
↓ 3 callers
Function
_missing_limits_message
(missing: str | None, model_name: str)
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:8080
← previous
next →
24,001–24,100 of 202,479, ranked by callers