MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunction_build_message_send_params
Build MessageSendParams from wire (0.3) or A2A 1.0 JSON-RPC params.
litellm/proxy/agent_endpoints/a2a_endpoints.py:148
↓ 4 callersMethod_build_metadata
(cls, request_data: Mapping[str, object])
litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py:143
↓ 4 callersFunction_build_mock_client
(response_payload)
tests/unit/a2a_protocol/providers/pydantic_ai_agents/test_pydantic_ai_agent_headers.py:19
↓ 4 callersFunction_build_model_param_to_info_mapping
Build a mapping from model parameter to model info (model_name, model_id). Multiple models might share the same model parameter, so we use a
litellm/proxy/health_endpoints/_health_endpoints.py:801
↓ 4 callersFunction_build_payload_for_media_response
(logging_obj, init_response_obj, kwargs=None)
tests/unit/litellm_core_utils/test_litellm_logging.py:7601
↓ 4 callersFunction_build_prisma_mock
()
tests/unit/enterprise/proxy/test_batch_retrieve_registers_missing_output_file_id.py:49
↓ 4 callersMethod_build_request_rate_limit_descriptors
( self, user_api_key_dict: UserAPIKeyAuth, data: Mapping[str, object], call_ty
litellm/proxy/hooks/parallel_request_limiter_v3.py:3701
↓ 4 callersMethod_build_runs_url
(self, api_base: str, thread_id: str, api_version: str)
litellm/llms/azure_ai/agents/handler.py:140
↓ 4 callersMethod_build_scheduler_trigger
Return scheduler configuration for the selected frequency.
litellm/integrations/focus/focus_logger.py:166
↓ 4 callersMethod_build_scope
Build the JWT scope string. When allowed_scopes is configured: join them verbatim. Otherwise auto-generate minimal, least-pr
litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/mcp_jwt_signer.py:627
↓ 4 callersMethod_build_transform_chunk
Build the synthetic chunk carrying the newly-guardrailed deltas. For each choice, the new delta is the mutated accumulated text past what
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:550
↓ 4 callersFunction_build_url
Build the full URL by substituting path parameters. The api_base from get_complete_url already includes /containers and may include query par
litellm/llms/custom_httpx/container_handler.py:107
↓ 4 callersMethod_build_user_prompt
(self, attack_examples: list[str], description: str)
litellm/proxy/management_endpoints/policy_endpoints/ai_policy_suggester.py:144
↓ 4 callersFunction_build_vertex_live_setup_model_rewriter
Rewrite the ``setup`` frame's model into the full Vertex resource path the Live API requires. Clients address the gateway the way they addre
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:4181
↓ 4 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_custom_prompt_template_chaos.py:204
↓ 4 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:264
↓ 4 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_hosted_vllm_reasoning_content_chaos.py:242
↓ 4 callersFunction_burst
( gateway: Gateway, model: str, calls: tuple[_Call, ...], *, breakpoint: JsonValue = pcb.E
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py:140
↓ 4 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_bedrock_runtime_chat_completions_chaos.py:203
↓ 4 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport
tests/integration/providers/test_ollama_prompt_tools_chaos.py:266
↓ 4 callersFunction_burst
( gateway: Gateway, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = False )
tests/integration/providers/test_responses_bridge_message_cache_control_wire_chaos.py:188
↓ 4 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_bedrock_mantle_claude_chat_chaos.py:166
↓ 4 callersFunction_burst
(rig: _Rig, size: int)
tests/integration/observability/test_langtrace_delivery.py:565
↓ 4 callersFunction_burst
( gateway: Gateway, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = False )
tests/integration/streaming/test_responses_bridge_stream_chaos.py:207
↓ 4 callersFunction_burst
( gateway: Gateway, models: Models, shots: tuple[Shot, ...], during: Callable[[], None] )
tests/integration/routing/test_reasoning_effort_levels_chaos.py:105
↓ 4 callersFunction_burst_bodies
(rig: Rig, marker: str, anthropic_name: str | None)
tests/integration/observability/test_cache_hit_guardrail_metrics_chaos.py:87
↓ 4 callersFunction_byok_row
A stored BYOK API key row: the same column, but the payload is a plain string, not OAuth JSON.
tests/unit/proxy/mcp_server/test_db_credentials.py:227
↓ 4 callersFunction_cache
(guarded: _Guarded, marker: str, body: dict[str, JsonValue], key: str | None = None)
tests/integration/authorization/test_tool_search_replay_guardrails.py:173
↓ 4 callersFunction_cache_config_table
(prisma_client: "PrismaClient")
litellm/proxy/management_endpoints/cache_settings_endpoints.py:60
↓ 4 callersFunction_cache_control_marks_outside_the_provisional_messages
Client marks on the request parts the provisional message list leaves out. A ``function_call`` or ``function_call_output`` item has no role, so t
litellm/responses/main.py:840
↓ 4 callersMethod_cache_credentials
( self, credential_cache_key: _VertexCredentialCacheKey, credentials: _VertexCredentia
litellm/llms/vertex_ai/vertex_llm_base.py:509
↓ 4 callersMethod_cache_hit_matches_key
(self, cache_hit: Mapping[str, object], key: str)
litellm/caching/redis_semantic_cache.py:245
↓ 4 callersFunction_cache_key
(user_id: str, credential_name: str)
litellm/proxy/credential_endpoints/user_provider_credentials.py:67
↓ 4 callersFunction_cache_key
(scope: str, fingerprint: str)
litellm/llms/anthropic/prompt_cache_prediction.py:798
↓ 4 callersFunction_cache_priced_params
(backend: str)
tests/e2e/quota_management/spend_tracking/test_cache_cost_accounting_e2e.py:84
↓ 4 callersFunction_cache_read_tokens
Cache-read tokens however the chat usage reports them: the Anthropic-style ``cache_read_input_tokens`` litellm forwards, or the OpenAI-style `
tests/e2e/llm_translation/test_chat_mid_conversation_system_e2e.py:117
↓ 4 callersFunction_cache_restricted_key
(virtual_key: str, models: list[str])
tests/unit/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.py:390
↓ 4 callersFunction_cache_user
(cache: UserApiKeyCache, user_tools: list[str] | None)
tests/unit/proxy/auth/test_search_tool_deny_by_default.py:102
↓ 4 callersFunction_cacheable_messages
()
tests/unit/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:2389
↓ 4 callersFunction_cached_history
( tag: str, cached_signature: str = VERTEX_MINTED, later_signatures: tuple[str, ...] = () )
tests/unit/llms/vertex_ai/gemini/test_rejected_thought_signature_retry.py:232
↓ 4 callersFunction_cached_texts
(node: object)
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:11261
↓ 4 callersFunction_cached_user
(cache: Redis, user_id: str)
tests/integration/management/test_team_delete_member_cache_eviction.py:48
↓ 4 callersFunction_call
( proxy: Gateway, model: str, marker: str, *, surface: str = "chat", stream: bool = Fa
tests/integration/observability/test_arize_otel_v2_openinference_chaos.py:51
↓ 4 callersFunction_call
(request: Request)
tests/integration/authorization/test_rag_team_provider_credentials.py:162
↓ 4 callersFunction_call
(rig: FederationRig, client: str, model: str, marker: str)
tests/integration/management/test_credential_federation_values.py:646
↓ 4 callersFunction_call
(bedrock: ScriptedBedrock, fallback: NativeOutputFallback | None)
tests/unit/llms/bedrock/chat/test_native_output_fallback.py:76
↓ 4 callersFunction_call
( backend: _Backend, router: _ClassifierRouter, stream: bool, settings: Mapping[str, object], **extra: obj
tests/unit/llms/anthropic/messages/adapters/test_handler_safeguard_results.py:127
↓ 4 callersFunction_call
(client: BudgetClient, key: str, model: str)
tests/e2e/quota_management/budgets/test_model_access_group_budget_e2e.py:61
↓ 4 callersMethod_call
(self, token_file: Path, poster: ScriptedPoster)
tests/unit/llms/anthropic/test_anthropic_wif.py:651
↓ 4 callersMethod_call_and_count
(self, router: Router, **call_kwargs)
tests/unit/test_router_per_deployment_num_retries.py:268
↓ 4 callersFunction_call_and_get_cooldowns
Cool down the other members first, so the call has to land on deploy-3.
tests/unit/router_strategy/test_router_routing_groups.py:572
↓ 4 callersFunction_call_block
Drive ``call_mcp_tool`` into its except path via ``arguments=None``, which raises ``HTTPException(400)`` before any server-manager call, and retur
tests/unit/proxy/mcp_server/test_mcp_block_recording.py:59
↓ 4 callersFunction_call_cost_at_row_rates
(call: litellm.ModelResponse, row: Mapping[str, float])
tests/unit/proxy/proxy_server/test_routes_model_info.py:1128
↓ 4 callersMethod_call_enkryptai_guardrails
Call Enkrypt AI Guardrails API to detect potential issues in the given prompt. Args: prompt (str): The text to analyze f
litellm/proxy/guardrails/guardrail_hooks/enkryptai/enkryptai.py:85
↓ 4 callersFunction_call_increment
(logger: PrometheusLogger)
tests/unit/integrations/test_prometheus_budget_metrics_timeout.py:47
↓ 4 callersFunction_call_managed_file_route
(method: str, path: str)
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:5723
↓ 4 callersMethod_call_noma_scan
( self, payload: dict, )
litellm/proxy/guardrails/guardrail_hooks/noma/noma_v2.py:245
↓ 4 callersFunction_call_rerank
(hidden_params: dict = HIDDEN_PARAMS)
tests/unit/proxy/rerank_endpoints/test_endpoints.py:55
↓ 4 callersMethod_call_sync
( self, plan: Plan, request: Mapping[str, object], overrides: Mapping[str, object] | None = None )
litellm/router_rust/core.py:2995
↓ 4 callersFunction_call_with_strict_tools_fallback
( bedrock: ScriptedBedrock, fallback: NativeOutputFallback | None, strict_tools_fallback: NativeOu
tests/unit/llms/bedrock/chat/test_native_output_fallback.py:316
↓ 4 callersMethod_callback
(router: Router, model_id: str, exception: Exception)
tests/unit/router_utils/test_cooldown_handlers.py:1168
↓ 4 callersFunction_callback_config
(directory: Path, blocked_user_list: list[str] | None = None)
tests/integration/authorization/test_end_user_block.py:89
↓ 4 callersFunction_caller_key
Return the hashed key token that identifies this caller, or None for master key.
litellm/proxy/management_endpoints/workflow_management_endpoints.py:59
↓ 4 callersMethod_caller_tool_levels
( self, team_grants: dict[str, dict[str, list[str]]], user_grants: dict[str, dict[str, list[str]]]
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:4949
↓ 4 callersFunction_calls
(count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool])
tests/integration/providers/test_custom_prompt_template_chaos.py:216
↓ 4 callersFunction_calls
(count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool])
tests/integration/providers/test_hosted_vllm_reasoning_content_chaos.py:254
↓ 4 callersFunction_calls
(count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool])
tests/integration/providers/test_bedrock_runtime_chat_completions_chaos.py:228
↓ 4 callersFunction_calls
(count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool])
tests/integration/providers/test_ollama_prompt_tools_chaos.py:284
↓ 4 callersFunction_calls
(count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool])
tests/integration/providers/test_bedrock_mantle_claude_chat_chaos.py:178
↓ 4 callersFunction_calls
(count: int)
tests/integration/providers/test_anthropic_refusal_stop_details_chaos.py:87
↓ 4 callersFunction_calls
(count: int)
tests/integration/providers/test_bedrock_stream_timeout_chaos.py:123
↓ 4 callersFunction_calls_with
(wire: Wire, prompt: str)
tests/integration/providers/test_bedrock_mantle_context_overflow_fallbacks_wire.py:365
↓ 4 callersFunction_calls_with
(requests: tuple[Request, ...], prompt: str)
tests/integration/providers/test_inferenceapis_context_window_fallbacks_wire.py:288
↓ 4 callersFunction_can_user_query_key_info
Helper to check if the user has access to the key's info
litellm/proxy/management_endpoints/key_management_endpoints.py:8347
↓ 4 callersFunction_cancel_llm_call_on_client_disconnect
( request: Request, llm_api_call: "asyncio.Future[_LlmCallT]", disconnect_event: asyncio.Event, )
litellm/proxy/common_request_processing.py:2172
↓ 4 callersFunction_capability_model_and_provider
(deployment_params: Mapping[str, object], group: str)
litellm/router_rust/steps/precall.py:211
↓ 4 callersMethod_capped_search_turn
()
tests/unit/integrations/websearch_interception/test_websearch_agentic_loop_cap.py:1097
↓ 4 callersMethod_capture_execute
(monkeypatch)
tests/unit/proxy/mcp_server/test_rest_endpoints.py:730
↓ 4 callersMethod_capture_in_span
(self)
litellm/integrations/opentelemetry.py:688
↓ 4 callersFunction_capture_logging_obj
()
tests/unit/llms/openai/responses/test_openai_responses_data_residency.py:55
↓ 4 callersFunction_capture_saves
(monkeypatch, persisted=True)
tests/unit/proxy/proxy_server/test_background_health.py:256
↓ 4 callersMethod_capture_subject_token
Run a manager method (via ``call(manager)``) and return the subject_token it threaded into ``_create_mcp_client``.
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:3212
↓ 4 callersMethod_capture_transcription_usage
Append a usage-only transcription completed event to the logged results so the cost calculator can bill it by audio duration. The def
litellm/litellm_core_utils/realtime_streaming.py:751
↓ 4 callersFunction_captured_prompt
(call)
tests/unit/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_factory.py:9010
↓ 4 callersFunction_capturing
(app: Callable[[Scope, Receive, Send], object], observed: queue.Queue[dict[str, object]])
tests/integration/_support/mcp.py:145
↓ 4 callersMethod_capturing_transport
(captured)
tests/unit/integrations/test_langsmith_init.py:245
↓ 4 callersFunction_carries_cache_breakpoint
(block: object)
litellm/integrations/anthropic_cache_control_hook.py:561
↓ 4 callersFunction_carries_prompt_cache_breakpoint
(block: object)
litellm/integrations/anthropic_cache_control_hook.py:697
↓ 4 callersFunction_carrying
(body: Mapping[str, object], fields: Mapping[str, object])
tests/unit/llms/vertex_ai/gemini/test_long_decode.py:338
↓ 4 callersFunction_carrying
(parent: Span, key: str = "metadata")
tests/unit/integrations/test_langfuse_otel.py:1380
↓ 4 callersFunction_case
()
tests/rust-python-harness/strategies/unit_tests_parity/test_runner.py:22
↓ 4 callersFunction_case_identity
(nodeid: str)
tests/integration/conftest.py:136
↓ 4 callersFunction_catalog_case
(method)
tests/unit/proxy/mcp_server/test_operations.py:456
↓ 4 callersFunction_caused_by_an_entra_rejection
(error: litellm.AuthenticationError)
tests/unit/test_router/test_router.py:14734
↓ 4 callersFunction_chain_through
(token_endpoint: Callable[[Respond], Respond], first_id: str)
tests/integration/providers/test_gemini_long_decode_wire.py:675
↓ 4 callersFunction_chaos_calls
(deployments: tuple[ChaosDeployment, ...], marker: str)
tests/integration/observability/_logging_only_scope_support.py:165
↓ 4 callersFunction_chaos_config
(directory: Path, upstream: Wire, sink: str, *, retries: int)
tests/integration/providers/test_anthropic_refusal_stop_details_chaos.py:121
↓ 4 callersFunction_chaos_control_configuration
( tmp_path: Path, identity: str, model_list: tuple[dict[str, JsonValue], ...], )
tests/integration/observability/_logging_only_scope_support.py:151
↓ 4 callersFunction_chaos_model_list
(deployments: tuple[ChaosDeployment, ...])
tests/integration/observability/_logging_only_scope_support.py:137
↓ 4 callersFunction_chaos_models
(scenario: Scenario, marker: str)
tests/integration/observability/_logging_only_scope_support.py:108
← previousnext →17,401–17,500 of 202,479, ranked by callers