MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 5 callersFunction_blocked_row
(user_id: str)
tests/integration/authorization/test_end_user_block.py:27
↓ 5 callersFunction_blocks
(events: tuple[SseEvent, ...])
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_multi_tool_call_blocks_wire.py:445
↓ 5 callersFunction_body
(model: str, messages: Sequence[JsonValue], stream: bool)
tests/integration/providers/test_chat_completions_tool_search_history_wire.py:72
↓ 5 callersFunction_body
( endpoint: Endpoint, model: str, prompt: str, markers: frozenset[Marker], *, stream: bool = False )
tests/integration/providers/test_bedrock_kimi_k3_cache_point_wire.py:382
↓ 5 callersFunction_bounded_chat
(gateway: Gateway, model: str, key: str, content: str | None = None)
tests/integration/spend/test_key_budget_lockout.py:204
↓ 5 callersFunction_bridge
(scenario: Scenario, wire: Wire, **parameters: JsonValue)
tests/integration/authorization/test_tool_search_replay_allowlist.py:50
↓ 5 callersFunction_bridged_input_for_served_provider
( model: str, custom_llm_provider: str, **litellm_params: object )
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py:6491
↓ 5 callersFunction_broken_stream_then_refusal
( gateway: Gateway, model: str, spender: str, other: str, **fields: JsonValue )
tests/integration/spend/test_partial_stream_live_budget.py:84
↓ 5 callersFunction_budget_db
(prisma_client: PrismaClient | None)
litellm/proxy/management_endpoints/team_endpoints.py:566
↓ 5 callersFunction_budget_logging_obj
()
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:5638
↓ 5 callersFunction_budget_reservation
(callback_bound: bool = False)
tests/unit/test_utils.py:6627
↓ 5 callersFunction_build
(kwargs: dict, response: object, store_bodies: bool = False)
tests/unit/proxy/spend_tracking/test_spend_event.py:96
↓ 5 callersMethod_build
(self, chunks: list[str])
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:1096
↓ 5 callersFunction_build_agents_client
Build a TestClient whose auth dependency is overridden to a PROXY_ADMIN user. Using ``dependency_overrides`` is the only reliable way to bypass th
tests/unit/proxy/google_endpoints/test_managed_agents_model_param.py:17
↓ 5 callersFunction_build_batch_response
( *, output_file_id: str = "file-rawoutput789", error_file_id: str | None = None, )
tests/unit/enterprise/proxy/test_batch_retrieve_registers_missing_output_file_id.py:24
↓ 5 callersMethod_build_cato_headers
A helper function to build the http headers that are required by Cato guardrails.
litellm/proxy/guardrails/guardrail_hooks/cato_networks/cato_networks.py:491
↓ 5 callersFunction_build_decisions
(config: ScaleDownChatConfig, messages: list, optional_params: dict)
tests/unit/llms/scaledown/chat/test_scaledown_chat_transformation.py:53
↓ 5 callersFunction_build_endpoints
Transform raw provider_endpoints_support_backup.json into the response shape.
litellm/proxy/public_endpoints/public_endpoints.py:179
↓ 5 callersMethod_build_fallback_payload
( cls, call_details: _FallbackSource, user_api_key_dict: "UserAPIKeyAuth", )
litellm/integrations/rubrik.py:1019
↓ 5 callersFunction_build_frame
(headers: dict[str, str], payload_bytes: bytes)
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:845
↓ 5 callersFunction_build_in_its_own_session
(database_url: str, index: RequestLogIndex)
tests/integration/database/migrations/test_request_log_indexes.py:832
↓ 5 callersMethod_build_invoke_guardrail_checks_messages
Build the role-tagged `messages` array for InvokeGuardrailChecks. INPUT scans the request messages, OUTPUT scans the model response as an
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:1914
↓ 5 callersFunction_build_lakera_inspection_messages
Like build_inspection_messages, but also covers the Responses-API ``instructions`` field, placed first since litellm later converts it into th
litellm/proxy/guardrails/guardrail_hooks/lakera_ai_v2.py:217
↓ 5 callersFunction_build_log_messages
(log_text: JsonValue)
tests/unit/proxy/test_proxy_token_counter.py:1556
↓ 5 callersFunction_build_logging_obj
(kwargs: dict, *, with_newrelic_callback: bool = True)
tests/unit/integrations/newrelic/test_newrelic_team_handler.py:172
↓ 5 callersFunction_build_managed_files_mock
(unified_id: str = "file-bWFuYWdlZF9vdXRwdXRfaWQ=")
tests/unit/enterprise/proxy/test_batch_retrieve_registers_missing_output_file_id.py:42
↓ 5 callersFunction_build_merged_agent_card
Apply the LiteLLM-fronting merge to ``upstream_card`` for ``agent_id``.
litellm/proxy/agent_endpoints/endpoints.py:117
↓ 5 callersMethod_build_messages_url
(self, api_base: str, thread_id: str, api_version: str)
litellm/llms/azure_ai/agents/handler.py:136
↓ 5 callersMethod_build_model_response
Build the ModelResponse from agent output.
litellm/llms/azure_ai/agents/handler.py:215
↓ 5 callersMethod_build_object_url
Build the exact URL that is both signed and sent, with the key percent-encoded once. S3SigV4Auth signs the path verbatim while S3 ca
litellm/integrations/s3_v2.py:433
↓ 5 callersFunction_build_ranking_response
Run transform_rerank_response against a mocked raw ranking response.
tests/unit/llms/nvidia_nim/rerank/test_nvidia_nim_rerank_transformation.py:49
↓ 5 callersMethod_build_request_headers
Build HTTP headers for the DeepKeep API request.
litellm/proxy/guardrails/guardrail_hooks/deepkeep/deepkeep.py:224
↓ 5 callersFunction_build_responses_websocket_request_defaults
(kwargs: Mapping[str, object])
litellm/responses/main.py:2845
↓ 5 callersMethod_build_run_status_url
(self, api_base: str, thread_id: str, run_id: str, api_version: str)
litellm/llms/azure_ai/agents/handler.py:144
↓ 5 callersMethod_build_secret_target
(self, secret_name: str, optional_params: dict | None)
litellm/secret_managers/hashicorp_secret_manager.py:354
↓ 5 callersFunction_build_span_exporter
Endpoint, headers and export path are the v4 SDK span processor's, so the server treats the spans as SDK traffic; the 20 s timeout and the retry c
litellm/integrations/langfuse/langfuse_sdk.py:790
↓ 5 callersFunction_build_success_payload
(logging_obj, kwargs)
tests/unit/litellm_core_utils/test_litellm_logging.py:8566
↓ 5 callersFunction_builder_id
(cls: type)
tests/unit/llms/test_get_complete_url_trailing_slash.py:175
↓ 5 callersFunction_built_in_prompt
The whole built-in system role for one preset. LEGACY is the rubric as it shipped before calibration examples existed, kept verbatim so upgrading
litellm/router_strategy/complexity_router/complexity_router.py:267
↓ 5 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/providers/test_gemini_tool_result_part_reference_chaos.py:273
↓ 5 callersFunction_burst
( base_url: str, key: str, texts: tuple[str, ...], *, tolerate_transport_errors: bool = False )
tests/integration/providers/test_sagemaker_embedding_chaos.py:103
↓ 5 callersFunction_burst
( gateway: Gateway, calls: Sequence[Call], *, tolerate_transport_errors: bool = False )
tests/integration/providers/test_gemini_long_decode_chaos.py:190
↓ 5 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, limit: int | None,
tests/integration/providers/test_bedrock_mantle_output_limit_wire.py:836
↓ 5 callersFunction_burst
(gateway: Gateway, calls: Sequence[_Call])
tests/integration/providers/test_anthropic_refusal_stop_details_chaos.py:116
↓ 5 callersFunction_burst
( gateway: Gateway, model: str, calls: tuple[_Call, ...], *, window: float, tolerate_transport_errors: boo
tests/integration/providers/test_bedrock_stream_timeout_chaos.py:158
↓ 5 callersFunction_burst
( base_url: str, key: str, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = Fals
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_safeguards_beta_chaos.py:85
↓ 5 callersFunction_burst
( gateway: Gateway, model: str, calls: tuple[_Call, ...], *, tolerate_transport_errors: bool = False )
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:240
↓ 5 callersFunction_burst
( base_url: str, key: str, calls: tuple[_Call, ...], *, tolerate_drops: bool = False )
tests/integration/routing/test_deployment_mode_routing_wire.py:265
↓ 5 callersFunction_by_marker
(received: Sequence[Request])
tests/integration/providers/test_cache_control_tool_call_marks_owned_proxy.py:115
↓ 5 callersFunction_cache_management_object
Persist management objects via ``UserApiKeyCache`` (in-memory + optional Redis). ``UserApiKeyCache`` serializes with ``model_type`` so Redis
litellm/proxy/auth/auth_checks.py:3167
↓ 5 callersMethod_cache_params_equal
Compare two cache parameter dictionaries for equality. Normalizes values and filters out UI-only fields.
litellm/proxy/management_endpoints/cache_settings_endpoints.py:346
↓ 5 callersFunction_cache_prediction_auth_app
( monkeypatch, allowed_routes, user_models, metadata=None, *, team_id=None, key_models=None, team_models=N
tests/unit/proxy/auth/test_auth_utils.py:1414
↓ 5 callersFunction_cache_prediction_payload
(candidate="candidate-id", current="current-id")
tests/unit/proxy/auth/test_auth_utils.py:1487
↓ 5 callersFunction_cache_with
(*keys: str)
tests/unit/proxy/management_helpers/test_team_roster_sync.py:301
↓ 5 callersFunction_cache_with
(*hashed_tokens: str)
tests/unit/proxy/management_helpers/test_bulk_user_deletion.py:248
↓ 5 callersFunction_cache_with_end_user
A real DualCache already holding the end user row, so ``get_end_user_object`` answers from cache and no ``litellm.`` internal has to be patched. `
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:11169
↓ 5 callersMethod_calculate_seconds_until_refresh
Calculate exactly how many seconds until we need to refresh the token. Uses precise timing: sleeps until (token_expiration - buffer_
litellm/proxy/db/prisma_client.py:472
↓ 5 callersFunction_call
(session: ClientSession, tool_id: str, a: int = 3, b: int = 4)
tests/integration/mcp/test_proxy_mcp_e2e.py:845
↓ 5 callersFunction_call
(client: BudgetClient, key: str)
tests/e2e/quota_management/budgets/test_budget_reset_advances_e2e.py:38
↓ 5 callersMethod_call
(self, server: MCPServer, registered_key: str, bare_tool_name: str)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:13964
↓ 5 callersMethod_call
(self, model: str, optional_params: dict | None = None)
tests/unit/llms/bedrock/test_base_aws_llm.py:3179
↓ 5 callersMethod_call_api
(self, payload: dict[str, object])
litellm/proxy/guardrails/guardrail_hooks/singulr/singulr.py:176
↓ 5 callersFunction_call_id
(item: object)
litellm/responses/litellm_completion_transformation/compaction_items.py:214
↓ 5 callersFunction_call_id
(reject: httpx.Response)
tests/integration/observability/test_cache_hit_guardrail_metrics.py:326
↓ 5 callersFunction_callback_credential_request_mock
()
tests/unit/proxy/test_litellm_pre_call_utils.py:8129
↓ 5 callersFunction_callbacks
(host: "PythonHost")
litellm/router_rust/steps/callbacks.py:75
↓ 5 callersFunction_called_deployment
(route: respx.Route)
tests/unit/router_strategy/test_least_busy.py:918
↓ 5 callersFunction_caller
( *, user_id: str = _OWNER, max_budget: float | None = None, team_id: str | None = None, u
tests/unit/proxy/management_endpoints/test_key_budget_change.py:212
↓ 5 callersFunction_caller
(user_id: str, role: LitellmUserRoles = LitellmUserRoles.INTERNAL_USER)
tests/unit/enterprise/proxy/management_endpoints/test_project_endpoints_prisma.py:2276
↓ 5 callersMethod_caller
(self, user_id="team-admin-1")
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:23495
↓ 5 callersFunction_caller_entitled_to
(tools: list[str])
tests/unit/proxy/mcp_server/test_openapi_tool_auth.py:391
↓ 5 callersFunction_caller_loaders
Loaders that hand back fixed caller rows and record the agent_caller they were asked about.
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:11426
↓ 5 callersFunction_calls
( count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool], reference: Callable[[int], b
tests/integration/providers/test_gemini_tool_result_part_reference_chaos.py:285
↓ 5 callersFunction_calls
(count: int, endpoints: tuple[Endpoint, ...], *, stream: bool | None = None)
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py:122
↓ 5 callersFunction_calls
(count: int, *, stream: bool | None = None)
tests/integration/providers/test_responses_bridge_message_cache_control_wire_chaos.py:176
↓ 5 callersFunction_calls
(count: int, models: Sequence[str], stream: Callable[[int], bool])
tests/integration/providers/test_gemini_long_decode_chaos.py:162
↓ 5 callersFunction_calls
(count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool])
tests/integration/providers/test_bedrock_mantle_output_limit_wire.py:855
↓ 5 callersFunction_candidate_deployments
(model: str, llm_router: "Router", team_id: str | None)
litellm/proxy/pass_through_endpoints/codex_passthrough_endpoints.py:124
↓ 5 callersMethod_canonical_user_id_from_db
Id used for spend / team-membership attribution. JWT claim (often email) is only a lookup key. If fuzzy match in ``get_user_object``
litellm/proxy/auth/handle_jwt.py:1864
↓ 5 callersFunction_capability_router_config
(**overrides)
tests/unit/router_strategy/test_complexity_router.py:2769
↓ 5 callersFunction_capacity_test_router
(route: str, base: str, base_location: str | None, explicit_limit: int | None)
tests/unit/test_router_model_cost_isolation.py:3894
↓ 5 callersFunction_capture_dispatch
Record the object handed to the success handlers. ``Mock(spec=LiteLLMLoggingObj).dispatch_success_handlers`` is an AsyncMock whose side effect
tests/unit/responses/test_streaming_iterator.py:957
↓ 5 callersFunction_capture_logger_output
Run fn with all litellm loggers wired to a StringIO buffer, return output.
tests/unit/test_secret_redaction.py:37
↓ 5 callersMethod_capture_passthrough_kwargs
(self, endpoint: str, body: object)
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:4527
↓ 5 callersMethod_capture_span_content
(self)
litellm/integrations/otel/logger.py:262
↓ 5 callersFunction_capture_update_data
(mock_table)
tests/unit/proxy/management_endpoints/test_budget_endpoints.py:356
↓ 5 callersFunction_capture_video_create_request
(captured)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4142
↓ 5 callersFunction_card_in_every_turn_data
()
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:2315
↓ 5 callersFunction_case
(spec: CaseSpec)
tests/rust-python-harness/shared/unit_runners/test_suite_runner.py:23
↓ 5 callersFunction_catalog_cost
(key: str, field: str = "output_cost_per_image")
tests/integration/providers/test_fal_ai_image_wire.py:30
↓ 5 callersMethod_catalog_path
(result)
tests/unit/proxy/client/cli/test_agents.py:760
↓ 5 callersFunction_catalog_response
(proxy: Gateway, *, key: str | None = None)
tests/integration/configuration/test_codex_catalog_boot.py:56
↓ 5 callersFunction_catch_all_and_shadowed_wildcard_router
(monkeypatch: pytest.MonkeyPatch)
tests/unit/proxy/proxy_server/test_routes_model_info.py:896
↓ 5 callersFunction_chain_tag_filtering_override
( ctx: "RoutingContext", model: str, healthy_deployments: _DeploymentPool, )
litellm/router_strategy/tag_based_routing.py:406
↓ 5 callersFunction_chat
(gateway: Gateway, body: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_converse_redacted_thinking_wire.py:178
↓ 5 callersFunction_chat
(gateway: Gateway, model: str, marker: str)
tests/integration/providers/test_api_base_url_join_wire.py:98
↓ 5 callersFunction_chat
(model: str, prompt: str, stream: bool = False)
tests/integration/providers/test_bedrock_mantle_context_overflow_fallbacks_wire.py:327
↓ 5 callersFunction_chat
(gateway: Gateway, model: str, *, key: str | None = None, **extra: JsonValue)
tests/integration/providers/test_decisions_wire.py:249
↓ 5 callersFunction_chat
( gateway: Gateway, key: str, model: str, marker: str, *, customer: str | None = None,
tests/integration/authorization/test_customer_model_allowlist.py:62
↓ 5 callersFunction_chat
(gateway: Gateway, model: str, ending: Ending)
tests/integration/streaming/test_stream_clean_eof_without_finish_reason.py:194
← previousnext →14,001–14,100 of 202,479, ranked by callers