MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_should_allow_request_on_db_unavailable_true
patch( "litellm.proxy.proxy_server.general_settings", {"allow_requests_on_db_unavailable": True}, )
tests/unit/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/unit/proxy/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/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_enabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_llm_api_disabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/unit/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/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_should_call_route_management_disabled
patch.object(EnterpriseRouteChecks, "is_management_routes_disabled")
tests/unit/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/unit/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/unit/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/unit/router_utils/test_cooldown_handlers.py:None
Routetest_should_drop_telemetry_record
pytest.mark.parametrize( "nodeid,host,method,expected_drop", [ # Non-telemetry test: incidenta
tests/unit/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/unit/proxy/auth/test_route_checks.py:None
Routetest_should_fall_back_to_default_model_when_no_route_matches
pytest.mark.parametrize("request_model", ["my-auto-router", "public-router-alias"])
tests/unit/router_strategy/test_auto_router.py:None
Routetest_should_fall_back_to_default_model_when_the_embedding_call_fails
pytest.mark.parametrize("request_model", ["my-auto-router", "public-router-alias"])
tests/unit/router_strategy/test_auto_router.py:None
Routetest_should_fall_back_to_first_available_when_no_default
patch("litellm.proxy.proxy_server.llm_router", None)
tests/unit/proxy/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/unit/proxy/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/unit/proxy/test_init_litellm_callbacks.py:None
Routetest_should_load_no_routes_from_an_empty_non_list_routes_value
pytest.mark.parametrize("routes", [{}, ""])
tests/unit/router_strategy/test_auto_router.py:None
Routetest_should_match_hint_against_string_model_list_entries
patch("litellm.proxy.proxy_server.llm_router", None)
tests/unit/proxy/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_match_hint_as_substring
patch("litellm.proxy.proxy_server.llm_router", None)
tests/unit/proxy/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/unit/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/unit/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/unit/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/unit/proxy/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/unit/proxy/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/unit/proxy/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/unit/proxy/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_raise_when_nothing_resolvable
patch("litellm.proxy.proxy_server.llm_router", None)
tests/unit/proxy/mcp_server/test_mcp_sampling_model_resolution.py:None
Routetest_should_refuse_to_put_to_a_non_gcs_url
pytest.mark.parametrize( "url", [ "http://storage.googleapis.com/b/days/c/2024-01-02.csv",
tests/unit/integrations/focus/test_ternary_destination.py:None
Routetest_should_replace_multiple_string_callbacks
patch( "litellm.proxy.utils.ProxyLogging._add_proxy_hooks", new_callable=lambda: lambda self,
tests/unit/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/unit/proxy/test_init_litellm_callbacks.py:None
Routetest_should_report_bug_skips_provider_and_network_errors
pytest.mark.parametrize( "exc", [ InternalServerError(message="upstream 500", llm_provider="op
tests/unit/litellm_core_utils/test_bug_report.py:None
Routetest_should_return_healthy_for_200
patch("litellm.proxy.agent_endpoints.endpoints.get_async_httpx_client")
tests/unit/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/unit/proxy/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/unit/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/unit/proxy/agent_endpoints/test_endpoints.py:None
Routetest_should_run_guardrail
pytest.mark.parametrize( "default_on,event_hook,data,query_event,expected", [ pyte
tests/unit/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/unit/integrations/test_prometheus_rate_limit_labels.py:None
Routetest_should_skip_budget_checks_spares_only_zero_spend_mcp_discovery
pytest.mark.parametrize( "route, request_data, expected", [ ("/mcp-rest/tools/list", {}, True)
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_should_skip_hint_without_name
patch("litellm.proxy.proxy_server.llm_router", None)
tests/unit/proxy/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/unit/proxy/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_still_route_to_the_matched_route_when_one_matches
pytest.mark.parametrize("request_model", ["my-auto-router", "public-router-alias"])
tests/unit/router_strategy/test_auto_router.py:None
Routetest_should_store_prompts_and_responses_in_spend_logs_case_insensitive_string
patch("litellm.secret_managers.main.get_secret_bool")
tests/unit/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_should_track_cost_callback_pass_through_without_owner
pytest.mark.parametrize( "call_type, expected", [ ("pass_through_endpoint", True), ("l
tests/unit/proxy/hooks/test_proxy_track_cost_callback.py:None
Routetest_should_treat_404_as_healthy
patch("litellm.proxy.agent_endpoints.endpoints.get_async_httpx_client")
tests/unit/proxy/agent_endpoints/test_endpoints.py:None
Routetest_should_update_field
pytest.mark.parametrize( ("field", "value", "sent_fields", "expected"), ( ("models", None, fro
tests/unit/proxy/management_endpoints/test_customer_endpoints.py:None
Routetest_should_use_cache_stops_past_the_default_max_messages
pytest.mark.parametrize( ("kwargs", "expected"), [ pytest.param({"messages": [_TOOL_TURN_ITEM]
tests/unit/caching/test_caching.py:None
Routetest_should_use_configured_default_sampling_model
patch("litellm.proxy.proxy_server.llm_router", None)
tests/unit/proxy/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/unit/proxy/mcp_server/test_mcp_sampling_priority_selection.py:None
Routetest_should_use_router_model_names
patch("litellm.model_list", None)
tests/unit/proxy/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/unit/proxy/auth/test_route_checks.py:None
Routetest_side_effectful_info_route_still_enforces_budget
pytest.mark.parametrize("route", ["/health/services", "/auto_router/test_routing"])
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:None
Routetest_sign_oci_request_routes_to_manual_when_no_signer
patch("litellm.llms.oci.common_utils._CRYPTOGRAPHY_AVAILABLE", True)
tests/unit/llms/oci/test_oci_coverage_boost.py:None
Routetest_sign_request_basic
patch("botocore.auth.SigV4Auth")
tests/unit/llms/bedrock/chat/test_invoke_handler.py:None
Routetest_sign_request_delegates
patch("litellm.llms.oci.common_utils._CRYPTOGRAPHY_AVAILABLE", True)
tests/unit/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/unit/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/unit/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/unit/llms/oci/test_oci_coverage_boost.py:None
Routetest_single_catalog_page_preserves_cursor_metadata_and_request_cursor
pytest.mark.parametrize( "method, field, item", [ ("tools/list", "tools", {"name": "second", "
tests/unit/mcp_client/test_mcp_client.py:None
Routetest_single_delete_releases_allowance_only_after_success
pytest.mark.parametrize("delete_succeeds,has_router", ((True, True), (True, False), (False, True)))
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_single_file_urls_encode_id_and_honor_api_base
pytest.mark.parametrize( "method,suffix", [ ("transform_retrieve_file_request", ""), (
tests/unit/llms/mistral/files/test_mistral_files_transformation.py:None
Routetest_single_object_input_answers_400
pytest.mark.parametrize( "transform", [transform_openai_input_gemini_content, transform_openai_input_g
tests/unit/llms/vertex_ai/gemini_embeddings/test_batch_embed_content_transformation.py:None
Routetest_single_worker_max_requests_no_warning_on_hypercorn
patch("litellm.proxy.proxy_cli.ProxyInitializationHelpers.init_hypercorn_server")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_single_worker_max_requests_no_warning_with_two_workers
patch("litellm.proxy.proxy_cli.start_query_engine_reaper")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_single_worker_max_requests_warning_printed_on_gunicorn
patch("litellm.proxy.proxy_cli.ProxyInitializationHelpers.run_gunicorn_server")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_single_worker_max_requests_warning_printed_on_uvicorn
patch("uvicorn.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_skip_paths_store_nothing
pytest.mark.parametrize( "kwargs_mutation,job_mutation", [ ({"request_metadata": {
tests/unit/integrations/test_shadow_eval_logger.py:None
Routetest_skip_server_startup
patch("uvicorn.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_skip_tool_message_keeps_the_tool_result_out_of_texts_and_rows
pytest.mark.parametrize(("call_item", "output_type"), _TOOL_TURNS, ids=["function", "custom"])
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:None
Routetest_snowflake_env
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/snowflake/chat/test_snowflake_chat_transformation.py:None
Routetest_snowflake_env
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/snowflake/embedding/test_snowflake_embedding.py:None
Routetest_snowflake_jwt_account_id
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/snowflake/chat/test_snowflake_chat_transformation.py:None
Routetest_snowflake_jwt_account_id
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/snowflake/embedding/test_snowflake_embedding.py:None
Routetest_snowflake_pat_key_account_id
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/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/unit/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/unit/integrations/SlackAlerting/test_slack_alerting.py:None
Routetest_soft_budget_does_not_block
pytest.mark.covers("quota_management.budget.soft.alerts_without_blocking")
tests/e2e/quota_management/budgets/test_soft_budget_e2e.py:None
Routetest_sonnet_count_names_the_count_model_and_matches_billed_input
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.COUNT_TOKENS,
tests/e2e/llm_translation/test_count_tokens_source_e2e.py:None
Routetest_sorts_pages_and_filters_the_budgets_it_created
pytest.mark.covers("mgmt.budget.list_v1.happy_path")
tests/e2e/management/test_budget_customer_user_org_e2e.py:None
Routetest_span_attributes_with_multiple_metadata_fields
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/unit/integrations/test_braintrust_span_name.py:None
Routetest_span_name_with_multiple_metadata_fields
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/unit/integrations/test_braintrust_logging.py:None
Routetest_span_name_with_other_metadata
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/unit/integrations/test_braintrust_span_name.py:None
Routetest_span_wrapper_failure_keeps_the_answered_status
pytest.mark.parametrize( ("raised", "status_code"), [ (RuntimeError("router settings lookup fa
tests/unit/integrations/open_telemetry/test_otel_admin_endpoints.py:None
Routetest_speech_maps_wav_and_pcm_to_elevenlabs_output_formats
pytest.mark.parametrize( ("response_format", "expected_output_format"), [("wav", "wav_24000"), ("pcm",
tests/unit/llms/elevenlabs/test_elevenlabs_text_to_speech_transformation.py:None
Routetest_speech_output_is_a_bounded_summary_without_audio_bytes
meta( Subject( domain=Domain.OBSERVABILITY, route=Route.AUDIO, pro
tests/e2e/logging/test_otel_v2_langfuse_generation_output_e2e.py:None
Routetest_spend_calculate_returns_nonzero_cost
meta( Subject( domain=Domain.SPEND_BUDGETS, route=Route.SPEND_REPORTING, providers
tests/e2e/quota_management/spend_tracking/test_spend_tracking_e2e.py:None
Routetest_spend_capable_non_llm_routes_still_enforce_budget
pytest.mark.parametrize("route", ["/health", "/health/services", "/health/test_connection"])
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:None
Routetest_spend_logs_by_key_return_every_row_with_the_alias
meta( Subject( domain=Domain.SPEND_BUDGETS, route=Route.SPEND_REPORTING,
tests/e2e/quota_management/spend_tracking/test_key_attribution_e2e.py:None
Routetest_spend_logs_endpoint_returns_spend
meta( Subject( domain=Domain.SPEND_BUDGETS, route=Route.SPEND_REPORTING, providers
tests/e2e/quota_management/spend_tracking/test_spend_tracking_e2e.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_logs")
tests/unit/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_spend_logs_v2_pagination_caps_pages_and_keeps_total
meta( Subject( domain=Domain.SPEND_BUDGETS, route=Route.SPEND_REPORTING, providers
tests/e2e/quota_management/spend_tracking/test_spend_tracking_e2e.py:None
Routetest_spend_permission_enterprise_error_regression
pytest.mark.parametrize("route", ("/key/generate", "/user/new"))
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_spend_route_responsive
pytest.mark.parametrize("route", _ROUTE_CASES)
tests/e2e/quota_management/spend_tracking/test_spend_routes.py:None
Routetest_spend_row_and_callbacks_log_the_encrypted_id_of_the_terminal_frame
pytest.mark.parametrize("route", ["/v1/responses", "/responses", "/openai/v1/responses"])
tests/unit/test_responses_id_security.py:None
Routetest_split_token_estimate_selects_endpoint_input
pytest.mark.parametrize( ("call_type", "data"), [ ( "text_completion",
tests/unit/proxy/hooks/test_tpm_concurrent.py:None
Routetest_stale_whitelist_id_returns_empty
patch("litellm.public_mcp_servers", ["does-not-exist"])
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:None
Routetest_stalled_stream_raises_at_the_request_timeout
pytest.mark.parametrize("route", _ROUTES)
tests/integration/sdk/test_vertex_gemini_stream_timeout_wire.py:None
Routetest_standalone_guardrail_ignores_a_forged_team
pytest.mark.parametrize("route", ["/apply_guardrail", "/guardrails/apply_guardrail"])
tests/integration/providers/test_decision_model_guardrail.py:None
Routetest_standalone_restoration_preserves_post_call_selection
pytest.mark.parametrize("event_hook", ["pre_call", ["pre_call"], ["pre_call", "post_call"]])
tests/unit/proxy/guardrails/guardrail_hooks/test_presidio.py:None
Routetest_standalone_scans_without_restoration_tokens
pytest.mark.parametrize("input_type", ["request", "response"])
tests/unit/proxy/guardrails/guardrail_hooks/test_presidio.py:None
← previousnext →4,601–4,700 of 5,595, ranked by callers