MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunction_run_init_coordination_redis_env_fallback
Run ProxyConfig._init_coordination_redis_env_fallback against a stubbed module state and a controlled REDIS_* environment, returning (built, s
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:13433
↓ 4 callersFunction_run_legacy_update_organization
( monkeypatch: pytest.MonkeyPatch, *, body: dict[str, object], existing_budget_id: str )
tests/unit/proxy/management_endpoints/test_organization_endpoints.py:1163
↓ 4 callersMethod_run_migrations
(use_migrate: bool, use_v2_resolver: bool)
litellm-proxy-extras/litellm_proxy_extras/utils.py:1531
↓ 4 callersFunction_run_path_filter
(work: Path, tmp_path: Path, category: str, scripts_dir: Path, is_pr: bool = True)
tests/unit/test_circleci_path_filter.py:204
↓ 4 callersFunction_run_phase_in_chunks
Drive one reset phase a chunk at a time, capped so a single run cannot spin unbounded: leftovers are picked up by the next tick.
litellm/proxy/common_utils/reset_budget_job.py:386
↓ 4 callersFunction_run_python
Run a Python script in a subprocess and return the result.
tests/unit/test_eager_tiktoken_load.py:22
↓ 4 callersMethod_run_server_and_capture_database_url
( config_path: str, database_url: str = "postgresql://t:t@localhost:5432/t", )
tests/unit/proxy/test_proxy_cli.py:3644
↓ 4 callersFunction_run_setup_rewrite_passthrough
(setup_model: str, llm_router)
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:7678
↓ 4 callersFunction_run_shard
( root: Path, selected: tuple[str, ...], distribution: tuple[str, ...] = XDIST )
tests/unit/integration_support/test_sharding.py:138
↓ 4 callersFunction_run_step
Run the workflow step's real shell; return its status, stdout and every npm argv.
tests/unit/test_select_ui_test_scope.py:112
↓ 4 callersMethod_run_tool_call
( self, container: ContainerHandle, params: SandboxToolParams | None, arguments: str )
litellm/integrations/code_interpreter_interception/handler.py:767
↓ 4 callersFunction_run_transform_response
(response_body: dict)
tests/unit/llms/fireworks_ai/chat/test_fireworks_ai_chat_transformation.py:837
↓ 4 callersFunction_runtime_callback_names
()
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:11997
↓ 4 callersFunction_runtime_count_requests
(wire: Wire)
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:344
↓ 4 callersFunction_rust
(headers: httpx.Headers)
tests/integration/providers/_idle_upstream_support.py:168
↓ 4 callersFunction_safe_get_response_text
Safely read response text, falling back to empty string on decoding errors.
litellm/llms/custom_httpx/http_handler.py:533
↓ 4 callersFunction_safe_text
(value: str, limit: int = _BODY_PREVIEW_CHARS)
litellm/proxy/mcp_server/mcp_debug.py:416
↓ 4 callersFunction_safeguard_results
(tool_uses: dict[str, dict[str, str]])
tests/unit/proxy/guardrails/test_anthropic_sse.py:127
↓ 4 callersFunction_safeguards_evaluator
(classifier: _OneVerdictClassifier)
tests/unit/llms/anthropic/messages/native/test_streaming_iterator.py:1692
↓ 4 callersMethod_same_account_destination
(span_scope)
tests/unit/integrations/otel/test_otel_v2_destinations.py:2608
↓ 4 callersFunction_sample_metadata
()
tests/unit/proxy/common_utils/test_callback_utils.py:350
↓ 4 callersFunction_samples
(metric_name: str)
tests/unit/integrations/test_prometheus_zero_cost_metric.py:28
↓ 4 callersMethod_sanitize_proxy_server_request
Allowlist only routing fields (``url``, ``method``) when forwarding ``proxy_server_request`` to an external webhook, dropping inbound
litellm/integrations/rubrik.py:685
↓ 4 callersMethod_sanitize_tool_names_in_request
Sanitize ``optional_params['tools']`` and ``optional_params['tool_choice']`` in place so every name matches Anthropic's ``^[a-zA-Z0-9_-]{1,128
litellm/llms/anthropic/chat/transformation.py:1536
↓ 4 callersMethod_sanitize_usage_obj
Checks for a 'usage' object in the response and replaces any None token values with 0. This enforces OpenAI compatibility for provide
litellm/llms/openai_like/chat/transformation.py:71
↓ 4 callersMethod_save_changed_config_section
( self, *, section_name: str, baseline: Mapping[str, object], new_conf
litellm/proxy/proxy_server.py:6144
↓ 4 callersFunction_save_environment_variables_as
(database_url: str, values: dict[str, str])
tests/integration/configuration/test_effective_settings.py:1611
↓ 4 callersFunction_scan_body
(guardrail: NomaV2Guardrail, respx_mock: respx.MockRouter)
tests/unit/proxy/guardrails/guardrail_hooks/noma/test_noma_v2.py:47
↓ 4 callersFunction_scheduled_run_under_threshold
(lock: MagicMock, monkeypatch)
tests/unit/proxy/spend_tracking/test_spend_capture_rate.py:285
↓ 4 callersFunction_schema_of
(spec: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_converse_lookaround_regex_wire.py:242
↓ 4 callersFunction_scope
( table: DailyActivityTable, entity_id_field: str, entity_id: str, api_keys: tuple[str, ...] |
tests/integration/spend/test_daily_activity_repository.py:168
↓ 4 callersFunction_scope
(module: _Module, parents: tuple[ast.AST, ...])
tests/unit/proxy/db/test_prisma_query_span.py:402
↓ 4 callersFunction_scope_headers
(scope: Scope)
litellm/proxy/mcp_server/server.py:150
↓ 4 callersFunction_scoped
(context_id: str, key_hash: str)
tests/unit/a2a_protocol/providers/bedrock_agentcore/test_bedrock_agentcore_a2a.py:267
↓ 4 callersFunction_scripted_openai
(client_secrets: Iterator[Mapping[str, JsonValue]])
tests/integration/authorization/test_realtime_client_secret_access.py:54
↓ 4 callersFunction_scripts
(calls: list[tuple[str, list[str], list[object]]], reply: object)
tests/unit/caching/test_request_redis_batch_post_call.py:118
↓ 4 callersFunction_sdk
(gateway: Gateway, api_key: str)
tests/integration/providers/test_realtime_webrtc_http.py:148
↓ 4 callersFunction_sdk
(gateway: Gateway)
tests/integration/providers/test_responses_minted_reasoning_replay_wire.py:130
↓ 4 callersFunction_sdk
(gateway: Gateway, path: str, api_key: str)
tests/integration/compatibility/test_audio_speech_wire.py:27
↓ 4 callersFunction_sdk_base
(gateway: Gateway)
tests/integration/providers/test_bedrock_mantle_claude_chat_wire.py:288
↓ 4 callersFunction_sdk_input
(marker: str)
tests/integration/providers/test_chatgpt_responses_caller_stream_wire.py:79
↓ 4 callersFunction_sdk_messages
(marker: str)
tests/integration/providers/test_bedrock_runtime_chat_completions_wire.py:84
↓ 4 callersFunction_sealed_return_to
The cookie value /sso/key/generate writes: return_to sealed under the master key, never plaintext.
tests/unit/proxy/proxy_server/test_routes_login_sso.py:406
↓ 4 callersFunction_search_call
(marker: str, name: str = _REGEX_TOOL_NAME)
tests/integration/providers/test_chat_completions_tool_search_history_wire.py:47
↓ 4 callersFunction_search_request_body
(search_route: respx.Route)
tests/unit/llms/milvus/vector_stores/test_milvus_vector_stores_transformation.py:157
↓ 4 callersFunction_search_result
(distance, response='{"content": "Paris"}')
tests/unit/caching/test_valkey_semantic_cache.py:27
↓ 4 callersFunction_search_tool
( gateway: Gateway, scenario: Scenario, provider: str, api_base: str, litellm_params: Mapp
tests/integration/pricing/test_search_mode_pricing.py:46
↓ 4 callersFunction_search_tool_row
(name: str, provider: str = "tavily")
tests/unit/proxy/management_endpoints/search_endpoints/test_search_tool_management.py:944
↓ 4 callersFunction_search_tools_sent
(tools: list[dict[str, object]])
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:10277
↓ 4 callersFunction_secret_blob
(base_url: str, key: str)
tests/unit/proxy/client/cli/test_auth_commands.py:77
↓ 4 callersFunction_seed_custom_member
(db, team_id: str, member_id: str, resources)
tests/integration/management/test_team_member_reset_budget.py:64
↓ 4 callersFunction_seed_request_destinations
Anchor the OTLP destinations this key or team overrides its traces to. Called inside the ``auth`` phase span so that span reaches the tenant's ac
litellm/proxy/auth/user_api_key_auth.py:4566
↓ 4 callersFunction_seen_once
(delivered: tuple[_Delivery, ...], marker_hexes: tuple[str, ...])
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:1051
↓ 4 callersMethod_select
(self, where: Mapping[str, object])
tests/unit/repositories/test_chunked_in.py:41
↓ 4 callersMethod_select_default_endpoint_url
Select the default endpoint url based on the endpoint type Default endpoint url is https://bedrock-runtime.{aws_region_name}.{partit
litellm/llms/bedrock/base_aws_llm.py:1486
↓ 4 callersMethod_select_metadata_field
Select the metadata field to use for logging 1. If `litellm_metadata` is in the request kwargs, use it 2. Otherwise, use `me
litellm/integrations/custom_logger.py:883
↓ 4 callersFunction_selected_session_ids
(router: litellm.Router)
tests/unit/router_utils/pre_call_checks/test_session_id_affinity.py:209
↓ 4 callersMethod_semantic_router
(self, mock_router_instance, basic_config)
tests/unit/router_strategy/test_complexity_router.py:6522
↓ 4 callersFunction_send
(rig: _GuardedRig, mode: str, items: Sequence[JsonValue], *, stream: bool = False)
tests/integration/providers/test_responses_bridge_item_marks_guardrail_wire.py:137
↓ 4 callersFunction_send
(rig: Rig, label: str, route: str, stream: bool, prompt: str)
tests/integration/providers/test_inferenceapis_context_window_fallbacks_wire.py:292
↓ 4 callersFunction_send
(gateway: Gateway, client: Client, body: Mapping[str, JsonValue])
tests/integration/providers/test_responses_bridge_tool_search_replay.py:71
↓ 4 callersFunction_send
(gateway: Gateway, route: _Route, key: str)
tests/integration/authorization/test_unknown_key_generic_401.py:125
↓ 4 callersFunction_send
(client: Anthropic, model: str, system_block: TextBlockParam, messages: Sequence[MessageParam])
tests/e2e/llm_translation/test_messages_mid_conversation_system_e2e.py:92
↓ 4 callersFunction_send
(client: Anthropic, model: str, system_block: TextBlockParam, messages: Sequence[MessageParam])
tests/e2e/llm_translation/test_messages_mid_conversation_system_native_providers_e2e.py:112
↓ 4 callersMethod_send
(*, tools: Sequence[Mapping[str, object]], stream: bool, **kwargs: object)
tests/unit/integrations/websearch_interception/test_websearch_short_circuit.py:523
↓ 4 callersFunction_send_all
(send: Callable[[str], httpx.Response], markers: tuple[str, ...])
tests/integration/authorization/test_hidden_alias_budget_bypass_chaos.py:53
↓ 4 callersMethod_send_json
(self, payload: object, status: int = 200)
tests/integration/_support/otlp_sink.py:172
↓ 4 callersFunction_send_strict_tools_to_bedrock
( replies: Sequence[tuple[int, Mapping[str, object] | bytes]], drop_params: bool | None, tools: Se
tests/unit/llms/bedrock/messages/invoke_transformations/test_anthropic_claude_transformation.py:4476
↓ 4 callersFunction_sent
(respond: MagicMock)
tests/unit/llms/opensearch/vector_stores/test_opensearch_transformation.py:81
↓ 4 callersFunction_sent
(route: respx.Route, index: int)
tests/unit/test_router/test_router.py:16042
↓ 4 callersFunction_sent
(route: respx.Route)
tests/unit/responses/litellm_completion_transformation/test_anthropic_responses_bridge.py:1305
↓ 4 callersFunction_sent_assistant_content
(route: respx.Route)
tests/unit/responses/litellm_completion_transformation/test_anthropic_responses_bridge.py:627
↓ 4 callersFunction_sent_body
(route: respx.Route)
tests/unit/llms/hosted_vllm/responses/test_hosted_vllm_responses.py:208
↓ 4 callersFunction_sent_chat_request
(model: str, **params: object)
tests/unit/llms/openai_like/test_openinfer_provider.py:39
↓ 4 callersFunction_sent_for_callers
(requests: Iterable[Request])
tests/integration/spend/test_daily_activity_key_owner_traffic.py:90
↓ 4 callersFunction_sent_message
(message: Mapping[str, JsonValue])
tests/integration/providers/test_responses_bridge_tool_search_replay.py:92
↓ 4 callersFunction_sent_messages
(body: dict[str, JsonValue])
tests/integration/messages_endpoint/chat_bridge/test_anthropic_messages_hosted_vllm_reasoning_wire.py:99
↓ 4 callersFunction_serve_locked_user_delete
(prisma_client: MagicMock, *users: object)
tests/unit/proxy/management_endpoints/test_internal_user_endpoints.py:2899
↓ 4 callersFunction_served
(gateway: Gateway, provider: SharedProvider, key: str, model: str)
tests/integration/authorization/test_model_access_allow_lists.py:95
↓ 4 callersFunction_served
(name: str, deployment_id: str, model: str, api_base: str)
tests/unit/test_router/test_router_fuzz_regressions_rust_only.py:248
↓ 4 callersFunction_served_version
Protocol version LiteLLM serves for this agent. The agent's configured version governs. For agents that pin no version, fall back to the clie
litellm/proxy/agent_endpoints/a2a_endpoints.py:166
↓ 4 callersFunction_served_without_guardrail
(rig: _Rig, response: httpx.Response, prompt: str)
tests/integration/observability/test_guardrail_attachment.py:102
↓ 4 callersMethod_server
(self, is_byok)
tests/unit/proxy/mcp_server/test_mcp_hook_extra_headers.py:1209
↓ 4 callersFunction_server_scoped
(entry: EntryPoint, identity: str)
tests/integration/mcp/test_mcp_access_matrix.py:65
↓ 4 callersFunction_server_span
Mirror the SERVER span user_api_key_auth opens per request.
tests/unit/integrations/test_otel_team_attributes_matrix.py:69
↓ 4 callersMethod_service_account_token
(self, team_id: str)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:23075
↓ 4 callersFunction_session
( gateway: Gateway, model: str, key: str, exchange: Callable[[ClientConnection], Awaitable[tuple[Event, ..
tests/integration/providers/test_bedrock_nova_sonic_realtime_guardrails.py:147
↓ 4 callersMethod_session_cost
( cls, handler: VertexAILivePassthroughLoggingHandler, mock_logging_obj: MagicMock,
tests/unit/proxy/pass_through_endpoints/test_vertex_ai_live_passthrough.py:309
↓ 4 callersFunction_session_created
(model: str)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_websocket_passthrough_logging_handler.py:34
↓ 4 callersMethod_session_id
(request_kwargs: Mapping[str, object] | None)
litellm/router_utils/kubernetes_pod_discovery.py:212
↓ 4 callersFunction_session_id_from_baggage
Extract a session.id entry from a W3C Baggage header (https://www.w3.org/TR/baggage/), e.g. "session.id=abc-123,user.id=42".
litellm/proxy/litellm_pre_call_utils.py:181
↓ 4 callersFunction_session_message_fields
(message: object)
litellm/responses/litellm_completion_transformation/tool_search.py:266
↓ 4 callersFunction_session_representative_row
(request_id, session_id)
tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py:7266
↓ 4 callersFunction_session_url
(proxy_url: str, query: str, path: str = "/v1/realtime")
tests/integration/providers/test_realtime_unguarded_voice_turns.py:373
↓ 4 callersFunction_sessions
(seeded: _Seeded, pages: tuple[_Page, ...])
tests/integration/spend/test_session_grouped_logs_pages.py:149
↓ 4 callersMethod_set
(self, **kwargs)
tests/unit/integrations/test_opentelemetry.py:5782
↓ 4 callersFunction_set_budget_reset_at
Set budget_reset_at in updated_kv if budget_duration is provided.
litellm/proxy/management_endpoints/team_endpoints.py:3042
↓ 4 callersFunction_set_duration_in_model_call_details
Helper to set duration in model_call_details, with error handling
litellm/litellm_core_utils/logging_utils.py:314
↓ 4 callersFunction_set_key_rotation_fields
Helper function to set rotation fields in key data if auto_rotate is enabled. Args: data: Dictionary to update with rotation fields
litellm/proxy/management_endpoints/key_management_endpoints.py:639
↓ 4 callersMethod_set_overhead_with_guardrails_metric
Record litellm_overhead_with_guardrails_latency_metric (seconds): SDK overhead + pre/post-call guardrail time. Recorded outside the SDK-overhe
litellm/integrations/prometheus.py:1563
← previousnext →19,001–19,100 of 202,479, ranked by callers