Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ endpoints
Endpoints
1,986 in github.com/BerriAI/litellm
⨍
Functions
86,368
◇
Types & classes
12,471
↳
Endpoints
1,986
Route
test_5xx_routes_to_fallback
pytest.mark.covers("reliability.fallback.5xx.routes_to_fallback")
tests/e2e/router/test_reliability_fallbacks_e2e.py:None
Route
test_a_value_that_does_not_match_the_declared_type_is_rejected
pytest.mark.parametrize( "params", [ {"filter[max_budget][gte]": "lots"}, {"filter[tpm
tests/test_litellm/proxy/management_endpoints/management_v1/test_list_framework.py:None
Route
test_aaaproxy_startup_master_key
patch( "litellm.proxy.proxy_server.ProxyStartupEvent._setup_prisma_client", return_value=mock_prisma,
tests/test_litellm/proxy/test_proxy_server.py:None
Route
test_aaavertex_embeddings_distances
pytest.mark.parametrize( "input_string, expected_closer_index", [ ("Duck", 0), # Duck closer
tests/test_litellm/llms/vertex_ai/test_vertex.py:None
Route
test_absent_fields_do_not_trigger_premium_check
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Route
test_access_group_endpoints_db_not_connected
pytest.mark.parametrize( "method,url,factory", [ ("post", "/v1/access_group", lambda: {"json":
tests/test_litellm/proxy/management_endpoints/test_access_group_endpoints.py:None
Route
test_acreate_container_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/test_litellm/test_container_router.py:None
Route
test_add_and_delete_deployments
pytest.mark.parametrize( "llm_router", [ None, litellm.Router(), litellm.Route
tests/local_testing/test_config.py:None
Route
test_add_and_delete_models
pytest.mark.skip( reason="Requires live proxy + OPENAI_API_KEY. Deterministic mock version in tests/test_l
tests/test_models.py:None
Route
test_add_chat_completion_request_schema
patch( "litellm.proxy.common_utils.custom_openapi_spec.CustomOpenAPISpec.add_request_schema" )
tests/test_litellm/proxy/common_utils/test_custom_openapi_spec.py:None
Route
test_add_embedding_request_schema
patch( "litellm.proxy.common_utils.custom_openapi_spec.CustomOpenAPISpec.add_request_schema" )
tests/test_litellm/proxy/common_utils/test_custom_openapi_spec.py:None
Route
test_add_litellm_data_to_request_agentic_cli_drop_params
pytest.mark.parametrize( "user_agent, request_drop_params, operator_drop_params, expected_drop_params",
tests/test_litellm/proxy/test_litellm_pre_call_utils.py:None
Route
test_add_llm_api_request_schema_body_calls_chat_completion_method
patch( "litellm.proxy.common_utils.custom_openapi_spec.CustomOpenAPISpec.add_chat_completion_request_s
tests/test_litellm/proxy/test_swagger_chat_completions.py:None
Route
test_add_responses_api_request_schema
patch( "litellm.proxy.common_utils.custom_openapi_spec.CustomOpenAPISpec.add_request_schema" )
tests/test_litellm/proxy/common_utils/test_custom_openapi_spec.py:None
Route
test_admin_list_not_scoped
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_admin_viewer_cannot_update_other_owners_run
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_admin_viewer_get_other_owners_run_succeeds
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_admin_viewer_list_not_scoped
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_admin_viewer_lists_other_owners_events
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_admin_viewer_lists_other_owners_messages
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_agent_only_skips_get_llm_provider
patch("litellm.interactions.main.interactions_http_handler")
tests/test_litellm/proxy/google_endpoints/test_interactions_agent_param.py:None
Route
test_agentops_initialization
patch("litellm.integrations.agentops.agentops.AgentOps._fetch_auth_token")
tests/test_litellm/integrations/test_agentops.py:None
Route
test_aggregate_only_usage_charges_tpm_under_every_limit_type
pytest.mark.parametrize("rate_limit_type", ["input", "output", "total"])
tests/test_litellm/proxy/hooks/test_parallel_request_limiter_v3.py:None
Route
test_alert_type_in_formatted_message
patch("litellm.integrations.SlackAlerting.slack_alerting.datetime")
tests/test_litellm/integrations/SlackAlerting/test_slack_alerting.py:None
Route
test_alist_callbacks_with_langfuse_logger
patch.dict( os.environ, { "LANGFUSE_PUBLIC_KEY": "test_public_key", "L
tests/test_litellm/proxy/management_endpoints/test_callback_management_endpoints.py:None
Route
test_alist_containers_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/test_litellm/test_container_router.py:None
Route
test_all_private_external_ip_reports_all_blocked
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/auth/test_mcp_ip_filtering.py:None
Route
test_allowed_openai_params_forwarded_through_bridge
patch("litellm.acompletion")
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Route
test_allowed_routes_admin
pytest.mark.parametrize("admin_allowed_routes", [None, ["ui_routes"]])
tests/proxy_unit_tests/test_jwt.py:None
Route
test_allows_registered_servers
patch( "litellm.proxy._experimental.mcp_server.mcp_server_manager.global_mcp_server_manager" )
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_mcp_security.py:None
Route
test_an_agent_loop_on_one_human_ask_is_not_a_first_turn
pytest.mark.parametrize( "history", [ pytest.param( [
tests/test_litellm/router_strategy/test_complexity_router.py:None
Route
test_anthropic_beta_header
pytest.mark.parametrize( "computer_tool_used, prompt_caching_set, expected_beta_header", [ (Tr
tests/llm_translation/test_anthropic_completion.py:None
Route
test_anthropic_context_window_error_mapping
pytest.mark.parametrize( "error_message", [ "AnthropicException - prompt is too long: 250000 t
tests/test_litellm/litellm_core_utils/test_exception_mapping_utils.py:None
Route
test_anthropic_json_mode_and_tool_call_response
pytest.mark.parametrize( "json_mode, tool_calls, expect_null_response", [ ( True,
tests/llm_translation/test_anthropic_completion.py:None
Route
test_anthropic_mcp_server_responses_api
pytest.mark.skipif( os.getenv("ZAPIER_CI_CD_MCP_TOKEN") is None, reason="ZAPIER_CI_CD_MCP_TOKEN not set" )
tests/llm_translation/test_anthropic_completion.py:None
Route
test_anthropic_mcp_server_tool_use
pytest.mark.skipif( os.getenv("ZAPIER_CI_CD_MCP_TOKEN") is None, reason="ZAPIER_CI_CD_MCP_TOKEN not set" )
tests/llm_translation/test_anthropic_completion.py:None
Route
test_anthropic_tool_use
pytest.mark.parametrize( "tool_type, tool_config, message_content", [ ( "computer_
tests/llm_translation/test_anthropic_completion.py:None
Route
test_api_key_preserved_through_failure_hook_to_database
patch("litellm.proxy.proxy_server.master_key", "sk-master-key")
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Route
test_append_event_no_status_update_for_unknown_type
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_append_event_updates_run_status
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_append_message
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_append_message_unknown_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_apply_guardrail_block_does_not_log_error
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Route
test_apply_guardrail_block_raises_400
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Route
test_apply_guardrail_blocks_below_threshold
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_clamps_score
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_enforces_fenced_verdict
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_judge_error_fails_open
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_log_mode_does_not_block
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_non_object_verdict_fails_open_with_status
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_parses_fenced_json_verdict
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_passes_above_threshold
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.acompletion")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_apply_guardrail_text_concatenation
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Route
test_apply_user_budget_to_team_keys_reaches_reservation
pytest.mark.parametrize( "general_settings,expected_flag", [ ({"apply_user_budget_to_team_keys
tests/test_litellm/proxy/auth/test_user_api_key_auth.py:None
Route
test_aquery_single_billing_event_carries_completion_usage_and_cost
pytest.mark.parametrize("use_router", [False, True])
tests/test_litellm/rag/test_main.py:None
Route
test_arize_does_not_set_proxy_otel_logger
patch("litellm.proxy.proxy_server.open_telemetry_logger", None)
tests/test_litellm/integrations/arize/test_arize_otel_coexistence.py:None
Route
test_arize_phoenix_does_not_set_proxy_otel_logger
patch("litellm.proxy.proxy_server.open_telemetry_logger", None)
tests/test_litellm/integrations/arize/test_arize_otel_coexistence.py:None
Route
test_arouter_amoderation_with_credential_name
patch("litellm.amoderation")
tests/test_litellm/test_router.py:None
Route
test_async_azure_max_retries_0
patch("litellm.main.azure_chat_completions.make_azure_openai_chat_completion_request")
tests/llm_translation/test_azure_openai.py:None
Route
test_async_check_and_create_cache_create_new_cache
patch( "litellm.llms.vertex_ai.context_caching.vertex_ai_context_caching.separate_cached_messages"
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_and_create_cache_existing_cache_found
patch( "litellm.llms.vertex_ai.context_caching.vertex_ai_context_caching.separate_cached_messages"
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_and_create_cache_no_cached_messages
patch( "litellm.llms.vertex_ai.context_caching.vertex_ai_context_caching.separate_cached_messages"
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_and_create_cache_skips_when_below_min_tokens
patch( "litellm.llms.vertex_ai.context_caching.vertex_ai_context_caching.separate_cached_messages"
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_and_create_cache_timeout_error
patch( "litellm.llms.vertex_ai.context_caching.vertex_ai_context_caching.separate_cached_messages"
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_and_create_cache_tool_choice_in_request_body
patch( "litellm.llms.vertex_ai.context_caching.vertex_ai_context_caching.separate_cached_messages"
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_and_create_cache_with_cached_content
patch( "litellm.llms.vertex_ai.context_caching.vertex_ai_context_caching.separate_cached_messages"
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_cache_pagination_finds_cache_on_second_page
patch.object(ContextCachingEndpoints, "_get_token_and_url_context_caching")
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_cache_pagination_max_pages_limit
patch.object(ContextCachingEndpoints, "_get_token_and_url_context_caching")
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_check_cache_pagination_stops_when_no_next_token
patch.object(ContextCachingEndpoints, "_get_token_and_url_context_caching")
tests/test_litellm/llms/vertex_ai/context_caching/test_vertex_ai_context_caching.py:None
Route
test_async_client_prefers_cluster_over_url
patch("litellm._redis.async_redis.RedisCluster")
tests/test_litellm/test_redis.py:None
Route
test_async_client_prefers_cluster_over_url_via_env_var
patch("litellm._redis.async_redis.RedisCluster")
tests/test_litellm/test_redis.py:None
Route
test_async_cluster_reconnect_defaults_are_overridable
patch("litellm._redis.async_redis.RedisCluster")
tests/test_litellm/test_redis.py:None
Route
test_async_cluster_sets_reconnect_defaults
patch("litellm._redis.async_redis.RedisCluster")
tests/test_litellm/test_redis.py:None
Route
test_async_completion_handles_starting_status
patch("litellm.llms.replicate.chat.handler.get_async_httpx_client")
tests/llm_translation/test_replicate.py:None
Route
test_async_container_create_full_flow
patch("litellm.llms.custom_httpx.llm_http_handler.AsyncHTTPHandler")
tests/test_litellm/containers/test_container_integration.py:None
Route
test_async_container_list_full_flow
patch("litellm.llms.custom_httpx.llm_http_handler.AsyncHTTPHandler")
tests/test_litellm/containers/test_container_integration.py:None
Route
test_async_custom_span_name
patch("litellm.integrations.braintrust_logging.get_async_httpx_client")
tests/test_litellm/integrations/test_braintrust_span_name.py:None
Route
test_async_data_generator_anthropic_dict_handling
patch("litellm.litellm_core_utils.safe_json_dumps.safe_dumps")
tests/test_litellm/proxy/anthropic_endpoints/test_endpoints.py:None
Route
test_async_http_handler
mock.patch("httpx.AsyncClient")
tests/litellm_utils_tests/test_utils.py:None
Route
test_async_http_handler_force_ipv4
mock.patch("httpx.AsyncClient")
tests/litellm_utils_tests/test_utils.py:None
Route
test_async_http_status_201
patch( "litellm.llms.vertex_ai.gemini.vertex_and_google_ai_studio_gemini.get_async_httpx_client" )
tests/test_litellm/llms/vertex_ai/test_http_status_201.py:None
Route
test_async_invoke_twelvelabs_embedding_request_transformation
pytest.mark.parametrize( "model,input_type", [ ("bedrock/async_invoke/twelvelabs.m
tests/test_litellm/llms/bedrock/embed/test_bedrock_async_invoke_embedding.py:None
Route
test_async_log_success_event
patch("litellm.integrations.openmeter.get_async_httpx_client")
tests/test_litellm/integrations/test_openmeter.py:None
Route
test_async_log_success_event_with_custom_span_name
patch("litellm.integrations.braintrust_logging.get_async_httpx_client")
tests/test_litellm/integrations/test_braintrust_logging.py:None
Route
test_async_log_success_event_with_default_span_name
patch("litellm.integrations.braintrust_logging.get_async_httpx_client")
tests/test_litellm/integrations/test_braintrust_logging.py:None
Route
test_async_log_success_event_with_dict_usage
pytest.mark.parametrize( "token_rate_limit_type,expected_field", [ ("input", "prompt_tokens"),
tests/test_litellm/proxy/hooks/test_parallel_request_limiter_v3.py:None
Route
test_async_pre_routing_hook_with_list_route_choice
patch("semantic_router.routers.SemanticRouter")
tests/test_litellm/router_strategy/test_auto_router.py:None
Route
test_async_pre_routing_hook_with_route_choice
patch("semantic_router.routers.SemanticRouter")
tests/test_litellm/router_strategy/test_auto_router.py:None
Route
test_async_raises_masked_error
pytest.mark.parametrize("method", ["post", "put", "patch", "delete"])
tests/test_litellm/llms/custom_httpx/test_credential_leak_prevention.py:None
Route
test_async_sentinel_uses_sentinel_password_and_master_password
patch("litellm._redis.async_redis.Sentinel")
tests/test_litellm/test_redis.py:None
Route
test_auth_builder_single_team_db_fallback_when_jwt_has_no_team
pytest.mark.parametrize( ( "user_id", "user_teams", "get_team_object_return",
tests/test_litellm/proxy/auth/test_handle_jwt.py:None
Route
test_auth_callback_new_user
patch("fastapi_sso.sso.google.GoogleSSO")
tests/proxy_admin_ui_tests/test_sso_sign_in.py:None
Route
test_auth_callback_new_user_with_sso_default
patch("fastapi_sso.sso.google.GoogleSSO")
tests/proxy_admin_ui_tests/test_sso_sign_in.py:None
Route
test_auth_with_access_key_and_secret_key
patch("boto3.Session")
tests/llm_translation/test_aws_base_llm.py:None
Route
test_auth_with_allowed_routes
pytest.mark.parametrize( "route, should_raise_error", [ ("/embeddings", False), ("/cha
tests/proxy_unit_tests/test_user_api_key_auth.py:None
Route
test_auth_with_aws_profile
patch("boto3.Session")
tests/llm_translation/test_aws_base_llm.py:None
Route
test_auth_with_aws_role
patch("boto3.client")
tests/llm_translation/test_aws_base_llm.py:None
Route
test_auth_with_env_vars
patch("boto3.Session")
tests/llm_translation/test_aws_base_llm.py:None
Route
test_auth_with_web_identity_token
patch("boto3.client")
tests/llm_translation/test_aws_base_llm.py:None
Route
test_auto_init_creates_phoenix_logger
patch.dict( os.environ, { "PHOENIX_COLLECTOR_HTTP_ENDPOINT": "http://localhost:600
tests/test_litellm/integrations/arize/test_arize_otel_coexistence.py:None
← previous
next →
601–700 of 1,986, ranked by callers