MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints1,734 in github.com/BerriAI/litellm

Routetest_mcp_management_blocked_when_admin_disabled
pytest.mark.parametrize( "route", [ "/v1/mcp/server", "/v1/mcp/server/
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_mcp_management_routes_classified_as_management_not_llm_api
pytest.mark.parametrize( "route", [ "/v1/mcp/server", "/v1/mcp/server/abc-123",
tests/test_litellm/proxy/auth/test_route_checks.py:None
Routetest_merge_tags
pytest.mark.parametrize( "request_tags, tags_to_add, expected_tags", [ (None, None, []), # bo
tests/proxy_unit_tests/test_proxy_utils.py:None
Routetest_message_ordering
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/local_testing/test_lakera_ai_prompt_injection.py:None
Routetest_messages_for_disabled_role
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/local_testing/test_lakera_ai_prompt_injection.py:None
Routetest_missing_api_key_raises_error
patch.dict("os.environ", {}, clear=True)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_panw_prisma_airs.py:None
Routetest_missing_model_parameter_curl
pytest.mark.parametrize( "curl_command", [ 'curl http://0.0.0.0:4000/v1/chat/completions -H \'
tests/store_model_in_db_tests/test_openai_error_handling.py:None
Routetest_mixed_success_failure
patch( "litellm.router_utils.cooldown_handlers.get_deployment_successes_for_current_minute" )
tests/router_unit_tests/test_router_cooldown_utils.py:None
Routetest_mock_litellm_list_input_items_integration
patch("litellm.list_input_items")
tests/test_litellm/llms/openai/responses/test_openai_responses_transformation.py:None
Routetest_mock_litellm_router_with_transform_list_input_items_request
patch("litellm.router.Router")
tests/test_litellm/llms/openai/responses/test_openai_responses_transformation.py:None
Routetest_model_api_inference
patch.dict(os.environ, {"BASETEN_API_KEY": "test-key"})
tests/test_litellm/llms/baseten/chat/test_baseten_completions.py:None
Routetest_model_connection
router.post( "/health/test_connection", tags=["health"], dependencies=[Depends(user_api_key_auth)]
litellm/proxy/health_endpoints/_health_endpoints.py:None
Routetest_model_discovery_route_bypasses_team_budget
pytest.mark.parametrize("route", MODEL_DISCOVERY_ROUTES)
tests/test_litellm/proxy/auth/test_auth_checks.py:None
Routetest_model_from_request_body_used_when_present
patch.object( AnthropicPassthroughLoggingHandler, "_build_complete_streaming_response" )
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Routetest_model_function_invoke
pytest.mark.parametrize( "model, api_key, api_base", [ ("gpt-3.5-turbo", None, None),
tests/local_testing/test_completion.py:None
Routetest_model_info_primary_region
pytest.mark.parametrize("model_name,regions,max_input,max_output", MODEL_CONFIGS)
tests/litellm/test_bedrock_extended_beta_models.py:None
Routetest_model_list_with_fallback_metadata
patch("litellm.proxy.proxy_server.llm_router")
tests/proxy_unit_tests/test_models_fallback_endpoint.py:None
Routetest_models_route_allowed_when_llm_api_disabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_moderations_api_logging
pytest.mark.parametrize( "model", [None, "omni-moderation-latest", "router-internal-moderation-model"] )
tests/logging_callback_tests/test_moderations_api_logging.py:None
Routetest_modify_response_exception_returns_error
patch(_COLLECT, return_value=["rubrik"])
tests/test_litellm/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:None
Routetest_multi_message_with_function_input
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/local_testing/test_lakera_ai_prompt_injection.py:None
Routetest_native_forwarding_when_flag_absent
patch("litellm.responses.main.base_llm_http_handler.response_api_handler")
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Routetest_new_team_soft_budget_validation
pytest.mark.parametrize( "soft_budget,max_budget,should_succeed,expected_soft_budget,expected_max_budget,e
tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_no_cooldown_low_traffic
patch( "litellm.router_utils.cooldown_handlers.get_deployment_successes_for_current_minute" )
tests/router_unit_tests/test_router_cooldown_utils.py:None
Routetest_no_extra_headers_when_not_provided
patch("litellm.images.main.openai_chat_completions")
tests/test_litellm/images/test_image_generation_extra_headers.py:None
Routetest_no_force_uses_url_type
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_no_ip_means_no_filtering
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/auth/test_mcp_ip_filtering.py:None
Routetest_no_ip_returns_all_with_zero_blocked
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/auth/test_mcp_ip_filtering.py:None
Routetest_non_admin_get_null_owner_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_get_other_users_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_get_own_run_succeeds
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_list_scoped_to_caller_token
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_update_null_owner_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_empty_guardrails_triggers_premium_check
patch( "litellm.proxy.management_endpoints.common_utils._premium_user_check", )
tests/litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_list_triggers_premium_check
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_list_updates_metadata
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_policies_triggers_premium_check
patch( "litellm.proxy.management_endpoints.common_utils._premium_user_check", )
tests/litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_team_member_key_duration_triggers_premium_check
patch( "litellm.proxy.management_endpoints.common_utils._premium_user_check", )
tests/litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_value_triggers_premium_check
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_none_falls_back_to_current_time
patch("litellm.integrations.opentelemetry.datetime")
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_none_instructions_stays_none
patch("litellm.experimental_mcp_client.client.ClientSession")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_none_value_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
Routetest_observability_field_in_metadata_dict_is_rejected
pytest.mark.parametrize( "field", [ "langfuse_host", "langfuse_secret_
tests/test_litellm/proxy/auth/test_auth_utils.py:None
Routetest_observability_field_in_request_body_root_is_rejected
pytest.mark.parametrize( "field", [ "langfuse_public_key", "langfuse_s
tests/test_litellm/proxy/auth/test_auth_utils.py:None
Routetest_oidc_azure_ad_token_success
patch("litellm.secret_managers.main.get_azure_ad_token_provider")
tests/test_litellm/secret_managers/test_secret_managers_main.py:None
Routetest_oidc_circleci
pytest.mark.skipif( os.environ.get("CIRCLE_OIDC_TOKEN") is None, reason="Cannot run without being in C
tests/litellm_utils_tests/test_secret_manager.py:None
Routetest_oidc_circleci_v2
pytest.mark.skipif( os.environ.get("CIRCLE_OIDC_TOKEN_V2") is None, reason="Cannot run without being i
tests/litellm_utils_tests/test_secret_manager.py:None
Routetest_oidc_github
pytest.mark.skipif( os.environ.get("ACTIONS_ID_TOKEN_REQUEST_TOKEN") is None, reason="Cannot run witho
tests/litellm_utils_tests/test_secret_manager.py:None
Routetest_oidc_github_success
patch("litellm.secret_managers.main.oidc_cache")
tests/test_litellm/secret_managers/test_secret_managers_main.py:None
Routetest_oidc_google
pytest.mark.skipif( os.environ.get("K_SERVICE") is None, reason="Cannot run without being in GCP Cloud
tests/litellm_utils_tests/test_secret_manager.py:None
Routetest_ollama_aembeddings
mock.patch( "litellm.llms.ollama.completion.handler.ollama_aembeddings", return_value=mock_ollama_embe
tests/local_testing/test_ollama.py:None
Routetest_ollama_embeddings
mock.patch( "litellm.llms.ollama.completion.handler.ollama_embeddings", return_value=mock_ollama_embed
tests/local_testing/test_ollama.py:None
Routetest_open_telemetry_config_auto_infer_otlp_http_when_endpoint_set
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_open_telemetry_config_custom_service_name
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_open_telemetry_config_manual_defaults
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_openai_deployments_model_chat_completions_azure
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_openai_handler_repairs_github_copilot_empty_choices
patch("litellm.llms.openai.openai.OpenAIChatCompletion._get_openai_client")
tests/test_litellm/llms/github_copilot/test_github_copilot_transformation.py:None
Routetest_openai_image_generation_forwards_organization
patch("litellm.main.openai_chat_completions._get_openai_client")
tests/llm_translation/test_openai.py:None
Routetest_openai_max_retries_0
patch("litellm.main.openai_chat_completions._get_openai_client")
tests/llm_translation/test_openai.py:None
Routetest_openai_o_series_max_retries_0
patch("litellm.main.azure_o1_chat_completions._get_openai_client")
tests/llm_translation/test_azure_o_series.py:None
Routetest_openai_passthrough_handler_cost_calculation_error
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_openai_passthrough_handler_image_editing
patch("litellm.cost_calculator.default_image_cost_calculator")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_openai_passthrough_handler_image_generation
patch("litellm.cost_calculator.default_image_cost_calculator")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_openai_passthrough_handler_non_chat_completions
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_openai_passthrough_handler_success
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_openai_passthrough_handler_with_user_tracking
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_openai_realtime_direct_call_no_intent
pytest.mark.skipif( os.environ.get("OPENAI_API_KEY", None) is None, reason="No OpenAI API key provided
tests/llm_translation/realtime/test_openai_realtime.py:None
Routetest_openai_realtime_direct_call_with_intent
pytest.mark.skipif( os.environ.get("OPENAI_API_KEY", None) is None, reason="No OpenAI API key provided
tests/llm_translation/realtime/test_openai_realtime.py:None
Routetest_openai_v1_responses_route
patch("litellm.proxy.proxy_server.llm_router")
tests/test_litellm/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_opus_4_8_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_opus_4_8_config.py:None
Routetest_org_admin_can_invite_user_parametrized
pytest.mark.parametrize( "admin_orgs,target_orgs,expected", [ (["org1"], ["org1"],
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_outputs_contain_usage_metadata
patch("asyncio.create_task")
tests/test_litellm/integrations/test_langsmith_init.py:None
Routetest_ovhcloud_audio_transcription_config_installed
pytest.mark.skipif( not os.getenv("OVHCLOUD_API_KEY"), reason="OVHCLOUD_API_KEY not set, skipping OVHC
tests/test_litellm/llms/ovhcloud/test_ovhcloud_audio_transcription_transformation.py:None
Routetest_parent_proxy_span_not_duplicated
patch.dict(os.environ, {"USE_OTEL_LITELLM_REQUEST_SPAN": "true"}, clear=False)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_parse_content_for_reasoning
pytest.mark.parametrize( "content, expected_reasoning, expected_content", [ (None, None, None)
tests/litellm_utils_tests/test_utils.py:None
Routetest_parse_mcp_server_names_from_path
pytest.mark.parametrize( "path,expected", [ ("/mcp/sample_docs", ["sample_docs"]), # S
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_cold_start.py:None
Routetest_pascal_method_names_normalize_to_wire_format
pytest.mark.parametrize( "pascal_method,expected_wire_method", [ ("GetTask", "tasks/get"),
tests/test_litellm/proxy/agent_endpoints/test_a2a_endpoints.py:None
Routetest_pass_through_success_handler_gemini_routing
patch( "litellm.proxy.pass_through_endpoints.llm_provider_handlers.gemini_passthrough_logging_handler.
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:None
Routetest_passthrough_cold_start_emits_401_with_matching_resource_metadata
pytest.mark.parametrize( "route,expected_metadata_path", [ ( "/mcp/sample_docs",
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_oauth_passthrough_cold_start.py:None
Routetest_passthrough_failure_stamps_server_span
pytest.mark.parametrize("path,http_route", SMOKE_PASSTHROUGHS)
tests/test_litellm/integrations/open_telemetry/test_otel_passthrough_endpoints.py:None
Routetest_pg_vector_search_request_construction
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/pg_vector/vector_stores/test_pg_vector_transformation.py:None
Routetest_pipeline
router.post( "/policies/test-pipeline", tags=["Policies"], dependencies=[Depends(user_api_key_auth
litellm/proxy/policy_engine/policy_endpoints.py:None
Routetest_policies_and_guardrails
router.post( "/utils/test_policies_and_guardrails", tags=["utils"], dependencies=[Depends(user_api
litellm/proxy/management_endpoints/policy_endpoints/endpoints.py:None
Routetest_policy_id_from_init
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Routetest_policy_id_from_request_metadata
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Routetest_policy_id_from_team_metadata
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Routetest_policy_id_from_user_api_key_metadata
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Routetest_policy_id_zero_from_request_metadata
patch( "litellm.proxy.guardrails.guardrail_hooks.zscaler_ai_guard.ZscalerAIGuard.make_zscaler_ai_guard_api
tests/guardrails_tests/test_zscaler_ai_guard.py:None
Routetest_policy_matching
router.post( "/policy/test", tags=["policy management"], dependencies=[Depends(user_api_key_auth)]
litellm/proxy/management_endpoints/policy_endpoints/endpoints.py:None
Routetest_policy_template
router.post( "/policy/templates/test", tags=["policy management"], dependencies=[Depends(user_api_
litellm/proxy/management_endpoints/policy_endpoints/endpoints.py:None
Routetest_poll_for_authentication_auto_assigned_team
patch("litellm.proxy.client.cli.commands.auth._handle_team_selection_during_polling")
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_authentication_no_data
patch("litellm.proxy.client.cli.commands.auth._handle_team_selection_during_polling")
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_authentication_no_teams
patch("litellm.proxy.client.cli.commands.auth._handle_team_selection_during_polling")
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_authentication_team_selection_cancelled
patch( "litellm.proxy.client.cli.commands.auth._handle_team_selection_during_polling", return_value=No
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_authentication_team_selection_success
patch( "litellm.proxy.client.cli.commands.auth._handle_team_selection_during_polling", return_value="j
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_ready_200_ready
patch( "litellm.proxy.client.cli.commands.auth.requests.get", side_effect=[ Mock(
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_ready_404
patch( "litellm.proxy.client.cli.commands.auth.requests.get", side_effect=[Mock(status_code=404)], )
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_ready_connection_failure
patch( "litellm.proxy.client.cli.commands.auth.requests.get", side_effect=[ requests.RequestEx
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_ready_pending
patch( "litellm.proxy.client.cli.commands.auth.requests.get", side_effect=[ Mock(
tests/test_litellm/proxy/auth/test_cli_auth.py:None
Routetest_poll_for_ready_single_pending
patch( "litellm.proxy.client.cli.commands.auth.requests.get", side_effect=[ Mock(
tests/test_litellm/proxy/auth/test_cli_auth.py:None
← previousnext →1,201–1,300 of 1,734, ranked by callers