MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_langsmith_sampling_rate_empty_env_var_defaults
patch.dict(os.environ, {"LANGSMITH_SAMPLING_RATE": ""}, clear=False)
tests/unit/integrations/test_langsmith_init.py:None
Routetest_langsmith_sampling_rate_from_integer_env_var
patch.dict(os.environ, {"LANGSMITH_SAMPLING_RATE": "1"}, clear=False)
tests/unit/integrations/test_langsmith_init.py:None
Routetest_langsmith_sampling_rate_invalid_env_var_defaults
patch.dict(os.environ, {"LANGSMITH_SAMPLING_RATE": "invalid"}, clear=False)
tests/unit/integrations/test_langsmith_init.py:None
Routetest_langsmith_sampling_rate_parameter_respected_with_valid_env
patch.dict(os.environ, {"LANGSMITH_SAMPLING_RATE": "1"}, clear=False)
tests/unit/integrations/test_langsmith_init.py:None
Routetest_langsmith_sampling_rate_zero_parameter_falls_back_to_env
patch.dict(os.environ, {"LANGSMITH_SAMPLING_RATE": "1"}, clear=False)
tests/unit/integrations/test_langsmith_init.py:None
Routetest_latency_based_routes_around_deployment_that_times_out
pytest.mark.skip( reason="LIT-7682: since #40229 the per-request routing_strategy override runs withou
tests/e2e/router/test_reliability_routing_strategies_e2e.py:None
Routetest_latest_alias_is_blocked_by_either_model_budget
pytest.mark.parametrize("budget_alias", (False, True))
tests/unit/proxy/hooks/test_model_max_budget_limiter.py:None
Routetest_latest_alias_is_blocked_by_either_rate_limit
pytest.mark.parametrize("budget_alias", (False, True))
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:None
Routetest_latest_alias_messages_falls_back_without_changing_the_pinned_model_rollout
pytest.mark.parametrize( ("model", "expected"), ( ("anthropic/claude-opus-latest", Rollout.PYT
tests/unit/rust_bridge/test_catalog.py:None
Routetest_latest_aliases_cost_the_same_as_their_current_target
pytest.mark.parametrize( "alias,target", [ ("gemini/gemini-flash-latest", "gemini/gemini-3.8-f
tests/unit/llms/gemini/test_cost_calculator.py:None
Routetest_latest_turn_mode_keeps_the_whole_request_of_a_responses_turn_served_by_the_chat_bridge
pytest.mark.parametrize( ("standard_payload", "expected"), [ ( {"call_type": "ares
tests/unit/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_lazy_session_creation
patch("litellm.llms.custom_httpx.aiohttp_handler.aiohttp.ClientSession")
tests/unit/llms/custom_httpx/test_aiohttp_handler.py:None
Routetest_least_busy_avoids_deployment_with_request_in_flight
pytest.mark.skip( reason="LIT-7682: since #40229 the per-request routing_strategy override runs withou
tests/e2e/router/test_reliability_routing_strategies_e2e.py:None
Routetest_legacy_computer_tools_drop_defer_loading_and_allowed_callers
pytest.mark.parametrize("tool_type", ["computer_20241022", "computer_20250124"])
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_legacy_resolver_flag_reaches_database_setup
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_legacy_returns_default_flag_servers_when_whitelist_is_none
patch("litellm.public_mcp_hub_strict_whitelist", False)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:None
Routetest_legacy_sse_respects_virtual_key_route_permissions
pytest.mark.parametrize("route", ("/mcp/sse", "/mcp/sse/", "/mcp/sse/messages", "/mcp/sse/messages/"))
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_legacy_thinking_budget_becomes_adaptive_effort_only_on_models_that_reject_budgets
pytest.mark.parametrize( ("upstream_model", "sent", "received"), ( pytest.param( "
tests/integration/messages_endpoint/providers/anthropic/reasoning/test_anthropic_reasoning_request_translation_wire.py:None
Routetest_legacy_thinking_budget_buckets_on_opus_48
pytest.mark.parametrize( "budget_tokens,expected_effort", [ (DEFAULT_REASONING_EFFORT_XHIGH_TH
tests/unit/llms/anthropic/messages/native/test_reasoning_effort_translation.py:None
Routetest_legacy_thinking_translated_to_adaptive_on_adaptive_only_converse
pytest.mark.parametrize( "model,budget_tokens,expected_effort", [ ("anthropic.claude-opus-4-8"
tests/unit/llms/bedrock/chat/test_converse_transformation.py:None
Routetest_legacy_thinking_translated_to_adaptive_on_adaptive_only_models
pytest.mark.parametrize( "model,budget_tokens,expected", [ ("claude-opus-4-8", 4096, ({"type":
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_legacy_unions_whitelist_and_default_flag
patch("litellm.public_mcp_hub_strict_whitelist", False)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:None
Routetest_legacy_update_clears_tpm_limit_when_sent_null
pytest.mark.parametrize( "body", [ {"organization_id": "org-1", "tpm_limit": None}, {"
tests/unit/proxy/management_endpoints/test_organization_endpoints.py:None
Routetest_legacy_update_rejects_json_body_that_is_not_an_object_before_reading_the_database
pytest.mark.parametrize("body", [[], ["litellm_budget_table"], "organization_id", 5, 1.5, True, None])
tests/unit/proxy/management_endpoints/test_organization_endpoints.py:None
Routetest_legitimate_passthrough_routes_still_classified_as_llm_route
pytest.mark.parametrize( "route", [ "/openai/v1/chat/completions", "/openai",
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_lens_management_does_not_require_an_inference_user_parameter
pytest.mark.parametrize("route", ("/lens/datasets", "/lens/tracing/keys"))
tests/unit/proxy/auth/test_auth_checks.py:None
Routetest_lens_oauth2_dispatch_preserves_opt_in_premium_and_route_boundary
pytest.mark.parametrize( ("route", "enabled", "premium"), [("/lens", False, True), ("/lens/traces", Tr
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_lens_oauth2_validates_identity_without_inference_user_field
pytest.mark.parametrize("route", ["/lens", "/lens/traces", "/lens/settings"])
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_levo_config_headers_format
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/unit/integrations/levo/test_levo.py:None
Routetest_levo_logger_callback_name
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/unit/integrations/levo/test_levo.py:None
Routetest_levo_logger_health_check_unhealthy
patch.dict("os.environ", {}, clear=True)
tests/unit/integrations/levo/test_levo.py:None
Routetest_limit_concurrency_passed_to_uvicorn
patch("uvicorn.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_line_too_deep_or_too_long_to_parse_rejected_as_invalid_json
pytest.mark.parametrize( "unparseable_line", [b"[" * 1_000_000, b'{"n": ' + b"9" * (sys.get_int_max_st
tests/unit/proxy/openai_files_endpoint/test_files_batch_file_validation.py:None
Routetest_link_only_enforces_key_permissions_on_the_first_and_cached_requests
pytest.mark.parametrize("restriction", ["models", "allowed_routes"])
tests/integration/authorization/test_jwt_auto_register_map_existing_key.py:None
Routetest_list_containers_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/unit/test_container_router.py:None
Routetest_list_events_ordered
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_events_respects_limit
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_events_unknown_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_files_validates_the_limit_on_every_branch
pytest.mark.parametrize( "path", [ "/v1/files?limit=0", "/v1/files?limit=0&target_mode
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:None
Routetest_list_filters_by_multiple_statuses
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_filters_by_status
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_messages_ordered
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_messages_respects_limit
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_page_cursors_address_only_the_callers_own_files
meta(Subject(domain=Domain.LLM_TRANSLATION, route=Route.FILES, providers=(MetaProvider.OPENAI,)))
tests/e2e/batches/test_batches_e2e.py:None
Routetest_list_returns_runs
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_tags_rejects_invalid_date_range
pytest.mark.parametrize( "query, expected_detail_fragment", [ ("?start_date=2026-04-01", "must
tests/unit/proxy/management_endpoints/test_tag_management_endpoints.py:None
Routetest_list_tasks_status_filter_lowers_to_0_3_wire_value
pytest.mark.parametrize( "proto_status, expected", [ ("TASK_STATE_COMPLETED", "completed"),
tests/unit/proxy/a2a/test_version_convert.py:None
Routetest_list_tools
patch.object(mcp_client_module, "streamable_http_client")
tests/unit/proxy/mcp_server/test_mcp_client_unit.py:None
Routetest_list_tools_denied_without_permission
meta( Subject( domain=Domain.MCP, route=Route.MCP, ) )
tests/e2e/mcp/test_mcp_key_access_e2e.py:None
Routetest_list_tools_follows_next_cursor_until_exhausted
patch.object(mcp_client_module, "streamable_http_client") # test-quality-ok: exercises MCPClient wiring; the
tests/unit/proxy/mcp_server/test_mcp_client_unit.py:None
Routetest_list_tools_no_db_returns_500
patch("litellm.proxy.proxy_server.prisma_client", None)
tests/unit/proxy/management_endpoints/test_tool_management_endpoints.py:None
Routetest_list_tools_returns_200
patch( "litellm.proxy.db.tool_registry_writer.list_tools", new_callable=AsyncMock, )
tests/unit/proxy/management_endpoints/test_tool_management_endpoints.py:None
Routetest_list_tools_swallows_mid_walk_error_without_raise_on_error
patch.object(mcp_client_module, "streamable_http_client") # test-quality-ok: exercises MCPClient wiring; the
tests/unit/proxy/mcp_server/test_mcp_client_unit.py:None
Routetest_list_tools_with_policy_filter
patch( "litellm.proxy.db.tool_registry_writer.list_tools", new_callable=AsyncMock, )
tests/unit/proxy/management_endpoints/test_tool_management_endpoints.py:None
Routetest_list_users_success
patch("requests.get")
tests/unit/proxy/client/test_users.py:None
Routetest_list_users_unauthorized
patch("requests.get")
tests/unit/proxy/client/test_users.py:None
Routetest_listed_moderation_model_merges_the_router_default
pytest.mark.parametrize( ("body", "expected_input"), (({}, "router default input"), ({"input": "explic
tests/integration/compatibility/test_status_code_followups_defaults.py:None
Routetest_listed_router_request_is_sent_to_the_router_resource_and_billed_at_the_served_models_rate
pytest.mark.parametrize("router", _LISTED_ROUTERS)
tests/unit/llms/fireworks_ai/chat/test_fireworks_ai_chat_transformation.py:None
Routetest_listed_router_short_name_resolves_to_its_catalog_row_and_accepts_tool_choice_and_reasoning
pytest.mark.parametrize("router", _LISTED_ROUTERS)
tests/unit/llms/fireworks_ai/chat/test_fireworks_ai_chat_transformation.py:None
Routetest_listing_round_trips_entire_source_name
pytest.mark.parametrize( "name", ["foo", "foo[1m]", "foo[1M]", "a/b: 世界", "claude-router-foo", "claude-opu
tests/unit/proxy/common_utils/test_model_listing_utils.py:None
Routetest_listing_skips_a_stdio_server_quietly_while_stdio_is_not_enabled
pytest.mark.parametrize( "listing", [ lambda manager, server: manager._get_tools_f
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:None
Routetest_lite_imports_only_the_command_it_runs
pytest.mark.parametrize( ("argv", "loaded", "not_loaded"), [ (("logout", "--help"), {"auth"},
tests/unit/test_litellm_cli.py:None
Routetest_litellm_api_base
pytest.mark.parametrize("route_type", ["completion", "embedding"])
tests/unit/llms/vertex_ai/test_vertex.py:None
Routetest_litellm_api_base
pytest.mark.parametrize( ("provider", "route"), [ ("gemini", "completion"), ("gemini",
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_litellm_executed_provider_for_leaves_a_server_with_its_own_files_api_alone
pytest.mark.parametrize( ("lacks_files_api", "expected"), [(True, "hosted_vllm"), (False, None)], ids=["ba
tests/unit/proxy/batches_endpoints/test_litellm_executed_batches.py:None
Routetest_litellm_params_override_scope_and_auth_url
patch(f"{AUTH_MODULE}._request_token_sync")
tests/unit/llms/gigachat/test_authenticator.py:None
Routetest_litellm_speech_dispatches_to_lyria_api
pytest.mark.parametrize( ("model", "response_format", "response_json", "expected_url", "expected_body"
tests/unit/llms/vertex_ai/text_to_speech/test_transformation.py:None
Routetest_litellm_speech_vertex_ai_chirp
patch("litellm.llms.custom_httpx.llm_http_handler.HTTPHandler.post")
tests/unit/llms/vertex_ai/text_to_speech/test_transformation.py:None
Routetest_litellm_speech_with_ssml_passthrough
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/azure/text_to_speech/test_azure_tts_transformation.py:None
Routetest_litellm_verification_token_view_response_with_budget_table
pytest.mark.parametrize( "associated_budget_table, expected_user_api_key_auth_key, expected_user_api_key_a
tests/unit/proxy/test_proxy_utils.py:None
Routetest_live_catalog_keeps_a_model_the_cost_map_dates_as_retired
patch.dict(os.environ, {"BASETEN_API_KEY": "test-key"})
tests/unit/llms/baseten/chat/test_baseten_completions.py:None
Routetest_live_session_frame_authorization_denial_closes_with_policy_code
pytest.mark.parametrize( ("denial_type", "expected_code"), (("user_model_access_denied", "model_not_al
tests/unit/proxy/test_proxy_server.py:None
Routetest_liveness_reports_alive_without_auth
meta( Subject( domain=Domain.DEPLOY_OPS, route=Route.HEALTH, ) )
tests/e2e/other/test_health_lifecycle_e2e.py:None
Routetest_llama2_tokenizer_api_failure
patch("litellm.utils.tokenizer_dispatch.from_pretrained")
tests/unit/litellm_core_utils/test_token_counter.py:None
Routetest_llama3_tokenizer_api_failure
patch("litellm.utils.tokenizer_dispatch.from_pretrained")
tests/unit/litellm_core_utils/test_token_counter.py:None
Routetest_llm_api_routes_group_grants_every_llm_endpoint
pytest.mark.covers("other.auth.virtual_key.route_group_allowed")
tests/e2e/access_control/test_access_control_e2e.py:None
Routetest_llm_call_adapter_names_the_routed_model_for_an_auto_router_call
pytest.mark.parametrize( ("model_group", "response_model", "expected"), [ ("auto-router", "aut
tests/unit/integrations/otel/test_otel_v2_sources_of_truth.py:None
Routetest_llm_classifier_runs_and_routes_by_semantic_tier
pytest.mark.covers("reliability.routing.complexity_llm_classifier.routes_by_llm_tier")
tests/e2e/router/test_complexity_router_e2e.py:None
Routetest_llm_guard_call_type_aliases
pytest.mark.parametrize( "call_type, payload_key", ( ("completion", "messages"), ("aco
tests/unit/enterprise/enterprise_callbacks/test_llm_guard.py:None
Routetest_llm_only_key_forbidden_from_management_route_403
meta( Subject( domain=Domain.PROXY_AUTH, route=Route.MODEL_MANAGEMENT,
tests/e2e/access_control/test_access_control_e2e.py:None
Routetest_llm_only_key_forbidden_from_management_writes
pytest.mark.covers("other.auth.virtual_key.route_permission_enforced")
tests/e2e/management/test_management_e2e.py:None
Routetest_load_router_config
mock.patch("litellm.proxy.proxy_server.litellm.Cache")
tests/unit/proxy/test_proxy_server.py:None
Routetest_loaded_fallback_selects_expected_deployment_and_keeps_response_identity
pytest.mark.covers("other.routing.fallback.loaded_configuration_selects_only_permitted_target")
tests/integration/routing/test_observed_routing.py:None
Routetest_loaded_router_preserves_cached_defaults_during_real_requests
pytest.mark.covers("quota_management.spend_tracking.default_prices.loaded_router_preserves_cached_defaults")
tests/integration/pricing/test_configured_prices.py:None
Routetest_local_decisions_routes_preserve_wire_auth_usage_and_spend
pytest.mark.parametrize("route", ("/v1/systemone", "/v1/decisions"), ids=("systemone", "decisions"))
tests/integration/providers/test_decisions_wire.py:None
Routetest_local_rate_limit_fallbacks_resolve_saved_aliases
pytest.mark.parametrize("alias_source", ["key_alias", "key_router", "team_router"])
tests/integration/routing/test_non_chat_model_endpoint_gate.py:None
Routetest_local_rate_limit_skips_restricted_fallbacks_and_still_tries_unloaded_ones
pytest.mark.parametrize( "fallbacks, expected_status", [(("embedding_only",), 429), (("embedding_only"
tests/integration/routing/test_non_chat_model_endpoint_gate.py:None
Routetest_log_event_error_response
patch("litellm.module_level_client.post")
tests/unit/integrations/test_athina.py:None
Routetest_log_event_exception
patch("litellm.module_level_client.post")
tests/unit/integrations/test_athina.py:None
Routetest_log_event_success
patch("litellm.module_level_client.post")
tests/unit/integrations/test_athina.py:None
Routetest_log_event_with_tools
patch("litellm.module_level_client.post")
tests/unit/integrations/test_athina.py:None
Routetest_log_success_event
patch("litellm.integrations.openmeter.HTTPHandler")
tests/unit/integrations/test_openmeter.py:None
Routetest_log_success_event_with_custom_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/unit/integrations/test_braintrust_logging.py:None
Routetest_log_success_event_with_default_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/unit/integrations/test_braintrust_logging.py:None
Routetest_logged_spend_is_visible_to_key_info_usage_and_enforcement
pytest.mark.parametrize( "request_model", ["gpt-4", "openai/gpt-4"], ids=["request_model_matches_b
tests/unit/proxy/hooks/test_unit_test_max_model_budget_limiter.py:None
Routetest_logger_distinguishes_missing_usage_from_reported_zero
pytest.mark.parametrize( ("response", "combined_usage", "expected"), ( ({"id": "moderation", "
tests/unit/integrations/test_prometheus_input_sequence_length_label.py:None
Routetest_logging_only_handles_both_directions
pytest.mark.parametrize(("input_type", "flags"), [("request", REQUEST_CHECK), ("response", RESPONSE_CHECK)])
tests/unit/proxy/guardrails/guardrail_hooks/akto/test_akto.py:None
Routetest_logging_only_scope_literal_or_mode_mismatch_is_ignored_at_load_and_keeps_blocking
pytest.mark.parametrize("logging_only_scope", ("input", "Input"))
tests/integration/observability/test_guardrail_effects.py:None
Routetest_logging_only_scope_observes_only_the_configured_direction_without_blocking
pytest.mark.parametrize( ("logging_only_settings", "scanned_directions"), ( ({"logging_only_sc
tests/integration/observability/test_guardrail_effects.py:None
Routetest_logging_only_scope_on_upstream_401_uses_measured_base_default
pytest.mark.parametrize( ("endpoint", "scope"), ( pytest.param("chat", "input", id="S3-chat-up
tests/integration/observability/test_logging_only_scope_runtime.py:None
← previousnext →3,301–3,400 of 5,595, ranked by callers