MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints1,734 in github.com/BerriAI/litellm

Routetest_sanitize_error_information_skips_traceback_redaction_when_storing_prompts
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_sanitize_prometheus_label_value_expected_outputs
pytest.mark.parametrize( "value,expected", [ (None, None), ("", ""), ("plain",
tests/test_litellm/types/test_prometheus_label_value_sanitize.py:None
Routetest_sanitized_precedence
pytest.mark.parametrize( "body,expected", [ ( { "decision": "SANIT
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_vigil_guard.py:None
Routetest_schema_migration_in_sync
pytest.mark.skipif( "DATABASE_URL" not in os.environ, reason="requires a postgres database (DATABASE_U
tests/proxy_migration_tests/test_db_schema_migration.py:None
Routetest_search_tool_connection
router.post( "/search_tools/test_connection", tags=["Search Tools"], dependencies=[Depends(user_ap
litellm/proxy/search_endpoints/search_tool_management.py:None
Routetest_send_token_budget_crossed_alerts
pytest.mark.parametrize( "alerting_type", [ "token_budget", "user_budget", "te
tests/logging_callback_tests/test_alerting.py:None
Routetest_sequence_collision_retries_and_succeeds
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_sequence_number_increments
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_service_logging_shadowing_fix
patch("litellm.integrations.opentelemetry.OpenTelemetry._init_tracing")
tests/test_service_logger_otel.py:None
Routetest_set_arize_phoenix_attributes_does_not_set_project_on_span
patch("litellm.integrations.arize._utils.set_attributes")
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_should_allow_request_on_db_unavailable_false
patch( "litellm.proxy.proxy_server.general_settings", {"allow_requests_on_db_unavailable": False}, )
tests/test_litellm/proxy/db/test_exception_handler.py:None
Routetest_should_allow_request_on_db_unavailable_true
patch( "litellm.proxy.proxy_server.general_settings", {"allow_requests_on_db_unavailable": True}, )
tests/test_litellm/proxy/db/test_exception_handler.py:None
Routetest_should_balance_cost_and_intelligence
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_call_route_both_disabled_management_takes_priority
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_enabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_llm_api_disabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_llm_disabled_management_enabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_management_disabled
patch.object(EnterpriseRouteChecks, "is_management_routes_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_management_disabled_llm_enabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_chat_completions_still_blocked_when_llm_api_disabled
patch("litellm.proxy.proxy_server.premium_user", True)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_should_cooldown_high_traffic_all_fails
patch( "litellm.router_utils.cooldown_handlers.get_deployment_successes_for_current_minute" )
tests/router_unit_tests/test_router_cooldown_utils.py:None
Routetest_should_drop_telemetry_record
pytest.mark.parametrize( "nodeid,host,method,expected_drop", [ # Non-telemetry test: incidenta
tests/llm_translation/test_vcr_conftest_common_banner.py:None
Routetest_should_embeddings_still_blocked_when_llm_api_disabled
patch("litellm.proxy.proxy_server.premium_user", True)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_should_fall_back_to_first_available_when_no_default
patch("litellm.proxy.proxy_server.llm_router", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_handle_single_model
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_handle_unrecognized_string_callback
patch( "litellm.proxy.utils.ProxyLogging._add_proxy_hooks", new_callable=lambda: lambda self,
tests/litellm/proxy/test_init_litellm_callbacks.py:None
Routetest_should_match_hint_against_string_model_list_entries
patch("litellm.proxy.proxy_server.llm_router", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_match_hint_as_substring
patch("litellm.proxy.proxy_server.llm_router", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_models_route_allowed_when_llm_api_disabled
patch("litellm.proxy.proxy_server.premium_user", True)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_should_models_route_allowed_when_llm_api_not_disabled
patch("litellm.proxy.proxy_server.premium_user", True)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_should_not_duplicate_existing_instance_callbacks
patch( "litellm.proxy.utils.ProxyLogging._add_proxy_hooks", new_callable=lambda: lambda self,
tests/litellm/proxy/test_init_litellm_callbacks.py:None
Routetest_should_prefer_cheapest_when_cost_priority_high
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_prefer_fastest_when_speed_priority_high
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_prefer_hint_over_priority
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_prefer_smartest_when_intelligence_priority_high
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_raise_when_nothing_resolvable
patch("litellm.proxy.proxy_server.llm_router", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_replace_multiple_string_callbacks
patch( "litellm.proxy.utils.ProxyLogging._add_proxy_hooks", new_callable=lambda: lambda self,
tests/litellm/proxy/test_init_litellm_callbacks.py:None
Routetest_should_replace_string_callback_with_instance
patch( "litellm.proxy.utils.ProxyLogging._add_proxy_hooks", new_callable=lambda: lambda self,
tests/litellm/proxy/test_init_litellm_callbacks.py:None
Routetest_should_return_healthy_for_200
patch("litellm.proxy.agent_endpoints.endpoints.get_async_httpx_client")
tests/test_litellm/proxy/agent_endpoints/test_endpoints.py:None
Routetest_should_return_none_when_no_model_info
patch( "litellm.get_model_info", side_effect=lambda m, **kw: (_ for _ in ()).throw(Exception("
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_return_unhealthy_for_500
patch("litellm.proxy.agent_endpoints.endpoints.get_async_httpx_client")
tests/test_litellm/proxy/agent_endpoints/test_endpoints.py:None
Routetest_should_return_unhealthy_on_connection_error
patch("litellm.proxy.agent_endpoints.endpoints.get_async_httpx_client")
tests/test_litellm/proxy/agent_endpoints/test_endpoints.py:None
Routetest_should_run_guardrail
pytest.mark.parametrize( "default_on,event_hook,data,query_event,expected", [ pyte
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_panw_prisma_airs.py:None
Routetest_should_serialize_rate_limit_enums_as_underlying_string_values
pytest.mark.parametrize( "category_enum,rate_limit_enum,expected_category,expected_type", [ (
tests/test_litellm/integrations/test_prometheus_rate_limit_labels.py:None
Routetest_should_skip_hint_without_name
patch("litellm.proxy.proxy_server.llm_router", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_skip_priority_when_no_priorities_set
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_store_prompts_and_responses_in_spend_logs_case_insensitive_string
patch("litellm.secret_managers.main.get_secret_bool")
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_should_treat_404_as_healthy
patch("litellm.proxy.agent_endpoints.endpoints.get_async_httpx_client")
tests/test_litellm/proxy/agent_endpoints/test_endpoints.py:None
Routetest_should_use_configured_default_sampling_model
patch("litellm.proxy.proxy_server.llm_router", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_use_priority_when_hints_empty
patch("litellm.get_model_info", side_effect=_mock_get_model_info)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_use_router_model_names
patch("litellm.model_list", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_v1_models_route_allowed_when_llm_api_disabled
patch("litellm.proxy.proxy_server.premium_user", True)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_sign_oci_request_routes_to_manual_when_no_signer
patch("litellm.llms.oci.common_utils._CRYPTOGRAPHY_AVAILABLE", True)
tests/test_litellm/llms/oci/test_oci_coverage_boost.py:None
Routetest_sign_request_basic
patch("botocore.auth.SigV4Auth")
tests/llm_translation/test_unit_test_bedrock_invoke.py:None
Routetest_sign_request_delegates
patch("litellm.llms.oci.common_utils._CRYPTOGRAPHY_AVAILABLE", True)
tests/test_litellm/llms/oci/test_oci_coverage_boost.py:None
Routetest_sign_with_manual_credentials_authorization_contains_key_id
patch("litellm.llms.oci.common_utils._CRYPTOGRAPHY_AVAILABLE", True)
tests/test_litellm/llms/oci/test_oci_coverage_boost.py:None
Routetest_sign_with_manual_credentials_inline_key
patch("litellm.llms.oci.common_utils._CRYPTOGRAPHY_AVAILABLE", True)
tests/test_litellm/llms/oci/test_oci_coverage_boost.py:None
Routetest_sign_with_manual_credentials_key_file
patch("litellm.llms.oci.common_utils._CRYPTOGRAPHY_AVAILABLE", True)
tests/test_litellm/llms/oci/test_oci_coverage_boost.py:None
Routetest_skip_server_startup
patch("uvicorn.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_snowflake_env
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/snowflake/chat/test_snowflake_chat_transformation.py:None
Routetest_snowflake_env
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/snowflake/embedding/test_snowflake_embedding.py:None
Routetest_snowflake_jwt_account_id
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/snowflake/chat/test_snowflake_chat_transformation.py:None
Routetest_snowflake_jwt_account_id
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/snowflake/embedding/test_snowflake_embedding.py:None
Routetest_snowflake_pat_key_account_id
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/snowflake/chat/test_snowflake_chat_transformation.py:None
Routetest_snowflake_pat_key_account_id
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/snowflake/embedding/test_snowflake_embedding.py:None
Routetest_soft_budget_alerts_webhook
pytest.mark.parametrize( "entity_info", [ key_info, team_info, user_info,
tests/logging_callback_tests/test_alerting.py:None
Routetest_span_attributes_with_multiple_metadata_fields
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/test_litellm/integrations/test_braintrust_span_name.py:None
Routetest_span_name_with_multiple_metadata_fields
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/test_litellm/integrations/test_braintrust_logging.py:None
Routetest_span_name_with_other_metadata
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/test_litellm/integrations/test_braintrust_span_name.py:None
Routetest_spend_logs_redacts_request_and_response_when_turn_off_message_logging_enabled
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_spend_route_responsive
pytest.mark.parametrize("route", SPEND_ROUTES)
tests/e2e/spend_tracking/test_spend_routes.py:None
Routetest_stale_whitelist_id_returns_empty
patch("litellm.public_mcp_servers", ["does-not-exist"])
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:None
Routetest_start_cli_sso_flow_rejects_invalid_response
patch("litellm.proxy.client.cli.commands.auth.requests.post")
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_start_periodic_flush_task_returns_none_without_running_loop
patch( "asyncio.get_running_loop", side_effect=RuntimeError("no running event loop") )
tests/test_litellm/integrations/test_langsmith_init.py:None
Routetest_startup_exits_on_non_postgres_database_url
patch("subprocess.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_startup_fails_when_db_setup_fails
patch("subprocess.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_store_batch_managed_object_success
patch("litellm.proxy.proxy_server.proxy_logging_obj")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Routetest_streaming_cost_calculation_resolves_model_from_message_start_chunk
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Routetest_strip_model_router_prefix
pytest.mark.parametrize( "model,expected", [ # Model router deployments - the depl
tests/test_litellm/llms/azure_ai/test_azure_ai_cost_calculator.py:None
Routetest_strip_throughput_suffix
pytest.mark.parametrize( "input_model,expected", [ ( "anthropic.cl
tests/llm_translation/test_bedrock_common_utils.py:None
Routetest_strips_throughput_suffix
pytest.mark.parametrize( "input_model,expected", [ ( "anthropic.cl
tests/llm_translation/test_bedrock_common_utils.py:None
Routetest_subsequent_session_update_cannot_reenable_vad_when_guardrails_active
pytest.mark.parametrize( "client_session", [ {"turn_detection": {"type": "server_vad", "create
tests/test_litellm/litellm_core_utils/test_realtime_streaming.py:None
Routetest_success_handler_calls_openai_handler
patch( "litellm.proxy.pass_through_endpoints.llm_provider_handlers.openai_passthrough_logging_handler.
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_success_handler_dispatches_responses_api_to_openai_handler
patch( "litellm.proxy.pass_through_endpoints.llm_provider_handlers.openai_passthrough_logging_handler.
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_success_handler_vertex_ai_live_integration
patch( "litellm.proxy.pass_through_endpoints.llm_provider_handlers.vertex_ai_live_passthrough_logging_
tests/pass_through_unit_tests/test_vertex_ai_live_passthrough.py:None
Routetest_supports_audio_input
pytest.mark.parametrize("input_type", ["input_audio", "audio_url"])
tests/llm_translation/base_llm_unit_tests.py:None
Routetest_surface_bypass
pytest.mark.parametrize( "hook,inspection_type,event_hook,call_type,data,response," "expected_
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_surfaces_connect_error_over_cancelled
patch("litellm.experimental_mcp_client.client.ClientSession")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_sync_client_prefers_cluster_over_url
patch("litellm._redis.init_redis_cluster")
tests/test_litellm/test_redis.py:None
Routetest_sync_client_prefers_cluster_over_url_via_env_var
patch("litellm._redis.init_redis_cluster")
tests/test_litellm/test_redis.py:None
Routetest_sync_client_preserves_password_for_cluster_when_url_also_set
patch("litellm._redis.init_redis_cluster")
tests/test_litellm/test_redis.py:None
Routetest_sync_client_url_used_when_no_cluster
patch("litellm._redis.redis.Redis.from_url")
tests/test_litellm/test_redis.py:None
Routetest_sync_completion_handles_starting_status
patch("litellm.llms.replicate.chat.handler._get_httpx_client")
tests/llm_translation/test_replicate.py:None
Routetest_sync_http_status_201
patch.object(HTTPHandler, "post")
tests/test_litellm/llms/vertex_ai/test_http_status_201.py:None
Routetest_sync_http_status_error
patch.object(HTTPHandler, "post")
tests/test_litellm/llms/vertex_ai/test_http_status_201.py:None
Routetest_sync_raises_masked_error
pytest.mark.parametrize("method", ["post", "put", "patch", "delete"])
tests/test_litellm/llms/custom_httpx/test_credential_leak_prevention.py:None
Routetest_sync_sentinel_uses_sentinel_password_and_master_password
patch("litellm._redis.redis.Sentinel")
tests/test_litellm/test_redis.py:None
Routetest_system_message_format_issue_reproduction
patch("litellm.add_function_to_prompt", True)
tests/test_litellm/test_system_message_format_bug.py:None
Routetest_system_message_with_function_input
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/local_testing/test_lakera_ai_prompt_injection.py:None
Routetest_task_methods_extract_litellm_params_before_forwarding
pytest.mark.parametrize("method", ["tasks/get", "tasks/resubscribe"])
tests/test_litellm/proxy/agent_endpoints/test_a2a_endpoints.py:None
← previousnext →1,401–1,500 of 1,734, ranked by callers