MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_logging_only_scope_respects_guardrail_selection_level
pytest.mark.parametrize( ("row_id", "scope", "selection"), ( pytest.param("E1", "output", "req
tests/integration/observability/test_logging_only_scope_runtime.py:None
Routetest_logging_only_scope_scans_configured_directions
pytest.mark.parametrize( "scope,continue_on_input_failure,expected_calls", ( (None
tests/unit/integrations/test_custom_guardrail.py:None
Routetest_logging_only_settings_table
pytest.mark.parametrize( ("scope", "continue_on_input_failure", "expected_direction", "expected_contin
tests/unit/proxy/guardrails/test_guardrail_registry.py:None
Routetest_logout_on_a_read_only_directory_still_takes_the_secret_out_of_the_file
pytest.mark.skipif(os.geteuid() == 0, reason="root ignores directory permissions")
tests/unit/proxy/client/cli/test_auth_commands.py:None
Routetest_logout_reports_a_token_file_it_cannot_clear
pytest.mark.skipif(os.geteuid() == 0, reason="root ignores file permissions")
tests/unit/proxy/client/cli/test_auth_commands.py:None
Routetest_logs_drawer_detail_route_in_every_route_group
pytest.mark.parametrize( "route_group_name", [ "spend_tracking_routes", "internal_user
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_long_context_1m_anthropic
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/long_context_1m/test_anthropic.py:None
Routetest_long_context_1m_azure
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/long_context_1m/test_azure.py:None
Routetest_long_context_1m_bedrock_converse
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/long_context_1m/test_bedrock_converse.py:None
Routetest_long_context_1m_bedrock_invoke
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/long_context_1m/test_bedrock_invoke.py:None
Routetest_long_context_1m_vertex_ai
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/long_context_1m/test_vertex_ai.py:None
Routetest_long_window_blocks_after_short_window_resets
pytest.mark.covers("quota_management.budget.key_multi_window.blocks_then_resets")
tests/e2e/quota_management/budgets/test_multi_window_budget_e2e.py:None
Routetest_lookup_handlers_raise_the_provider_error_status
pytest.mark.parametrize( "name", ( "vector_store_retrieve", "vector_store_list",
tests/unit/llms/custom_httpx/test_llm_http_handler.py:None
Routetest_lowering_1_0_to_0_3_tolerates_unknown_upstream_fields
pytest.mark.parametrize( "method, result", [ ( "message/send", {
tests/unit/proxy/a2a/test_version_convert.py:None
Routetest_lyria_malformed_item_position_does_not_change_the_mapped_error
pytest.mark.parametrize( "payload", [ pytest.param({"steps": [{"type": "thought"}] * 403 + ["n
tests/unit/llms/vertex_ai/text_to_speech/test_transformation.py:None
Routetest_lyria_transform_response_rejects_malformed_payloads_without_echoing_them
pytest.mark.parametrize( ("model", "payload"), [ ("lyria-002", ["not", "an", "object"]),
tests/unit/llms/vertex_ai/text_to_speech/test_transformation.py:None
Routetest_lyria_transform_response_tolerates_optional_and_unread_provider_fields
pytest.mark.parametrize( ("model", "payload", "expected_audio", "expected_mime_type"), [ pytes
tests/unit/llms/vertex_ai/text_to_speech/test_transformation.py:None
Routetest_lyria_transform_response_without_audio_reports_it_missing
pytest.mark.parametrize( ("model", "payload"), [ ("lyria-002", {}), ("lyria-002", {"pr
tests/unit/llms/vertex_ai/text_to_speech/test_transformation.py:None
Routetest_m05_to_m07_a_deployment_flag_false_on_an_arn_strips_cache_points_on_every_route
pytest.mark.parametrize("route", _ROUTES, ids=("m05-plain-route", "m06-converse-route", "m07-converse-like-rou
tests/integration/providers/test_bedrock_kimi_k3_cache_point_wire.py:None
Routetest_magistral_reasoning_request_the_prompt_honors_does_not_warn
pytest.mark.parametrize( "param, value", ( ("reasoning_effort", "low"), ("reasoning_ef
tests/unit/llms/mistral/test_mistral_chat_transformation.py:None
Routetest_main_exits_zero_when_only_prisma_generate_fails
patch("litellm.proxy.prisma_migration.subprocess.run")
tests/unit/proxy/test_prisma_migration.py:None
Routetest_main_propagates_migration_failure
patch("litellm.proxy.prisma_migration.subprocess.run")
tests/unit/proxy/test_prisma_migration.py:None
Routetest_main_reads_both_revisions_from_git
pytest.mark.parametrize( ("head_ref", "expected_code", "expected_line"), [ (BOT_REF, 1, "- bot
tests/unit/test_cost_map_guard.py:None
Routetest_main_runs_the_migration_job_with_no_opt_out
patch("litellm.proxy.prisma_migration.subprocess.run")
tests/unit/proxy/test_prisma_migration.py:None
Routetest_malformed_block_answers_400_naming_the_field
pytest.mark.parametrize( "block, named_in_error", [ ( _file_block(
tests/unit/llms/vertex_ai/gemini_embeddings/test_batch_embed_content_transformation.py:None
Routetest_malformed_clips_on_a_model_without_support_are_refused_unless_the_deployment_drops_params
pytest.mark.parametrize("route", ("/v1/systemone", "/v1/decisions"))
tests/integration/providers/test_cloudflare_clef_omni_media_wire.py:None
Routetest_malformed_disable_prepared_statements_env_var_is_rejected_even_when_config_enables_it
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_malformed_excluded_services_logs_and_still_builds_the_config
pytest.mark.parametrize( "given,expected,logged", [ (None, frozenset(), None), ("", fr
tests/unit/integrations/otel/test_otel_v2_config_baggage_parenting_guardrails.py:None
Routetest_malformed_field_400_names_the_edit_and_field_as_the_api_does
pytest.mark.parametrize( ("field", "value", "message"), [ ("exclude_tools", "memory", "exclude
tests/unit/llms/anthropic/messages/context_management/test_clear_tool_uses.py:None
Routetest_malformed_fields_are_a_400_even_below_the_trigger
pytest.mark.parametrize( ("field", "value"), [ ("clear_at_least", {"type": "tool_uses", "value
tests/unit/llms/anthropic/messages/context_management/test_clear_tool_uses.py:None
Routetest_malformed_filter_keys_are_unknown_parameters_not_eq_filters
pytest.mark.parametrize( "name", ["filter[]", "filter[a][b][c]", "filter[a][", "filter", "filter[a][gt
tests/unit/proxy/list_api/test_list_framework.py:None
Routetest_malformed_jsonl_upload_rejected
meta(Subject(domain=Domain.LLM_TRANSLATION, route=Route.FILES))
tests/e2e/batches/test_batches_e2e.py:None
Routetest_malformed_media_returns_sanitized_client_error_without_mutating_input
pytest.mark.parametrize( ("kind", "part"), [ ("direct", {"type": "input_audio"}), ("di
tests/unit/responses/litellm_completion_transformation/test_function_call_output_normalization.py:None
Routetest_malformed_number_setting_is_dropped_with_drop_params
pytest.mark.parametrize( "session", [ {"temperature": "0.2", "max_response_output_
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_transformation.py:None
Routetest_malformed_output_format_is_dropped_under_drop_params
pytest.mark.parametrize("output_format", ["json", ["json_schema"], 42])
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_structured_outputs.py:None
Routetest_malformed_pins_are_reported
pytest.mark.parametrize( ("pins", "expected"), [ ( "{not json", f"{gua
tests/unit/test_cost_map_guard.py:None
Routetest_malformed_protocol_version_rejected
meta( Subject( domain=Domain.AGENTS_API, route=Route.A2A, ) )
tests/e2e/a2a/test_a2a_agent_e2e.py:None
Routetest_malformed_session_updates_are_rejected
pytest.mark.parametrize( ("payload", "message"), [ ("not json", "invalid JSON object"),
tests/unit/llms/base_llm/realtime/test_transcription_protocol.py:None
Routetest_malformed_setting_denies
pytest.mark.parametrize("raw", ["member_key_budgets", 7, [1, 2]])
tests/unit/proxy/management_endpoints/test_team_admin_field_permissions.py:None
Routetest_malformed_setting_is_rejected_without_drop_params
pytest.mark.parametrize( "session,param", [ ({"temperature": "0.2"}, "session.temp
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_transformation.py:None
Routetest_malformed_tool_lists_yield_no_names
pytest.mark.parametrize( ("route", "data"), [ ("/v1/chat/completions", {"tools": 5
tests/unit/proxy/test_tools_allowlist_enforcement.py:None
Routetest_malformed_tools_answer_400_and_never_reach_the_provider
pytest.mark.parametrize("route", _ROUTES.values(), ids=_ROUTES.keys())
tests/integration/providers/test_malformed_tools_wire.py:None
Routetest_managed_agent_cannot_bypass_grants_with_server_default
pytest.mark.parametrize( "route,settings,cli_model", [ ("/v1/chat/completions", {"completion_m
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_managed_agent_endpoints_call_the_handler_directly_with_gemini_by_default
pytest.mark.parametrize( ("endpoint", "op"), [ ("acreate_agent", "agents.acreate"), ("
tests/unit/test_router/core/test_endpoints_characterization_generic.py:None
Routetest_managed_agent_model_policy_checks_dispatched_model
pytest.mark.parametrize( "models,key_aliases,team_aliases,allowed", [ (["fast"], {}, {}, True)
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:None
Routetest_managed_application_uses_persisted_identity_without_provisioning_human
pytest.mark.parametrize( "route,allowed", [ ("/chat/completions", True), ("/v1/messages", True
tests/unit/proxy/auth/test_handle_jwt.py:None
Routetest_managed_batch_routes_pass_team_model_access_check
pytest.mark.parametrize( "route, request_data", [ ("/v1/batches/{batch_id}", {"batch_id": _MAN
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_managed_inference_query_model_takes_precedence_over_body
pytest.mark.parametrize("route", ["/v1/chat/completions", "/v1/images/generations", "/v1/images/edits"])
tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.py:None
Routetest_managed_inference_resolves_dispatch_precedence
pytest.mark.parametrize( "route,body,settings,cli_model,path_model,expected", [ ("/v1/chat/com
tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.py:None
Routetest_managed_live_upgrade_defers_the_model_to_the_session_start_frame
pytest.mark.parametrize("route", ["/live/sessions", "/v1/live/sessions", "/openai/v1/live/sessions"])
tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.py:None
Routetest_managed_object_kwargs_carry_exchanged_bearer
pytest.mark.parametrize( ("method", "url", "response", "invoke"), [ pytest.param(
tests/unit/llms/openai/test_openai_workload_identity.py:None
Routetest_managed_realtime_requires_a_model_and_ignores_completion_defaults
pytest.mark.parametrize( "route", ( "/realtime", "/v1/realtime", "/openai/v1/r
tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.py:None
Routetest_managed_route_scope_excludes_provider_resources
pytest.mark.parametrize( "route,method,allowed", [ ("/v1/agents", "GET", True), ("/v1/
tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.py:None
Routetest_managed_step_up_advertises_sdk_compatible_metadata_and_bound_permissions
pytest.mark.parametrize("route", ["/mcp", "/toolset/{toolset}/mcp"])
tests/integration/mcp/test_mcp_oauth_flows.py:None
Routetest_managed_target_rechecks_authoritative_key_after_peer_revocation
pytest.mark.parametrize( "change", ("grant", "permission_reference", "groups", "team", "blocked", "expired
tests/unit/proxy/agent_endpoints/auth/test_agent_permission_handler.py:None
Routetest_managed_translation_authorizes_the_same_model_as_the_endpoint
pytest.mark.parametrize("route", ("/realtime/translations", "/v1/realtime/translations"))
tests/unit/proxy/agent_endpoints/auth/test_managed_authorization.py:None
Routetest_management_patch_default_on_heals_stored_scope
pytest.mark.parametrize( ("row_id", "stored_scope"), ( pytest.param("H8", "output", id="H8-pat
tests/integration/observability/test_logging_only_scope_config.py:None
Routetest_management_post_validates_logging_only_scope
pytest.mark.parametrize( ("row_id", "provider", "mode", "scope", "expected_status", "expected_scope", "exp
tests/integration/observability/test_logging_only_scope_config.py:None
Routetest_mantle_drop_params_cuts_a_responses_breakpoint_down_to_its_mode
pytest.mark.parametrize( "marker, wire_part", [ ( {"mode": "explicit", "ttl": "30m
tests/unit/llms/bedrock_mantle/test_bedrock_mantle_responses_transformation.py:None
Routetest_mantle_drop_params_sends_an_unlisted_model_only_a_bare_explicit_breakpoint
pytest.mark.parametrize( "marker, wire_part", [ ({"mode": "explicit", "ttl": "1h"}, {"type": "
tests/unit/llms/bedrock_mantle/test_bedrock_mantle_responses_transformation.py:None
Routetest_map_extra_body_params_strips_unsupported_nim_vllm_params
pytest.mark.parametrize( "param,value", [ ("stop_token_ids", [1, 2]), ("include_stop_s
tests/unit/llms/fireworks_ai/chat/test_fireworks_ai_chat_transformation.py:None
Routetest_map_openai_params
pytest.mark.parametrize( "non_default_params,expected", [ ({"n": 3}, {"num_images": 3}),
tests/unit/llms/fal_ai/image_generation/test_fal_ai_gpt_image_2_transformation.py:None
Routetest_map_openai_params_answers_400_for_the_openai_tool_search_tool_without_drop_params
pytest.mark.parametrize( ("model", "names_invoke_route"), [ pytest.param("us.anthropic.claude-
tests/unit/llms/bedrock/chat/test_converse_transformation.py:None
Routetest_map_openai_params_clamps_max_output_tokens_below_minimum
pytest.mark.parametrize("max_output_tokens", [1, 15])
tests/unit/llms/openai/responses/test_openai_responses_transformation.py:None
Routetest_map_openai_params_includes_functions
patch("litellm.utils.supports_function_calling", return_value=True)
tests/unit/llms/publicai/test_publicai_chat_transformation.py:None
Routetest_map_openai_params_upgrades_legacy_thinking_on_adaptive_only_claude
pytest.mark.parametrize( "model, expected_thinking, expected_output_config", [ ("databricks-cl
tests/unit/llms/databricks/chat/test_databricks_chat_transformation.py:None
Routetest_map_stop_sequences
pytest.mark.parametrize( "stop_input,expected_output,drop_params", [ ("stop", ["stop"], True),
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_map_team_model_should_not_iterate_aliases_for_non_alias_team_model_name
pytest.mark.usefixtures("_vcr_outcome_gate_router_unit", "setup_and_teardown_router_unit")
tests/unit/test_router/test_router.py:None
Routetest_mapped_baggage_tags_reach_spend_and_callbacks_but_not_requester_metadata
pytest.mark.parametrize("route", ["chat", "chat_litellm_metadata", "messages", "responses"])
tests/integration/spend/test_baggage_tag_mappings.py:None
Routetest_mapped_error_carries_the_upstream_error_response
pytest.mark.parametrize( "route", (_completion, _completion_stream, _acompletion, _acompletion_stream,
tests/unit/llms/openai/test_openai.py:None
Routetest_mapped_tag_merges_with_existing_tags_in_the_budget_metadata_slot
pytest.mark.parametrize( "route,slot", [("/chat/completions", "metadata"), ("/v1/messages", "litellm_m
tests/unit/proxy/common_utils/test_request_tag_mappings.py:None
Routetest_mapping_survives_cached_body_read_without_leaking_auth_query_fields
pytest.mark.parametrize( "route,slot", [("/chat/completions", "metadata"), ("/v1/messages", "litellm_m
tests/unit/proxy/common_utils/test_request_tag_mappings.py:None
Routetest_maps_single_app_role
pytest.mark.parametrize( "app_roles, expected", [ (["proxy_admin"], LitellmUserRoles.PROXY_ADM
tests/unit/proxy/management_endpoints/test_entraid_app_roles.py:None
Routetest_marengo_3_embedding_sends_the_nested_payload_and_parses_512_dims
pytest.mark.parametrize( "model,kwargs,expected_body,expected_usage_details", [ (
tests/unit/llms/bedrock/embed/test_bedrock_embedding.py:None
Routetest_marengo_3_text_embedding_nests_input_text_under_input_type
pytest.mark.covers("providers.bedrock_embedding.marengo_3_text_input_reaches_bedrock_nested_under_input_type")
tests/integration/providers/test_bedrock_marengo_embed_3_wire.py:None
Routetest_marengo_3_video_and_audio_still_require_the_async_route
pytest.mark.parametrize("input_type", ["video", "audio"])
tests/unit/llms/bedrock/embed/test_twelvelabs_marengo_3_transformation.py:None
Routetest_marketplace_auth_required_keeps_a_valid_key_refusal_status
pytest.mark.parametrize( "limited_key_auth, status_code", [ ( UserAPIKeyAuth(
tests/unit/proxy/anthropic_endpoints/test_claude_code_marketplace.py:None
Routetest_mask_flag_headers_parse_as_booleans
pytest.mark.parametrize( ("headers", "masked"), [ pytest.param({"langfuse_mask_input": "true",
tests/integration/observability/test_langfuse_otel_trace_fields.py:None
Routetest_mask_flags_redact_the_derived_trace_io
pytest.mark.parametrize( ("mask_flags", "masked_trace_keys"), [ ({"mask_input": Tr
tests/unit/integrations/test_langfuse_otel.py:None
Routetest_mask_input_from_the_request_body_is_unchanged
pytest.mark.parametrize( "mask_input, expect_redacted", [ (False, False), (True, True)
tests/unit/integrations/test_langfuse.py:None
Routetest_mask_rejects_violation_it_cannot_mask
pytest.mark.parametrize( ("run_hook", "lakera_response"), [ (_run_pre_call, PII_AN
tests/unit/proxy/guardrails/guardrail_hooks/test_lakera_ai_v2.py:None
Routetest_masked_stream_that_ended_in_an_upstream_error_still_ends_in_that_error
pytest.mark.parametrize( ("delivered_content", "upstream_stopped_indices"), [ (_upstream_strea
tests/unit/proxy/guardrails/test_anthropic_sse.py:None
Routetest_max_budget_alert_labels_team_member_budget
pytest.mark.parametrize( "event_group, expected_prefix", [ (Litellm_EntityType.TEAM_MEMBER, "T
tests/unit/integrations/SlackAlerting/test_slack_alerting.py:None
Routetest_max_effort_accepted_for_sonnet_46_variants
pytest.mark.parametrize( "model", [ "claude-sonnet-4-6", "claude-sonnet-4-6-20260219",
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_max_fallbacks_bounds_the_depth_of_a_chained_walk
pytest.mark.parametrize( ("constructor", "process", "expected"), [ ({"max_fallbacks": 0}, {},
tests/unit/test_router/core/test_fallbacks.py:None
Routetest_max_fallbacks_comes_from_the_argument_then_litellm_max_fallbacks_then_router_max_fallbacks
pytest.mark.parametrize( ("argument", "host_max", "host_router_max", "expected"), [(3, 9, 11, 3), (0,
tests/unit/test_router/core/test_construction_precall_characterization.py:None
Routetest_max_output_tokens_below_mantle_minimum_is_raised_to_16_before_reaching_mantle
pytest.mark.covers("providers.bedrock_mantle.max_output_tokens_below_minimum_is_clamped_to_16_on_the_wire")
tests/integration/providers/test_bedrock_mantle_responses_wire.py:None
Routetest_max_requests_before_restart_flag
patch("uvicorn.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_max_requests_before_restart_jitter_flag
patch("uvicorn.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_maybe_log_raw_request_creates_span
patch.dict(os.environ, {"OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT": ""})
tests/unit/integrations/test_opentelemetry.py:None
Routetest_maybe_log_raw_request_skips_when_logging_disabled
patch("litellm.turn_off_message_logging", True)
tests/unit/integrations/test_opentelemetry.py:None
Routetest_maybe_raise_for_error_event_raises_context_window_exceeded_directly
pytest.mark.parametrize( "message", ( "This model's maximum context length is 128000 tokens. H
tests/unit/responses/test_streaming_iterator_error_events.py:None
Routetest_mcp_call_modes_pass_event_hook_validation
pytest.mark.parametrize("mode", ["pre_mcp_call", "during_mcp_call", "post_mcp_call"])
tests/unit/proxy/guardrails/guardrail_hooks/test_generic_guardrail_api.py:None
Routetest_mcp_client_ssl_configuration_from_env
patch.object(mcp_client_module, "streamable_http_client")
tests/unit/mcp_client/test_mcp_client.py:None
Routetest_mcp_client_ssl_verify_custom_path
patch.object(mcp_client_module, "streamable_http_client")
tests/unit/mcp_client/test_mcp_client.py:None
Routetest_mcp_client_ssl_verify_parameter
patch.object(mcp_client_module, "sse_client")
tests/unit/mcp_client/test_mcp_client.py:None
Routetest_mcp_client_stdio_connect_success
patch("litellm.mcp_client.client.stdio_client")
tests/unit/mcp_client/test_mcp_client.py:None
Routetest_mcp_credential_reaches_only_its_peer
pytest.mark.timeout(240) # full S1/S2 walk: every table and ~400 GET routes as two callers
tests/integration/security/test_mcp_slots.py:None
Routetest_mcp_description_does_not_change_admission_or_reserved_tokens
pytest.mark.parametrize( "description", [None, "Gateway metadata, not caller input. " * 100], ids=["unlist
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:None
Routetest_mcp_description_preserves_project_input_and_output_reservations
pytest.mark.parametrize( "description", [None, "Gateway metadata, not caller input. " * 100], ids=["unlist
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:None
← previousnext →3,401–3,500 of 5,595, ranked by callers