MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints1,734 in github.com/BerriAI/litellm

Routetest_internal_users_can_access_scoped_tag_usage_routes
pytest.mark.parametrize("route", ["/tag/list", "/tag/daily/activity"])
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_invitation_endpoints_non_admin_denied
pytest.mark.parametrize( "endpoint,payload", [ ("/invitation/new", {"user_id": "ta
tests/test_litellm/proxy/test_proxy_server.py:None
Routetest_invitation_endpoints_proxy_admin_success
pytest.mark.parametrize( "endpoint,payload,mock_return", [ ( "/inv
tests/test_litellm/proxy/test_proxy_server.py:None
Routetest_is_api_route_allowed
pytest.mark.parametrize( "route, user_role, expected_result", [ ("/key/generate", "internal_us
tests/proxy_unit_tests/test_user_api_key_auth.py:None
Routetest_is_azure_model_router
pytest.mark.parametrize( "model,expected", [ # Deployment names containing 'model-
tests/test_litellm/llms/azure_ai/test_azure_ai_cost_calculator.py:None
Routetest_is_llm_api_route
pytest.mark.parametrize( "route,expected", [ # Test exact matches ("/chat/completions"
tests/proxy_unit_tests/test_proxy_routes.py:None
Routetest_is_llm_api_route_similar_but_false
pytest.mark.parametrize( "route", [ "/v1/threads/thread_id/invalid", "/threads/thread_
tests/proxy_unit_tests/test_proxy_routes.py:None
Routetest_is_port_in_use
patch("socket.socket")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_is_user_proxy_admin
pytest.mark.parametrize( "user_obj, expected_result", [ (None, False), # Case 1: user_obj is
tests/proxy_unit_tests/test_user_api_key_auth.py:None
Routetest_jina_ai_img_embeddings
pytest.mark.parametrize( "input_data, expected_payload_input", [ # Case 1: Input with only tex
tests/local_testing/test_embedding.py:None
Routetest_join_paths_happy_path
pytest.mark.parametrize( "base, route, expected", [ ("https://proxy.example.com", "/v1/chat",
tests/test_litellm/proxy/utils/helpers/test_url_helpers.py:None
Routetest_keepalive_timeout_flag
patch("uvicorn.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_key_block_unblock_authz_matrix
pytest.mark.parametrize("route", ["block", "unblock"])
tests/proxy_behavior/management/test_key_block_unblock.py:None
Routetest_key_block_unblock_missing_key_returns_404
pytest.mark.parametrize("route", ["block", "unblock"])
tests/proxy_behavior/management/test_key_block_unblock.py:None
Routetest_key_delete_authz_matrix
pytest.mark.parametrize( "actor,target_shape,expected_status", [(a, t, s) for (_id, a, t, s) in _SCENA
tests/proxy_behavior/management/test_key_delete.py:None
Routetest_key_generate_always_db_team
patch("litellm.proxy.management_endpoints.key_management_endpoints.get_team_object")
tests/proxy_admin_ui_tests/test_key_management.py:None
Routetest_key_generate_failure_stamps_server_span
pytest.mark.parametrize( "exception, expected_status", [ (make_fastapi_http_exception(400, "ne
tests/test_litellm/integrations/open_telemetry/test_otel_admin_endpoints.py:None
Routetest_key_generate_with_secret_manager_call
mock.patch( "litellm.secret_managers.aws_secret_manager_v2.AWSSecretsManagerV2.async_write_secret" )
tests/proxy_unit_tests/test_key_generate_prisma.py:None
Routetest_key_generation_required_params_check
pytest.mark.parametrize( "team_key_generation_settings, input_data, expected_result", [ ({"req
tests/proxy_admin_ui_tests/test_key_management.py:None
Routetest_key_info_authz_matrix
pytest.mark.parametrize( "actor,target_actor,expected_status", [(a, t, s) for (_id, a, t, s) in _SCENA
tests/proxy_behavior/management/test_key_info.py:None
Routetest_key_limit_modifications
pytest.mark.parametrize( "field", [ "max_budget", "rpm_limit", "tpm_limit",
tests/otel_tests/test_e2e_budgeting.py:None
Routetest_key_regenerate_authz_matrix
pytest.mark.parametrize( "actor,target_shape,expected_status", [(a, t, s) for (_id, a, t, s) in _SCENA
tests/proxy_behavior/management/test_key_regenerate.py:None
Routetest_key_service_account_generate_authz_matrix
pytest.mark.parametrize( "actor,team_target,expected_status", [(a, t, s) for (_id, a, t, s) in _SCENAR
tests/proxy_behavior/management/test_key_service_account_generate.py:None
Routetest_key_update_authz_matrix
pytest.mark.parametrize( "actor,target_shape,expected_status", [(a, t, s) for (_id, a, t, s) in _SCENA
tests/proxy_behavior/management/test_key_update.py:None
Routetest_key_update_denied_does_not_touch_budget_counters
pytest.mark.parametrize( "actor,target_shape,expected_status", [(a, t, s) for (_id, a, t, s) in _DENIE
tests/proxy_behavior/management/test_key_update.py:None
Routetest_lakera_prompt_injection_detection
patch( "litellm.guardrail_name_config_map", make_config_map( { "prompt_injection":
tests/local_testing/test_lakera_ai_prompt_injection.py:None
Routetest_lakera_safe_prompt
patch( "litellm.guardrail_name_config_map", make_config_map( { "prompt_injection":
tests/local_testing/test_lakera_ai_prompt_injection.py:None
Routetest_langfuse_client_count_decrements_on_eviction
patch("litellm.initialized_langfuse_clients", 5)
tests/test_litellm/litellm_core_utils/specialty_caches/test_dynamic_logging_cache.py:None
Routetest_langfuse_client_shutdown_called_on_eviction
patch("litellm.initialized_langfuse_clients", 3)
tests/test_litellm/litellm_core_utils/specialty_caches/test_dynamic_logging_cache.py:None
Routetest_langfuse_logging_audio_transcriptions
pytest.mark.skip( reason="langfuse now takes 5-10 mins to get this trace. Need to figure out how to test t
tests/local_testing/test_alangfuse.py:None
Routetest_langfuse_logging_custom_generation_name
pytest.mark.skip(reason="beta test - checking langfuse output")
tests/local_testing/test_alangfuse.py:None
Routetest_langfuse_logging_embedding
pytest.mark.skip(reason="beta test - checking langfuse output")
tests/local_testing/test_alangfuse.py:None
Routetest_langfuse_logging_function_calling
pytest.mark.skip(reason="beta test - checking langfuse output")
tests/local_testing/test_alangfuse.py:None
Routetest_langfuse_logging_stream
pytest.mark.skip(reason="beta test - checking langfuse output")
tests/local_testing/test_alangfuse.py:None
Routetest_langfuse_logging_tool_calling
pytest.mark.skipif( condition=not os.environ.get("OPENAI_API_KEY", False), reason="Authentication miss
tests/local_testing/test_alangfuse.py:None
Routetest_langfuse_masked_input_output
pytest.mark.skip( reason="langfuse now takes 5-10 mins to get this trace. Need to figure out how to test t
tests/local_testing/test_alangfuse.py:None
Routetest_langfuse_otel_does_not_create_proxy_request_span
patch("litellm.integrations.opentelemetry.OpenTelemetry._init_tracing")
tests/test_service_logger_otel.py:None
Routetest_langfuse_otel_ignores_service_logs
patch("litellm.integrations.opentelemetry.OpenTelemetry._init_tracing")
tests/test_service_logger_otel.py:None
Routetest_langsmith_init_skips_periodic_flush_without_running_loop
patch.object(LangsmithLogger, "_start_periodic_flush_task", return_value=None)
tests/test_litellm/integrations/test_langsmith_init.py:None
Routetest_langsmith_init_starts_periodic_flush_with_running_loop
patch("asyncio.get_running_loop")
tests/test_litellm/integrations/test_langsmith_init.py:None
Routetest_langsmith_sampling_rate_decimal_env_var_ignored
patch.dict(os.environ, {"LANGSMITH_SAMPLING_RATE": "0.8"}, clear=False)
tests/test_litellm/integrations/test_langsmith_init.py:None
Routetest_langsmith_sampling_rate_default_value
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/integrations/test_langsmith_init.py:None
Routetest_langsmith_sampling_rate_empty_env_var_defaults
patch.dict(os.environ, {"LANGSMITH_SAMPLING_RATE": ""}, clear=False)
tests/test_litellm/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/test_litellm/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/test_litellm/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/test_litellm/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/test_litellm/integrations/test_langsmith_init.py:None
Routetest_lazy_session_creation
patch("litellm.llms.custom_httpx.aiohttp_handler.aiohttp.ClientSession")
tests/test_litellm/llms/custom_httpx/test_aiohttp_handler.py:None
Routetest_legacy_returns_default_flag_servers_when_whitelist_is_none
patch("litellm.public_mcp_hub_strict_whitelist", False)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:None
Routetest_legacy_thinking_budget_buckets_on_sonnet_46
pytest.mark.parametrize( "budget_tokens,expected_effort", [ (DEFAULT_REASONING_EFFORT_XHIGH_TH
tests/test_litellm/llms/anthropic/experimental_pass_through/messages/test_reasoning_effort_translation.py:None
Routetest_legacy_unions_whitelist_and_default_flag
patch("litellm.public_mcp_hub_strict_whitelist", False)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:None
Routetest_legitimate_passthrough_routes_still_classified_as_llm_route
pytest.mark.parametrize( "route", [ "/openai/v1/chat/completions", "/openai",
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_levo_config_headers_format
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_levo_logger_callback_name
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_levo_logger_health_check_healthy
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_levo_logger_health_check_unhealthy
patch.dict("os.environ", {}, clear=True)
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_list_containers_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/test_litellm/test_container_router.py:None
Routetest_list_events_ordered
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_events_respects_limit
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_events_unknown_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_filters_by_multiple_statuses
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_filters_by_status
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_messages_ordered
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_messages_respects_limit
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_list_returns_runs
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/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/test_litellm/proxy/management_endpoints/test_tag_management_endpoints.py:None
Routetest_list_tools
patch.object(mcp_client_module, "streamable_http_client")
tests/mcp_tests/test_mcp_client_unit.py:None
Routetest_list_tools_no_db_returns_500
patch("litellm.proxy.proxy_server.prisma_client", None)
tests/test_litellm/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/test_litellm/proxy/management_endpoints/test_tool_management_endpoints.py:None
Routetest_list_tools_with_policy_filter
patch( "litellm.proxy.db.tool_registry_writer.list_tools", new_callable=AsyncMock, )
tests/test_litellm/proxy/management_endpoints/test_tool_management_endpoints.py:None
Routetest_list_users_success
patch("requests.get")
tests/test_litellm/proxy/client/test_users.py:None
Routetest_list_users_unauthorized
patch("requests.get")
tests/test_litellm/proxy/client/test_users.py:None
Routetest_litellm_api_base
pytest.mark.parametrize("route", ["completion", "embedding", "image_generation"])
tests/local_testing/test_amazing_vertex_completion.py:None
Routetest_litellm_speech_vertex_ai_chirp
patch("litellm.llms.custom_httpx.llm_http_handler.HTTPHandler.post")
tests/litellm/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/test_litellm/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/proxy_unit_tests/test_proxy_utils.py:None
Routetest_llama2_tokenizer_api_failure
patch("litellm.utils.Tokenizer.from_pretrained")
tests/test_litellm/litellm_core_utils/test_token_counter.py:None
Routetest_llama3_tokenizer_api_failure
patch("litellm.utils.Tokenizer.from_pretrained")
tests/test_litellm/litellm_core_utils/test_token_counter.py:None
Routetest_load_router_config
mock.patch("litellm.proxy.proxy_server.litellm.Cache")
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_log_event_error_response
patch("litellm.module_level_client.post")
tests/test_litellm/integrations/test_athina.py:None
Routetest_log_event_exception
patch("litellm.module_level_client.post")
tests/test_litellm/integrations/test_athina.py:None
Routetest_log_event_success
patch("litellm.module_level_client.post")
tests/test_litellm/integrations/test_athina.py:None
Routetest_log_event_with_tools
patch("litellm.module_level_client.post")
tests/test_litellm/integrations/test_athina.py:None
Routetest_log_success_event
patch("litellm.integrations.openmeter.HTTPHandler")
tests/test_litellm/integrations/test_openmeter.py:None
Routetest_log_success_event_with_custom_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/test_litellm/integrations/test_braintrust_logging.py:None
Routetest_log_success_event_with_default_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/test_litellm/integrations/test_braintrust_logging.py:None
Routetest_map_openai_params_includes_functions
patch("litellm.utils.supports_function_calling", return_value=True)
tests/test_litellm/llms/publicai/test_publicai_chat_transformation.py:None
Routetest_map_stop_sequences
pytest.mark.parametrize( "stop_input,expected_output,drop_params", [ ("stop", ["stop"], True),
tests/llm_translation/test_anthropic_completion.py:None
Routetest_max_effort_accepted_for_sonnet_46_variants
pytest.mark.parametrize( "model", [ "claude-sonnet-4-6", "claude-sonnet-4-6-20260219",
tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_max_requests_before_restart_flag
patch("uvicorn.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_max_requests_before_restart_jitter_flag
patch("uvicorn.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_maybe_log_raw_request_creates_span
patch.dict(os.environ, {"OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT": ""})
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_maybe_log_raw_request_skips_when_logging_disabled
patch("litellm.turn_off_message_logging", True)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_mcp_client_ssl_configuration_from_env
patch.object(mcp_client_module, "streamable_http_client")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_mcp_client_ssl_verify_custom_path
patch.object(mcp_client_module, "streamable_http_client")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_mcp_client_ssl_verify_parameter
patch.object(mcp_client_module, "sse_client")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_mcp_client_stdio_connect_success
patch("litellm.experimental_mcp_client.client.stdio_client")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_mcp_inference_routes_classified_as_llm_api
pytest.mark.parametrize( "route", [ "/mcp/tools/call", "/mcp-rest/tools/call",
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_mcp_inference_still_blocked_when_llm_api_disabled
pytest.mark.parametrize( "route", [ "/mcp/tools/call", "/mcp-rest/tool
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_mcp_management_allowed_when_llm_api_disabled
pytest.mark.parametrize( "route", [ "/v1/mcp/server", "/v1/mcp/server/
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
← previousnext →1,101–1,200 of 1,734, ranked by callers