Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ endpoints
Endpoints
1,734 in github.com/BerriAI/litellm
⨍
Functions
68,180
◇
Types & classes
10,037
↳
Endpoints
1,734
Route
test_cooldown_rate_limit
patch( "litellm.router_utils.cooldown_handlers.get_deployment_successes_for_current_minute" )
tests/router_unit_tests/test_router_cooldown_utils.py:None
Route
test_cost_calculation_does_not_duplicate_provider_prefix
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_cost_calculation_resolves_unknown_model_from_litellm_params
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_cost_calculation_resolves_unknown_model_from_model_group
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_cost_calculation_skips_unknown_litellm_params_model_for_model_group
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_cost_calculation_with_azure_ai_custom_llm_provider
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_cost_calculation_with_missing_model_info
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
Route
test_cost_calculation_without_custom_llm_provider
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_create_500_when_no_db
patch("litellm.proxy.proxy_server.prisma_client", None)
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_create_client_session_default
patch("aiohttp.ClientSession")
tests/test_litellm/llms/custom_httpx/test_aiohttp_handler.py:None
Route
test_create_client_session_with_connector
patch("aiohttp.ClientSession")
tests/test_litellm/llms/custom_httpx/test_aiohttp_handler.py:None
Route
test_create_client_session_with_transport
patch("aiohttp.ClientSession")
tests/test_litellm/llms/custom_httpx/test_aiohttp_handler.py:None
Route
test_create_container_defaults_to_standard_openai
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/containers/test_container_regional_api_base.py:None
Route
test_create_container_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/test_litellm/test_container_router.py:None
Route
test_create_container_uses_env_var_openai_base_url
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/containers/test_container_regional_api_base.py:None
Route
test_create_container_uses_regional_api_base
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/containers/test_container_regional_api_base.py:None
Route
test_create_guardrail_span_with_valid_info
patch("litellm.integrations.opentelemetry.datetime")
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_create_model_all_fields
patch( "litellm.repositories.model_repository.encrypt_value_helper", side_effect=lambda v, **k
tests/test_litellm/repositories/test_repositories.py:None
Route
test_create_model_encrypts_params
patch( "litellm.repositories.model_repository.encrypt_value_helper", side_effect=lambda v, **k
tests/test_litellm/repositories/test_repositories.py:None
Route
test_create_returns_run
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_create_stores_caller_token
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Route
test_create_team_member_add_team_admin_user_api_key_auth
pytest.mark.parametrize("team_route", ["/team/member_add", "/team/member_delete"])
tests/proxy_unit_tests/test_proxy_server.py:None
Route
test_create_user_success
patch("requests.post")
tests/test_litellm/proxy/client/test_users.py:None
Route
test_create_user_unauthorized
patch("requests.post")
tests/test_litellm/proxy/client/test_users.py:None
Route
test_cursor_chat_completions_route
patch("litellm.proxy.proxy_server.llm_router")
tests/test_litellm/proxy/response_api_endpoints/test_endpoints.py:None
Route
test_custom_code_guardrail
router.post( "/guardrails/test_custom_code", tags=["Guardrails"], response_model=TestCustomCodeGua
litellm/proxy/guardrails/guardrail_endpoints.py:None
Route
test_custom_logger_failure_handler
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Route
test_custom_openapi
patch( "litellm.proxy.proxy_server.get_openapi_schema", return_value={ "paths": {
tests/proxy_unit_tests/test_proxy_utils.py:None
Route
test_custom_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/test_litellm/integrations/test_braintrust_span_name.py:None
Route
test_database_url_construction_with_special_characters
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_db_connection_extra_params_forwarded_to_url
patch("subprocess.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_db_registered_pass_through_route_bare_path_convention
pytest.mark.parametrize( "server_root_path,route_type,incoming_route,should_match", [ ("", "su
tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py:None
Route
test_db_timeout_settings_are_forwarded_to_pool_timeout
patch("subprocess.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_decrypt_env_variables_non_string
patch("litellm.repositories.config_repository.decrypt_value_helper")
tests/test_litellm/repositories/test_repositories.py:None
Route
test_decrypt_env_variables_none_value
patch("litellm.repositories.config_repository.decrypt_value_helper")
tests/test_litellm/repositories/test_repositories.py:None
Route
test_deepinfra_rerank_error_handling
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank.py:None
Route
test_deepinfra_rerank_error_handling
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Route
test_deepinfra_rerank_minimal_response
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank.py:None
Route
test_deepinfra_rerank_minimal_response
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Route
test_deepinfra_rerank_missing_api_base_error
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Route
test_deepinfra_rerank_request_format
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank.py:None
Route
test_deepinfra_rerank_request_format
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Route
test_deepinfra_rerank_with_env_vars
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Route
test_deepinfra_rerank_with_queries_param
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank.py:None
Route
test_deepinfra_rerank_with_queries_param
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Route
test_deepinfra_rerank_with_service_tier
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank.py:None
Route
test_deepinfra_rerank_with_service_tier
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Route
test_default_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/test_litellm/integrations/test_braintrust_span_name.py:None
Route
test_default_team_params
pytest.mark.parametrize( "team_params", [ # Test case 1: Using DefaultTeamSSOParams De
tests/test_litellm/proxy/management_endpoints/test_ui_sso.py:None
Route
test_delete_access_group_patches_cached_team_and_key
pytest.mark.parametrize( "team_cache_group_ids,key_cache_group_ids,expected_team_ids_after,expected_key_id
tests/test_litellm/proxy/management_endpoints/test_access_group_endpoints.py:None
Route
test_delete_access_group_success
pytest.mark.parametrize("access_group_id", ["ag-123", "ag-delete-me"])
tests/test_litellm/proxy/management_endpoints/test_access_group_endpoints.py:None
Route
test_delete_container_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/test_litellm/test_container_router.py:None
Route
test_delete_interaction
pytest.mark.skip( reason="Get/Delete require valid interaction IDs from previous calls" )
tests/test_litellm/interactions/test_google_interactions_integration.py:None
Route
test_delete_model
patch( "litellm.repositories.model_repository.decrypt_value_helper", side_effect=lambda v, **k
tests/test_litellm/repositories/test_repositories.py:None
Route
test_delete_user_success
patch("requests.post")
tests/test_litellm/proxy/client/test_users.py:None
Route
test_delete_user_unauthorized
patch("requests.post")
tests/test_litellm/proxy/client/test_users.py:None
Route
test_deny_forwards_guardrail_logging_info_to_failure_hook
patch(_COLLECT, return_value=["rubrik"])
tests/test_litellm/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:None
Route
test_different_models_cost_tracking
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Route
test_direction_logs_as_expected_event_type
pytest.mark.parametrize( "inspection_type,direction,expected_event_attr", [ ("chat
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Route
test_disable_admin_endpoints_error_message
patch("litellm.secret_managers.main.get_secret_bool")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Route
test_disable_admin_endpoints_with_premium_user
patch("litellm.secret_managers.main.get_secret_bool")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Route
test_disable_hf_tokenizer_download
patch("litellm.utils._return_huggingface_tokenizer")
tests/test_litellm/litellm_core_utils/test_token_counter.py:None
Route
test_disable_llm_api_endpoints_error_message
patch("litellm.secret_managers.main.get_secret_bool")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Route
test_disable_llm_api_endpoints_with_premium_user
patch("litellm.secret_managers.main.get_secret_bool")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Route
test_disable_prepared_statements_forwarded_to_url
patch("subprocess.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_does_not_leak_servers_via_internal_flag
patch("litellm.public_mcp_servers", ["a"])
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:None
Route
test_double_prefixed_strips_once
pytest.mark.parametrize( "input_model,expected_model", [ # Well-known native model
tests/test_litellm/llms/openrouter/test_openrouter_provider_routing.py:None
Route
test_download_failure_handling
patch("litellm.proxy.common_utils.load_config_utils.download_python_file_from_s3")
tests/proxy_unit_tests/test_custom_logger_s3_gcs.py:None
Route
test_e2e_semantic_filter
pytest.mark.skipif( not SEMANTIC_ROUTER_AVAILABLE, reason="semantic-router not installed. Install the
tests/mcp_tests/test_semantic_tool_filter_e2e.py:None
Route
test_echo_litellm_version
patch("importlib.metadata.version")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_effort_from_thinking_budget_tiers
pytest.mark.parametrize( "budget_tokens,expected_effort", [ (0, "low"), (DEFAULT_REASO
tests/test_litellm/llms/bedrock/messages/invoke_transformations/test_anthropic_claude3_transformation.py:None
Route
test_embedding
pytest.mark.skipif( os.environ.get("OPENAI_API_KEY") is None, reason="OPENAI_API_KEY not set - skippin
tests/proxy_unit_tests/test_proxy_custom_logger.py:None
Route
test_embedding
mock_patch_aembedding()
tests/proxy_unit_tests/test_proxy_server.py:None
Route
test_embedding_auth_exception_azure
mock.patch( "litellm.proxy.proxy_server.llm_router.aembedding", return_value=invalid_authentication_er
tests/proxy_unit_tests/test_proxy_exception_mapping.py:None
Route
test_embedding_scorer
pytest.mark.skipif(not os.environ.get("OPENAI_API_KEY"), reason="Needs OPENAI_API_KEY")
tests/test_litellm/test_compression.py:None
Route
test_empty_dict_does_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_empty_dict_still_updates_metadata
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Route
test_empty_guardrails_skips_premium_check
patch( "litellm.proxy.management_endpoints.common_utils._premium_user_check", side_effect=Exce
tests/litellm/proxy/management_endpoints/test_common_utils.py:None
Route
test_empty_list_does_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_empty_list_still_updates_metadata
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Route
test_empty_policies_skips_premium_check
patch( "litellm.proxy.management_endpoints.common_utils._premium_user_check", side_effect=Exce
tests/litellm/proxy/management_endpoints/test_common_utils.py:None
Route
test_empty_string_team_member_key_duration_skips_premium_check
patch( "litellm.proxy.management_endpoints.common_utils._premium_user_check", side_effect=Exce
tests/litellm/proxy/management_endpoints/test_common_utils.py:None
Route
test_endpoint
router.get( "/test", tags=["health"], dependencies=[Depends(user_api_key_auth)], )
litellm/proxy/health_endpoints/_health_endpoints.py:None
Route
test_endpoint_targeting_field_in_request_body_is_rejected
pytest.mark.parametrize( "field", [ "aws_bedrock_runtime_endpoint", "l
tests/test_litellm/proxy/auth/test_auth_utils.py:None
Route
test_engines_model_chat_completions
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Route
test_ensure_initialize_azure_sdk_client_always_used
pytest.mark.parametrize( "call_type", [ call_type for call_type in CallTypes.__members
tests/test_litellm/llms/azure/test_azure_common_utils.py:None
Route
test_every_proxy_rate_limit_hook_uses_unified_class
pytest.mark.parametrize( "module_path", [ "litellm.proxy.hooks.parallel_request_li
tests/test_litellm/test_rate_limit_error_unification.py:None
Route
test_explicit_route_helpers_match_token_only_as_path_segment
pytest.mark.parametrize( "route_method, token", [ (BedrockModelInfo._explicit_converse_route,
tests/test_litellm/llms/bedrock/test_bedrock_common_utils.py:None
Route
test_external_ip_only_sees_public_servers
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/auth/test_mcp_ip_filtering.py:None
Route
test_external_ip_reports_blocked_count
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/auth/test_mcp_ip_filtering.py:None
Route
test_external_span_from_global_context
patch.dict(os.environ, {"USE_OTEL_LITELLM_REQUEST_SPAN": "false"}, clear=False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_external_span_hierarchy_preserved
patch.dict(os.environ, {"USE_OTEL_LITELLM_REQUEST_SPAN": "false"}, clear=False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_external_span_not_closed_with_use_otel_litellm_request_span_false
patch.dict(os.environ, {"USE_OTEL_LITELLM_REQUEST_SPAN": "false"}, clear=False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_external_span_not_closed_with_use_otel_litellm_request_span_true
patch.dict(os.environ, {"USE_OTEL_LITELLM_REQUEST_SPAN": "true"}, clear=False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_external_span_not_ended_on_failure
patch.dict(os.environ, {"USE_OTEL_LITELLM_REQUEST_SPAN": "false"}, clear=False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_external_span_with_multiple_completions
patch.dict(os.environ, {"USE_OTEL_LITELLM_REQUEST_SPAN": "false"}, clear=False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_extra_headers_forwarded_to_openai_image_generation
patch("litellm.images.main.openai_chat_completions")
tests/test_litellm/images/test_image_generation_extra_headers.py:None
Route
test_extract_model_id_returns_none_for_non_string_input
pytest.mark.parametrize("bad_input", [None, 42, b"bytes-not-str", []])
tests/test_litellm/llms/base_llm/test_managed_resources_utils.py:None
Route
test_fable_5_all_variants_carry_adaptive_thinking_flag
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
Route
test_falls_back_to_arize_env_when_phoenix_unset
patch.dict( "os.environ", {"ARIZE_PROJECT_NAME": "arize-env", "PHOENIX_PROJECT_NAME": ""},
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
← previous
next →
801–900 of 1,734, ranked by callers