MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints1,734 in github.com/BerriAI/litellm

Routetest_post_call_success_hook_called_when_guardrails_configured
patch(_COLLECT, return_value=["rubrik"])
tests/test_litellm/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:None
Routetest_post_call_success_hook_skipped_when_no_guardrails
patch(_COLLECT, return_value=[])
tests/test_litellm/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:None
Routetest_preserves_deployment_environment_from_config
patch.dict("os.environ", {"OTEL_DEPLOYMENT_ENVIRONMENT": "staging"}, clear=False)
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_presidio_pii_masking_logging_output_only_logged_response_guardrails_config
patch.dict( os.environ, { "PRESIDIO_ANALYZER_API_BASE": "http://localhost:5002", "PRES
tests/guardrails_tests/test_presidio_pii.py:None
Routetest_pricing_configured
pytest.mark.parametrize("model_name,regions,max_input,max_output", MODEL_CONFIGS)
tests/litellm/test_bedrock_extended_beta_models.py:None
Routetest_pricing_field_rejected_by_default
pytest.mark.parametrize( "field,value", [ ("input_cost_per_token", -0.01),
tests/test_litellm/proxy/auth/test_auth_utils.py:None
Routetest_process_callback_with_env_vars
patch( "litellm.proxy.common_utils.callback_utils.CustomLogger.get_callback_env_vars", return_value=["
tests/test_litellm/proxy/common_utils/test_callback_utils.py:None
Routetest_process_callback_with_no_required_env_vars
patch( "litellm.proxy.common_utils.callback_utils.CustomLogger.get_callback_env_vars", return_value=[]
tests/test_litellm/proxy/common_utils/test_callback_utils.py:None
Routetest_project_name_defaults_when_env_unset
patch.dict("os.environ", {}, clear=True)
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_project_name_from_phoenix_env
patch.dict( "os.environ", {"PHOENIX_PROJECT_NAME": "phoenix-config-proj"}, clear=True )
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_prompt
router.post( "/prompts/test", tags=["Prompt Management"], dependencies=[Depends(user_api_key_auth)
litellm/proxy/prompts/prompt_endpoints.py:None
Routetest_protocol_selection_from_environment_grpc
patch.dict( os.environ, { "OTEL_EXPORTER_OTLP_PROTOCOL": "grpc", "OTEL
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_protocol_selection_from_environment_http
patch.dict( os.environ, { "OTEL_EXPORTER_OTLP_PROTOCOL": "http/protobuf",
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_protocol_selection_from_otel_exporter_fallback_grpc
patch.dict( os.environ, { "OTEL_EXPORTER": "otlp_grpc", "OTEL_EXPORTER
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_protocol_selection_from_otel_exporter_fallback_http
patch.dict( os.environ, { "OTEL_EXPORTER": "otlp_http", "OTEL_EXPORTER
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_provider_name_substring_not_classified_as_llm_route
pytest.mark.parametrize( "route", [ "/credentials/by_name/openai", "/credentials/opena
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_allowed_management_reads
pytest.mark.parametrize( "allowed_read_route", [ "/team/info", "/team/list", "
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_blocked_management_writes
pytest.mark.parametrize( "blocked_route", [ # team write routes that previously fell through t
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_can_access_all_global_spend_routes
pytest.mark.parametrize("route", GLOBAL_SPEND_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_can_access_audit_logs
pytest.mark.parametrize("route", ["/audit", "/audit/some-log-id"])
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_can_access_logs_page_endpoints
pytest.mark.parametrize("route", ADMIN_VIEWER_LOGS_PAGE_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_can_access_settings_read_endpoints
pytest.mark.parametrize("route", ADMIN_VIEWER_SETTINGS_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_default_allows_any_get
pytest.mark.parametrize("route", ADMIN_VIEWER_REPORTED_GET_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_post_blocked_for_management_route_writes
pytest.mark.parametrize("route", ADMIN_VIEWER_MANAGEMENT_ROUTE_WRITES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_admin_viewer_post_blocked_outside_allowlists
pytest.mark.parametrize( "route", [ # Random path that isn't in any allowlist — POST must stil
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_proxy_custom_model_names_without_config
pytest.mark.parametrize( "proxy_model_name,underlying_model,expected_proxy_result", [
tests/test_litellm/test_utils.py:None
Routetest_proxy_default_api_version_uses_azure_default
patch("uvicorn.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_proxy_mistake_model_equals_agent_is_corrected
patch("litellm.interactions.main.interactions_http_handler")
tests/test_litellm/proxy/google_endpoints/test_interactions_agent_param.py:None
Routetest_proxy_server_request_payload_excludes_secret_fields
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_rag_routes_are_llm_api_routes
pytest.mark.parametrize( "route", [ "/rag/ingest", "/v1/rag/ingest", "/rag/que
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_raw_request_span_has_team_attributes
patch.dict(os.environ, {"OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT": ""})
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_raw_span_does_not_duplicate_parent_attributes
patch("litellm.turn_off_message_logging", False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_realistic_chat_only_entry_returns_none
patch( "litellm.llms.github_copilot.responses.transformation._cached_get_model_info_helper" )
tests/test_litellm/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_realistic_responses_only_entry_returns_config
patch( "litellm.llms.github_copilot.responses.transformation._cached_get_model_info_helper" )
tests/test_litellm/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_realtime_webrtc_http_routes_classified_as_llm_api
pytest.mark.parametrize( "route", [ "/realtime/client_secrets", "/v1/realtime/client_s
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_reasoning_content_completion
pytest.mark.parametrize( "model", [ # "deepseek/deepseek-reasoner", # "anthropic/claud
tests/local_testing/test_streaming.py:None
Routetest_reasoning_effort_grid
pytest.mark.parametrize( ("route_name", "model", "effort", "cell"), _PARAMS, ids=_PARAM_IDS )
tests/llm_translation/reasoning_effort_grid/test_reasoning_effort_grid.py:None
Routetest_reasoning_effort_xhigh_max_maps_to_budget_on_budget_model
pytest.mark.parametrize( "effort,expected_budget", [ ("xhigh", DEFAULT_REASONING_EFFORT_XHIGH_
tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_reconcile_config_with_environment_variables
patch("litellm.repositories.config_repository.decrypt_value_helper")
tests/test_litellm/repositories/test_repositories.py:None
Routetest_redact_clears_output_arguments
pytest.mark.parametrize( "response_shape,unsafe_fragment,data,rule_name", [ (
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_redact_handles_structured_sanitized_messages
pytest.mark.parametrize( "response_shape,unsafe_fragment,data,rule_name", [ (
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_redact_rewrites_correct_request_field
pytest.mark.parametrize( "initial_data,cisco_kwargs,assertion", [ (
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_redact_rewrites_responses_api_output_in_place
pytest.mark.parametrize( "input_text,sanitized_text,sanitized_messages,expected_substring", [
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_redis_cluster_async_batch_get
patch("litellm._redis.init_redis_cluster")
tests/test_litellm/caching/test_redis_cluster_cache.py:None
Routetest_redis_cluster_batch_get
patch("litellm._redis.init_redis_cluster")
tests/test_litellm/caching/test_redis_cluster_cache.py:None
Routetest_refuses_to_map_non_identity_fields
pytest.mark.parametrize( "privileged_field", [ # The GHSA-5c3m-qffq-4r9m primary privesc field
tests/test_litellm/proxy/auth/test_oauth2_proxy_hook.py:None
Routetest_region_count
pytest.mark.parametrize("model_name,regions,max_input,max_output", MODEL_CONFIGS)
tests/litellm/test_bedrock_extended_beta_models.py:None
Routetest_regular_anthropic_tool_message_uses_url
patch("litellm.litellm_core_utils.prompt_templates.factory.convert_url_to_base64")
tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/test_vertex_ai_anthropic_image_url_handling.py:None
Routetest_regular_anthropic_uses_url_type_for_https
patch("litellm.litellm_core_utils.prompt_templates.factory.convert_url_to_base64")
tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/test_vertex_ai_anthropic_image_url_handling.py:None
Routetest_regular_models_still_strip_normally
pytest.mark.parametrize( "input_model,expected_model", [ ("openrouter/anthropic/cl
tests/test_litellm/llms/openrouter/test_openrouter_provider_routing.py:None
Routetest_rejects_private_or_metadata_targets
pytest.mark.parametrize( "blocked_url", [ "http://169.254.169.254/latest/meta-data
tests/test_litellm/proxy/auth/test_auth_utils.py:None
Routetest_request_body_truncation_logs_info_message
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_requester_metadata_forwarded_to_openai
patch("litellm.main.openai_chat_completions.completion")
tests/llm_translation/test_optional_params.py:None
Routetest_reset_budget_job
pytest.mark.skip( reason="Skipping reset budget job test. Fails on ci/cd due to db timeout errors. Need to
tests/proxy_unit_tests/test_key_generate_prisma.py:None
Routetest_reset_budget_reset_at_date_calendar_aligned
pytest.mark.parametrize( "budget_duration, expected_day, expected_month", [ ("30d", 1, 7), #
tests/test_litellm/proxy/common_utils/test_reset_budget_job.py:None
Routetest_resolve_api_base
pytest.mark.parametrize( "input_api_base, env_api_base, expected_api_base", [ ( "h
tests/test_litellm/llms/llamafile/chat/test_llamafile_chat_transformation.py:None
Routetest_resolve_api_key
pytest.mark.parametrize( "input_api_key, env_api_key, expected_api_key", [ ("user-provided-key
tests/test_litellm/llms/llamafile/chat/test_llamafile_chat_transformation.py:None
Routetest_resolve_team_allowed_mcp_servers_dict_tool_permissions
patch( "litellm.proxy._experimental.mcp_server.auth.user_api_key_auth_mcp.MCPRequestHandler._get_mcp_serve
tests/test_litellm/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_resolve_team_allowed_mcp_servers_string_tool_permissions
patch( "litellm.proxy._experimental.mcp_server.auth.user_api_key_auth_mcp.MCPRequestHandler._get_mcp_serve
tests/test_litellm/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_response_truncation_logs_info_message
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_responses_api_cost_tracking
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_responses_api_input_is_scanned
pytest.mark.parametrize( "input_value,expected_substring", [ ( [{"
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_responses_api_key_spend_header_includes_response_cost
patch("litellm.proxy.proxy_server.llm_router")
tests/test_litellm/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_responses_api_uses_responses_transformer_not_chat_completions
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_responses_bridge_preserves_reasoning_summary_without_effort
patch("litellm.completion_extras.responses_api_bridge.completion")
tests/test_litellm/test_main.py:None
Routetest_retrieve_container_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/test_litellm/test_container_router.py:None
Routetest_returns_config_when_mode_is_responses
patch( "litellm.llms.github_copilot.responses.transformation._cached_get_model_info_helper" )
tests/test_litellm/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_returns_empty_when_whitelist_is_empty
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:None
Routetest_returns_empty_when_whitelist_is_none
patch("litellm.public_mcp_servers", None)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:None
Routetest_returns_none_when_get_model_info_raises
patch( "litellm.llms.github_copilot.responses.transformation._cached_get_model_info_helper" )
tests/test_litellm/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_returns_none_when_mode_is_chat
patch( "litellm.llms.github_copilot.responses.transformation._cached_get_model_info_helper" )
tests/test_litellm/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_returns_none_when_mode_is_unset_and_no_endpoints
patch( "litellm.llms.github_copilot.responses.transformation._cached_get_model_info_helper" )
tests/test_litellm/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_returns_only_whitelisted_when_flag_defaults_to_true
patch("litellm.public_mcp_servers", ["a"])
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:None
Routetest_rotate_master_key_model_data_valid_for_prisma
patch( "litellm.proxy.management_endpoints.key_management_endpoints.rotate_mcp_server_credentials_master_k
tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_route_request_dynamic_credentials
pytest.mark.parametrize( "route_type", [ "atext_completion", "acompletion", "a
tests/test_litellm/proxy/test_route_llm_request.py:None
Routetest_route_request_maps_generation_config_for_google_routes
pytest.mark.parametrize( "route_type", ["agenerate_content", "agenerate_content_stream"] )
tests/test_litellm/proxy/test_route_llm_request.py:None
Routetest_route_request_preserves_existing_config_for_google_routes
pytest.mark.parametrize( "route_type", ["agenerate_content", "agenerate_content_stream"] )
tests/test_litellm/proxy/test_route_llm_request.py:None
Routetest_router_init_azure_service_principal_with_secret_with_environment_variables
patch("azure.identity.get_bearer_token_provider")
tests/local_testing/test_router_client_init.py:None
Routetest_router_init_with_neither_api_key_nor_azure_service_principal_with_secret
patch("litellm.secret_managers.get_azure_ad_token_provider.os")
tests/local_testing/test_router_client_init.py:None
Routetest_run
pytest.mark.parametrize( "model", [ "openai/gpt-3.5-turbo", # "anthropic/claude-3-haik
tests/local_testing/test_cost_calc.py:None
Routetest_run_gunicorn_passes_max_requests_jitter
patch("litellm.proxy.proxy_cli.ProxyInitializationHelpers._run_gunicorn_server")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_run_health_check
patch("httpx.get")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_run_ollama_serve
patch("subprocess.Popen")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_run_server_no_config_passed
patch("uvicorn.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_run_test_chat_completion
patch("openai.OpenAI")
tests/test_litellm/proxy/test_proxy_cli.py:None
Routetest_run_with_session
patch.object(mcp_client_module, "streamable_http_client")
tests/mcp_tests/test_mcp_client_unit.py:None
Routetest_runtime_rejections
pytest.mark.parametrize( "snippet", [ # getattr is not in the sandbox builtins — NameError at
tests/test_litellm/proxy/guardrails/test_custom_code_security.py:None
Routetest_s3_download_success
patch("litellm.proxy.common_utils.load_config_utils.download_python_file_from_s3")
tests/proxy_unit_tests/test_custom_logger_s3_gcs.py:None
Routetest_s3_logger_supports_object_key_retrieval
patch("asyncio.create_task") # Mock asyncio.create_task to avoid event loop issues
tests/test_litellm/responses/litellm_completion_transformation/test_session_handler_with_cold_storage.py:None
Routetest_s3_v2_endpoint_url
patch("asyncio.create_task")
tests/test_litellm/integrations/test_s3_v2.py:None
Routetest_s3_v2_put_url_encodes_spaces_in_object_key
patch("asyncio.create_task")
tests/test_litellm/integrations/test_s3_v2.py:None
Routetest_s3_v2_virtual_hosted_style
patch("asyncio.create_task")
tests/test_litellm/integrations/test_s3_v2.py:None
Routetest_sample_regional_variants
pytest.mark.parametrize("model_name,regions,max_input,max_output", MODEL_CONFIGS)
tests/litellm/test_bedrock_extended_beta_models.py:None
Routetest_sampling_params_flag_on_all_models_that_removed_them
pytest.mark.parametrize( "cost_map", [_load_root_cost_map(), GetModelCostMap.load_local_model_cost_map
tests/test_litellm/test_claude_fable_5_config.py:None
Routetest_sanitize_error_information_caps_size_regardless_of_prompt_flag
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_error_information_redacts_pydantic_assignment_form
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_error_information_redacts_traceback_when_not_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_error_information_redacts_when_not_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_error_information_reproduces_lit_2992
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_error_information_skips_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
← previousnext →1,301–1,400 of 1,734, ranked by callers