MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersMethod_apply_message_injections
Apply message-level cache control injection points in order. Anthropic allows at most ``MAX_CACHE_CONTROL_BLOCKS`` cache_control brea
litellm/integrations/anthropic_cache_control_hook.py:1080
↓ 4 callersMethod_apply_sampling_param
Forward ``temperature``/``top_p``/``top_k`` to ``optional_params[output_key]`` unless the model removed sampling params, in which case
litellm/llms/anthropic/common_utils.py:928
↓ 4 callersFunction_apply_spend_payload
(db_spend: float, spend_field: dict[str, float])
tests/unit/proxy/common_utils/test_reset_budget_job.py:3560
↓ 4 callersFunction_aresponses_body_with_system_point
(**request_kwargs)
tests/unit/responses/test_responses_api_request_body.py:915
↓ 4 callersFunction_aresponses_websocket
Private function to handle the Responses API WebSocket mode. For PROXY use only. Returns the provider failure that ended the connection, if
litellm/responses/main.py:2866
↓ 4 callersMethod_argument_masking_guardrail
()
tests/unit/llms/anthropic/chat/guardrail_translation/test_anthropic_guardrail_handler.py:391
↓ 4 callersFunction_arguments
(marker: str)
tests/integration/streaming/test_faked_responses_stream_chaos.py:130
↓ 4 callersMethod_artifact_tool
(self)
tests/unit/llms/openai/responses/test_openai_responses_transformation.py:2874
↓ 4 callersFunction_as_endpoint_translation
(translation: _EndpointTranslation)
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:102
↓ 4 callersFunction_as_float
(value: object)
litellm/proxy/hooks/model_max_budget_limiter.py:794
↓ 4 callersFunction_as_json
(value: object)
litellm/completion_extras/litellm_responses_transformation/history.py:151
↓ 4 callersFunction_as_json_object
(response: object)
litellm/litellm_core_utils/served_output_texts.py:61
↓ 4 callersFunction_as_mapping
(value: object)
litellm/litellm_core_utils/prompt_templates/image_handling.py:183
↓ 4 callersFunction_as_mapping
(node: object)
scripts/check_openapi_docs.py:30
↓ 4 callersFunction_as_priority
(value: object)
litellm/router_utils/request_priority.py:32
↓ 4 callersFunction_as_set
(value: object)
litellm/router_rust/surface/indexes.py:58
↓ 4 callersFunction_as_settings_section
(value: object)
litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py:653
↓ 4 callersFunction_as_string_mapping
(value: object)
litellm/llms/anthropic/messages/adapters/transformation.py:36
↓ 4 callersFunction_as_thinking_block
(item: object)
litellm/litellm_core_utils/prompt_templates/factory.py:2840
↓ 4 callersFunction_ask
(rig: _Rig, key: str | None, prompt: str, guardrails: list[str] | None = None)
tests/integration/observability/test_guardrail_attachment.py:95
↓ 4 callersFunction_ask
(rig: BridgeRig, key: str, prompt: str, tools: Sequence[Mcp], stream: bool, client: Client)
tests/integration/mcp/test_mcp_llm_endpoints.py:1934
↓ 4 callersFunction_ask
(text: str)
tests/e2e/a2a/test_a2a_agent_e2e.py:86
↓ 4 callersFunction_ask_as_new_team
( rig: _Rig, tag: str, *, stream: bool = False, path: str = "/v1/chat/completions", ex
tests/integration/observability/test_guardrail_pipeline_applied_header.py:479
↓ 4 callersMethod_assemble_key_object
Assemble a UserAPIKeyAuth object
litellm/integrations/prometheus.py:4775
↓ 4 callersMethod_assemble_team_object
Assemble a LiteLLM_TeamTable object ``budget_reset_at`` comes from the auth-carried snapshot when the request has one, other
litellm/integrations/prometheus.py:4406
↓ 4 callersFunction_assert_aggregated_chatgpt_response
(result)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:580
↓ 4 callersMethod_assert_all
(self, spans, where)
tests/unit/integrations/test_otel_team_attributes_matrix.py:205
↓ 4 callersFunction_assert_all_answered
(outcomes: tuple[Outcome, ...])
tests/integration/routing/test_reasoning_effort_levels_chaos.py:131
↓ 4 callersFunction_assert_answered_in_its_own_shape
(served: _Served, serving: Serving)
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:272
↓ 4 callersFunction_assert_answered_once
(outcomes: tuple[Outcome, ...], received: tuple[Request, ...])
tests/integration/routing/test_reasoning_effort_levels_chaos.py:122
↓ 4 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_custom_prompt_template_chaos.py:223
↓ 4 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_hosted_vllm_reasoning_content_chaos.py:261
↓ 4 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_bedrock_runtime_chat_completions_chaos.py:141
↓ 4 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_ollama_prompt_tools_chaos.py:291
↓ 4 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_bedrock_mantle_claude_chat_chaos.py:185
↓ 4 callersFunction_assert_api_key_from_custom_header
(headers, custom_header_name, expected_api_key)
tests/unit/proxy/auth/test_user_api_key_auth.py:509
↓ 4 callersFunction_assert_bedrock_processing_data_classification
(data: dict[str, object], is_streaming: bool)
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:85
↓ 4 callersFunction_assert_blocked
(response: httpx.Response)
tests/integration/authorization/test_lakera_v2_on_flagged.py:144
↓ 4 callersFunction_assert_blocked_refusal
(response: httpx.Response, end_user: str)
tests/integration/authorization/test_end_user_block.py:70
↓ 4 callersFunction_assert_cache_read_on_second_call
( model: str, send: Callable[[str], Result[ChatResponse]] )
tests/e2e/llm_translation/test_cache_control.py:165
↓ 4 callersFunction_assert_caller_gets_its_own_ids
(rig: Rig, outcomes: tuple[tuple[int, Mapping[str, JsonValue]], ...])
tests/integration/compatibility/test_fine_tuning_managed_files_chaos.py:228
↓ 4 callersFunction_assert_check_complete_credentials
(api_key_value, expect_complete)
tests/unit/proxy/test_proxy_utils.py:502
↓ 4 callersFunction_assert_claude_wire
( provider: Provider, stream: bool, request: Request, body: Mapping[str, JsonValue], deferred: Sequence[st
tests/integration/providers/test_responses_bridge_tool_search_wire.py:512
↓ 4 callersFunction_assert_closed_by_a_proxy_failure
(session: Session)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:960
↓ 4 callersFunction_assert_completed
(events: tuple[SseEvent, ...])
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_mid_stream_failure_bookkeeping_wire.py:182
↓ 4 callersFunction_assert_completed
(response: httpx.Response, served_id: str)
tests/integration/routing/test_messages_stream_retry_budget_sources_owned_proxy.py:200
↓ 4 callersFunction_assert_counted_usage
(row: Mapping[str, JsonValue])
tests/integration/routing/test_vllm_passthrough_stream_relay.py:167
↓ 4 callersFunction_assert_create_request
( request: Request, expected_file_ids: list[str], provider_key: str, )
tests/integration/providers/test_vector_store_create_wire.py:87
↓ 4 callersFunction_assert_delivered
(rig: _Rig, surface: _Surface, marker: str)
tests/integration/observability/test_langtrace_delivery.py:347
↓ 4 callersFunction_assert_denied
(response: httpx.Response, model: str, denied_type: str)
tests/integration/authorization/test_access_group_model_listing.py:120
↓ 4 callersFunction_assert_describes_cat
(response: ChatResponse)
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:155
↓ 4 callersFunction_assert_each_deployment_got_its_own_ids
(creates: tuple[Request, ...])
tests/integration/compatibility/test_fine_tuning_managed_files_chaos.py:216
↓ 4 callersFunction_assert_each_once
(sink: _Sink, markers: Sequence[str], seconds: float = 30)
tests/integration/observability/test_langtrace_delivery.py:574
↓ 4 callersFunction_assert_each_prompt_is_instructed_once
(received: tuple[Request, ...], markers: frozenset[str])
tests/integration/providers/test_ollama_prompt_tools_chaos.py:206
↓ 4 callersFunction_assert_each_prompt_rendered_once
(received: tuple[Request, ...], markers: frozenset[str])
tests/integration/providers/test_custom_prompt_template_chaos.py:147
↓ 4 callersFunction_assert_each_row_names_its_own_provider_request
(served: Sequence[_Served])
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:298
↓ 4 callersFunction_assert_ended_by_the_guardrail
(session: Session, *, violations: int)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:954
↓ 4 callersFunction_assert_error
(response: httpx.Response, expected: dict[str, JsonValue])
tests/integration/routing/test_non_chat_model_endpoint_gate.py:256
↓ 4 callersMethod_assert_every_attribute_encodes
(self, attrs: dict[str, object])
tests/unit/integrations/test_opentelemetry.py:6817
↓ 4 callersFunction_assert_every_upstream_effort_rounded
(shots: tuple[Shot, ...], received: tuple[Request, ...])
tests/integration/routing/test_reasoning_effort_levels_chaos.py:114
↓ 4 callersFunction_assert_failed_after_message_start
(response: httpx.Response, served_id: str)
tests/integration/routing/test_messages_stream_retry_budget_sources_owned_proxy.py:208
↓ 4 callersFunction_assert_failure_row
(row: Mapping[str, JsonValue], anthropic_error_type: str | None)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_mid_stream_failure_bookkeeping_wire.py:200
↓ 4 callersFunction_assert_forwarded_once_each
(received: tuple[Request, ...], calls: Sequence[_Call])
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:291
↓ 4 callersFunction_assert_internal_fields_stripped_reasoning_kept
(transformed_messages: Sequence[Mapping[str, object]])
tests/unit/llms/together_ai/chat/test_together_ai_chat_transformation.py:469
↓ 4 callersFunction_assert_logged_chat_relays
(ledgers: Sequence[Ledger], calls: Sequence[_Call])
tests/integration/providers/test_anthropic_refusal_stop_details_chaos.py:159
↓ 4 callersFunction_assert_missing_key
(ocr: Ocr)
tests/unit/rust_bridge/ocr/test_secrets.py:348
↓ 4 callersFunction_assert_model_denied
(outcome: StreamingResponse, model: str)
tests/e2e/management/test_management_e2e.py:90
↓ 4 callersFunction_assert_moonshot_stream_content
(chunks: Sequence[ModelResponseStream])
tests/unit/llms/bedrock/chat/test_invoke_handler.py:915
↓ 4 callersFunction_assert_native_requests_for
(received: tuple[Request, ...], calls: tuple[_Call, ...])
tests/integration/providers/test_bedrock_mantle_claude_chat_chaos.py:136
↓ 4 callersFunction_assert_negotiated
(observed: Observed, enabled: bool)
tests/integration/sdk/test_http2_wire.py:247
↓ 4 callersFunction_assert_no_bleed
(received: tuple[Request, ...], markers: frozenset[str])
tests/integration/providers/test_hosted_vllm_reasoning_content_chaos.py:215
↓ 4 callersFunction_assert_no_embedding_requests
(candidate: _SearchProxy)
tests/integration/configuration/test_search_embedding_model_settings.py:188
↓ 4 callersFunction_assert_no_fallback
(rig: Rig, peer: str, prompt: str)
tests/integration/providers/test_bedrock_mantle_context_overflow_fallbacks_wire.py:379
↓ 4 callersFunction_assert_no_served_row
(key: str, marker: str)
tests/integration/authorization/test_hidden_alias_budget_bypass.py:837
↓ 4 callersFunction_assert_one_stop_with
(response: httpx.Response, usage: Mapping[str, int])
tests/integration/streaming/test_google_genai_stream_usage_settings_wire.py:180
↓ 4 callersFunction_assert_one_stream_row_bills_both_rounds_once
( logged: Sequence[StandardLoggingPayload], chunks: Sequence[ModelResponseStream] )
tests/unit/responses/mcp/test_chat_completions_handler.py:1834
↓ 4 callersFunction_assert_one_upstream_call
(received: tuple[Request, ...], marker: str, target: str)
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:183
↓ 4 callersFunction_assert_openai_writes_then_reads_cache
(client: PassthroughClient, key: str, body: ChatBody)
tests/e2e/llm_translation/test_cache_control.py:193
↓ 4 callersFunction_assert_overloaded
(response: httpx.Response, *, message: str)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_overloaded_wire.py:121
↓ 4 callersFunction_assert_polyfill_applied
(response: Any, captured: Dict[str, Any])
tests/unit/llms/anthropic/messages/context_management/test_compact.py:2470
↓ 4 callersFunction_assert_provider_headers_recorded
(response)
tests/unit/llms/openai/test_openai.py:1700
↓ 4 callersFunction_assert_refused_before_the_provider
(response: httpx.Response, wire: Wire, backend: str)
tests/integration/providers/test_pdf_input_support_wire.py:141
↓ 4 callersFunction_assert_registered
(candidate: Gateway, consumers: Mapping[str, str])
tests/integration/configuration/test_callback_settings_boot.py:82
↓ 4 callersFunction_assert_rejected_before
( upstream: _Upstream, response: httpx.Response, marker: str, expected: dict[str, JsonValue] )
tests/integration/routing/test_non_chat_model_endpoint_gate.py:264
↓ 4 callersFunction_assert_response
(response: httpx.Response, marker: str, surface: str, stream: bool, model: str)
tests/integration/observability/test_arize_otel_v2_openinference_chaos.py:118
↓ 4 callersFunction_assert_revoked_everywhere
(proxies: tuple[Gateway, ...], key: str)
tests/integration/management/test_scim_group_delete.py:120
↓ 4 callersFunction_assert_router_failure_logging_is_coordinated
The sync failure_handler must not start until async_failure_handler has finished on the shared logging_obj.
tests/unit/test_router/test_router.py:12471
↓ 4 callersMethod_assert_routes_403
(self, exc)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:12747
↓ 4 callersFunction_assert_rpc_served
(response: httpx.Response)
tests/integration/mcp/test_mcp_access_matrix.py:670
↓ 4 callersFunction_assert_scim_group_resource
( response: httpx.Response, group_id: str, display_name: str, members: list[ScimGroupMember],
tests/integration/management/test_scim_admin_group.py:142
↓ 4 callersFunction_assert_scripted_turn_reached_upstream
(gateway: Gateway, project: str, location: str, session: Session)
tests/integration/providers/test_vertex_realtime_multi_region_host.py:275
↓ 4 callersFunction_assert_search_call_events
(events: Sequence[Mapping[str, JsonValue]], marker: str, final_status: str)
tests/integration/providers/test_responses_bridge_tool_search_wire.py:447
↓ 4 callersFunction_assert_served_by_fallback
(resp: StreamingResponse)
tests/e2e/router/test_reliability_fallbacks_e2e.py:60
↓ 4 callersFunction_assert_served_with_media
(response: httpx.Response, route: Route, marker: str, request: Request)
tests/integration/providers/test_cloudflare_clef_omni_media_wire.py:239
↓ 4 callersFunction_assert_server_matches
(row: McpServerRow, written: McpServerCreateBody, *, where: str)
tests/e2e/management/test_mcp_lifecycle_e2e.py:62
↓ 4 callersFunction_assert_single_model_spend_for_key
(key: str, call_type: str, *, expected_searches: int = 1)
tests/integration/streaming/test_interception_converted_stream_options.py:332
↓ 4 callersFunction_assert_still_serves
(gateway: Gateway, model: str)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_multi_tool_call_blocks_wire.py:783
↓ 4 callersFunction_assert_streamed_completion
A streamed /chat/completions must deliver real content, not a clean-but-empty stream (the #28991 class on the streaming path).
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:173
↓ 4 callersFunction_assert_toolset_matches
(row: ToolsetRow, written: ToolsetCreateBody, *, where: str)
tests/e2e/management/test_mcp_lifecycle_e2e.py:219
↓ 4 callersFunction_assert_trips_then_recovers
( client: ComplexityRouterClient, key: str, group: str, failing: str, backup: str, failure_status: int )
tests/e2e/router/test_reliability_cooldowns_e2e.py:183
← previousnext →17,201–17,300 of 202,479, ranked by callers