MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints1,986 in github.com/BerriAI/litellm

Routetest_available_team_self_join_blocks_member_budget_controls
pytest.mark.parametrize( "budget_control", [ {"max_budget_in_team": 1000.0}, {"budget_
tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_azure_ai_claude_1m_context_entries
pytest.mark.parametrize( "cost_map", [_load_root_cost_map(), GetModelCostMap.load_local_model_cost_map
tests/test_litellm/litellm_core_utils/test_get_model_cost_map.py:None
Routetest_azure_computer_use_cost_calculation
pytest.mark.parametrize( "input_tokens,output_tokens,expected_cost", [ (
tests/test_litellm/litellm_core_utils/llm_cost_calc/test_azure_assistant_cost_tracking.py:None
Routetest_azure_content_safety_pre_call_fires_on_runtime_call_types
pytest.mark.parametrize( "call_type, data", [ ( "acompletion", {
tests/test_litellm/proxy/guardrails/test_guardrail_coverage.py:None
Routetest_azure_embedding_max_retries_0
patch("litellm.llms.azure.common_utils.select_azure_base_url_or_endpoint")
tests/llm_translation/test_azure_openai.py:None
Routetest_azure_extra_headers
pytest.mark.parametrize( "input, call_type", [ ({"messages": [{"role": "user", "content": "Hel
tests/llm_translation/test_azure_openai.py:None
Routetest_azure_gpt55_entries_present_with_correct_pricing
pytest.mark.parametrize( "model,expected_mode,expected_input,expected_output,expected_cache_read", [
tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py:None
Routetest_azure_instruct
patch("litellm.llms.azure.common_utils.select_azure_base_url_or_endpoint")
tests/llm_translation/test_azure_openai.py:None
Routetest_azure_max_retries_0
patch( "litellm.main.azure_chat_completions.make_sync_azure_openai_chat_completion_request" )
tests/llm_translation/test_azure_openai.py:None
Routetest_azure_passthrough_tags_metadata_model_provider
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_azure_specific_environment_validation
patch("litellm.llms.azure.common_utils.litellm")
tests/test_litellm/llms/azure/videos/test_azure_video_transformation.py:None
Routetest_azure_video_generation_router_call_mock
patch("litellm.videos.main.base_llm_http_handler")
tests/test_litellm/test_azure_video_router.py:None
Routetest_bare_key_blocks_over_its_own_budget
pytest.mark.covers("quota_management.budget.key.blocks_over_limit")
tests/e2e/quota_management/budgets/test_budget_enforcement_e2e.py:None
Routetest_bare_key_budget_resets_after_window
pytest.mark.covers("quota_management.budget.key.resets_after_window")
tests/e2e/quota_management/budgets/test_budget_reset_e2e.py:None
Routetest_base_aws_llm_auth_with_role_passes_ssl_verify
patch("boto3.client")
tests/test_litellm/llms/bedrock/test_bedrock_ssl_verify.py:None
Routetest_base_aws_llm_auth_with_web_identity_passes_ssl_verify
patch("litellm.llms.bedrock.base_aws_llm.get_secret")
tests/test_litellm/llms/bedrock/test_bedrock_ssl_verify.py:None
Routetest_base_openai_pass_through_handler
patch( "litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints.create_pass_through_route"
tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:None
Routetest_basic_rerank_deepinfra
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank.py:None
Routetest_basic_rerank_deepinfra
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/test_litellm/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Routetest_basic_rerank_huggingface
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/test_litellm/llms/huggingface/rerank/test_huggingface_rerank_transformation.py:None
Routetest_batch_creation_handler_model_extraction_from_nested_request
patch( "litellm.proxy.pass_through_endpoints.llm_provider_handlers.anthropic_passthrough_logging_handl
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Routetest_batch_creation_handler_model_prefix_when_not_in_router
patch( "litellm.proxy.pass_through_endpoints.llm_provider_handlers.anthropic_passthrough_logging_handl
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Routetest_batch_creation_handler_success
patch( "litellm.proxy.pass_through_endpoints.llm_provider_handlers.anthropic_passthrough_logging_handl
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Routetest_batch_rate_limiter_with_managed_files
pytest.mark.skipif( os.environ.get("OPENAI_API_KEY") is None, reason="OPENAI_API_KEY not set - skippin
tests/batches_tests/test_batch_rate_limits.py:None
Routetest_batch_rate_limits
pytest.mark.skipif( os.environ.get("OPENAI_API_KEY") is None, reason="OPENAI_API_KEY not set - skippin
tests/batches_tests/test_batch_rate_limits.py:None
Routetest_bedrock_embedding
mock_patch_aembedding()
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_bedrock_embedding_models
pytest.mark.parametrize( "model,input_type,embed_response", [ ( "bedrock/amazon.ti
tests/llm_translation/test_bedrock_embedding.py:None
Routetest_bedrock_embedding_with_api_key_bearer_token
pytest.mark.parametrize( "model,input_type,embed_response", [ ("bedrock/amazon.titan-embed-tex
tests/test_litellm/llms/bedrock/embed/test_bedrock_embedding.py:None
Routetest_bedrock_embedding_with_env_variable_bearer_token
pytest.mark.parametrize( "model,input_type,embed_response", [ ("bedrock/amazon.titan-embed-tex
tests/test_litellm/llms/bedrock/embed/test_bedrock_embedding.py:None
Routetest_bedrock_route_detection
pytest.mark.parametrize( "model,expected_route", [ # Test explicit route prefixes ("in
tests/llm_translation/test_bedrock_completion.py:None
Routetest_bitbucket_client_get_file_content_access_denied
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/test_litellm/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_get_file_content_auth_failed
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/test_litellm/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_get_file_content_not_found
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/test_litellm/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_get_file_content_success
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/test_litellm/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_list_files_success
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/test_litellm/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_prompt_integration_with_litellm
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_complex_prompt
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_error_handling
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_get_template
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_initialization
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_integration
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_prompt_manager_list_templates
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_message_parsing
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_post_call_hook
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_pre_call_hook_integration
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_reload_prompts
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/test_litellm/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_block_payload_canonical
pytest.mark.parametrize( "surface,direction,transport", [ ("chat", "input", "http_
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_block_unblock_model
patch( "litellm.repositories.model_repository.encrypt_value_helper", side_effect=lambda v, **k
tests/test_litellm/repositories/test_repositories.py:None
Routetest_blocked_member_does_not_block_peer
pytest.mark.covers("quota_management.budget.team_member.isolates_per_member")
tests/e2e/quota_management/budgets/test_team_member_budget_isolation_e2e.py:None
Routetest_blocks_unregistered_server_chat_completions
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
Routetest_blocks_unregistered_server_responses_api
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
Routetest_bridge_double_call_preserves_native_model
pytest.mark.parametrize( "input_model", [ "openrouter/openrouter/aurora-alpha",
tests/test_litellm/llms/openrouter/test_openrouter_provider_routing.py:None
Routetest_bridge_flag_forwarded_to_file_search_emulation
patch("litellm.responses.file_search.emulated_handler._call_aresponses")
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_flag_prevents_native_responses_endpoint_call
patch( "litellm.responses.main.litellm_completion_transformation_handler.response_api_handler" )
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_used_when_model_uses_chat_completions_prefix
patch( "litellm.responses.main.litellm_completion_transformation_handler.response_api_handler" )
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_used_when_provider_config_none
patch( "litellm.responses.main.litellm_completion_transformation_handler.response_api_handler" )
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_used_when_use_chat_completions_api_true
patch( "litellm.responses.main.litellm_completion_transformation_handler.response_api_handler" )
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Routetest_budget_alerts_with_all_alert_types
pytest.mark.parametrize( "alert_type", [ "token_budget", "user_budget"
tests/test_litellm/test_utils.py:None
Routetest_budget_checks_only_run_on_llm_api_routes
pytest.mark.parametrize( "scope, route, expect_blocked", [ ("user", "/chat/completions", True)
tests/test_litellm/proxy/auth/test_auth_checks.py:None
Routetest_budget_crud_roundtrip
pytest.mark.covers("mgmt.budget.new.persists")
tests/e2e/quota_management/budgets/test_budget_crud_e2e.py:None
Routetest_budget_delete_removes_it
pytest.mark.covers("mgmt.budget.delete.persists")
tests/e2e/quota_management/budgets/test_budget_crud_e2e.py:None
Routetest_budget_fallback_reroutes_anthropic_messages_to_openai
pytest.mark.covers("quota_management.budget.fallback.routes_to_fallback")
tests/e2e/quota_management/budgets/test_budget_fallback_e2e.py:None
Routetest_build_usage_handles_openai_and_anthropic_shapes
pytest.mark.parametrize( ("response", "expected"), [ ({"usage": {"input_tokens": 10, "output_t
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_straiker.py:None
Routetest_byok_defers_regardless_of_auth_type
pytest.mark.parametrize( "server", [ _server(auth_type=MCPAuth.api_key, is_byok=True),
tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_adapter.py:None
Routetest_bytesio_at_end_position
pytest.mark.skipif( os.environ.get("SKIP_AUDIO_TESTS") == "true", reason="Skipping audio tests
tests/test_litellm/litellm_core_utils/test_audio_utils.py:None
Routetest_cache_connection
router.post( "/cache/settings/test", tags=["Cache Settings"], dependencies=[Depends(user_api_key_a
litellm/proxy/management_endpoints/cache_settings_endpoints.py:None
Routetest_cache_get_by_file_returns_exact_entry
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_get_by_id_accepts_encoded_and_decoded
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_init_creates_cluster_cache_from_env_var
patch("litellm._redis.get_redis_connection_pool")
tests/test_litellm/caching/test_redis_cluster_cache.py:None
Routetest_cache_init_creates_redis_cache_without_cluster_config
patch("litellm._redis.get_redis_connection_pool")
tests/test_litellm/caching/test_redis_cluster_cache.py:None
Routetest_cache_load_all_encodes_ids_and_populates_maps
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_reload_clears_then_reloads
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_skips_when_template_missing_even_after_reload_attempt
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_calculate_cost_basic
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
Routetest_calculate_cost_with_audio
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
Routetest_calculate_cost_with_web_search
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
Routetest_calculate_image_editing_cost
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_calculate_image_generation_cost
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_calculate_usage_nulls
pytest.mark.parametrize( "usage_object,expected_usage", [ [ { "cac
tests/test_litellm/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_call_tool
patch.object(mcp_client_module, "streamable_http_client")
tests/mcp_tests/test_mcp_client_unit.py:None
Routetest_can_user_call_unified_file_id
pytest.mark.parametrize( "call_type", ["afile_content", "afile_delete", "afile_retrieve"] )
tests/enterprise/litellm_enterprise/proxy/hooks/test_managed_files.py:None
Routetest_captures_instructions_from_initialize
patch("litellm.experimental_mcp_client.client.ClientSession")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_centralized_common_checks_routes_header_tags_to_litellm_metadata
pytest.mark.parametrize( "route", [ "/bedrock/model/us.anthropic.claude-sonnet-4-6/invoke",
tests/test_litellm/proxy/auth/test_user_api_key_auth.py:None
Routetest_chat_completion
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
Routetest_chat_completion
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_chat_completion
pytest.mark.skipif( os.environ.get("AZURE_AI_API_KEY") is None or os.environ.get("OPENAI_API_KEY") is
tests/proxy_unit_tests/test_proxy_pass_user_config.py:None
Routetest_chat_completion_azure
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_chat_completion_exception_azure
mock.patch( "litellm.proxy.proxy_server.llm_router.acompletion", return_value=invalid_authentication_e
tests/proxy_unit_tests/test_proxy_exception_mapping.py:None
Routetest_chat_completion_exception_azure_context_window
mock.patch( "litellm.proxy.proxy_server.llm_router.acompletion", return_value=context_length_exceeded_
tests/proxy_unit_tests/test_proxy_exception_mapping.py:None
Routetest_chat_completion_forward_headers
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_chat_completion_forward_llm_provider_auth_headers
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_chat_completion_optional_params
mock_patch_acompletion()
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_chat_completion_request_with_redaction
pytest.mark.parametrize( "route, body", [ ( "/v1/chat/completions", {
tests/proxy_unit_tests/test_proxy_reject_logging.py:None
Routetest_chat_completion_stream
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
Routetest_chat_completions_failure_stamps_server_span
pytest.mark.parametrize( "exception, expected_status", [ (make_fastapi_http_exception(400, "ba
tests/test_litellm/integrations/open_telemetry/test_otel_unified_endpoints.py:None
Routetest_chat_completions_still_blocked_when_llm_api_disabled
patch.object(EnterpriseRouteChecks, "is_llm_api_route_disabled")
tests/enterprise/litellm_enterprise/proxy/auth/test_route_checks.py:None
Routetest_chat_returns_real_completion
pytest.mark.parametrize( ("model", "route"), CHAT_MODELS, ids=[f"{model}-{route}" for
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_chatgpt_responses_endpoint_url
patch("litellm.llms.chatgpt.responses.transformation.Authenticator")
tests/test_litellm/llms/chatgpt/responses/test_chatgpt_responses_transformation.py:None
Routetest_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
Routetest_check_and_create_cache_distinct_tool_choices_use_distinct_keys
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
← previousnext →701–800 of 1,986, ranked by callers