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_get_response_for_spend_logs_payload_truncates_large_base64
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Route
test_get_response_for_spend_logs_payload_truncates_large_embedding
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Route
test_get_spend_routes_permission_keeps_access_for_internal_user
pytest.mark.parametrize("route", GLOBAL_SPEND_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Route
test_get_supported_openai_params
patch("litellm.utils.supports_function_calling", return_value=True)
tests/test_litellm/llms/publicai/test_publicai_chat_transformation.py:None
Route
test_get_team_db_check_calls_new_team_on_upsert
patch( "litellm.proxy.management_endpoints.team_endpoints.new_team", new_callable=AsyncMock )
tests/test_litellm/proxy/auth/test_auth_checks.py:None
Route
test_get_team_db_check_does_not_call_new_team_if_exists
patch( "litellm.proxy.management_endpoints.team_endpoints.new_team", new_callable=AsyncMock )
tests/test_litellm/proxy/auth/test_auth_checks.py:None
Route
test_get_tool_found
patch( "litellm.proxy.db.tool_registry_writer.get_tool", new_callable=AsyncMock, )
tests/test_litellm/proxy/management_endpoints/test_tool_management_endpoints.py:None
Route
test_get_tool_not_found_returns_404
patch( "litellm.proxy.db.tool_registry_writer.get_tool", new_callable=AsyncMock, )
tests/test_litellm/proxy/management_endpoints/test_tool_management_endpoints.py:None
Route
test_get_tracer_with_dynamic_headers
patch("opentelemetry.sdk.trace.TracerProvider")
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_get_usage
pytest.mark.parametrize( "response_obj,expected_values", [ # Test None input (None, (0
tests/logging_callback_tests/test_standard_logging_payload.py:None
Route
test_get_user_404
patch("requests.get")
tests/test_litellm/proxy/client/test_users.py:None
Route
test_get_user_role
pytest.mark.parametrize( "user_obj, expected_role", [ (None, None), # Case 1: user_obj is Non
tests/proxy_unit_tests/test_user_api_key_auth.py:None
Route
test_get_user_success
patch("requests.get")
tests/test_litellm/proxy/client/test_users.py:None
Route
test_get_vector_store_request_for_spend_logs_payload_null_input
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Route
test_get_vector_store_request_for_spend_logs_payload_store_prompts_false
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Route
test_get_vector_store_request_for_spend_logs_payload_store_prompts_true
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Route
test_github_copilot_responses_endpoint_url
patch("litellm.llms.github_copilot.responses.transformation.Authenticator")
tests/test_litellm/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Route
test_gitlab_client_get_file_content_access_denied
patch("litellm.integrations.gitlab.gitlab_client.HTTPHandler.get")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_client_get_file_content_auth_failed
patch("litellm.integrations.gitlab.gitlab_client.HTTPHandler.get")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_client_get_file_content_not_found
patch("litellm.integrations.gitlab.gitlab_client.HTTPHandler.get")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_client_get_file_content_raw_404_fallback_json_base64
patch("litellm.integrations.gitlab.gitlab_client.HTTPHandler.get")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_client_get_file_content_raw_success
patch("litellm.integrations.gitlab.gitlab_client.HTTPHandler.get")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_client_list_files_success
patch("litellm.integrations.gitlab.gitlab_client.HTTPHandler.get")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_get_prompt_template_explicit_ref_param
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_error_handling_load
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_initialization_with_root_folder
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_integration
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_prompt_manager_list_templates_with_prompts_path
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_message_parsing
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_post_call_hook_passthrough
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_pre_call_hook_basic
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_prompt_manager_pre_call_hook_ref_precedence
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_pre_call_hook_updates_params
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_manager_prompts_path_resolution_and_version
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_prompt_manager_reload_prompts
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_prompt_manager_version_precedence
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_prompt_manager.py:None
Route
test_gitlab_prompt_manager_with_prompts_path
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_version_manager_override_used_when_no_prompt_version_or_kwarg
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_version_precedence_prompt_version_wins
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_version_ref_kwarg_used_when_no_prompt_version
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_prompt_version_with_prompts_path
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_gitlab_template_manager_load_all_prompts
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabClient")
tests/test_litellm/integrations/gitlab/test_gitlab_integration.py:None
Route
test_google_routes_with_dynamic_model_names_recognized_as_llm_api_route
pytest.mark.parametrize( "route", [ "/v1beta/models/google-gemini-2-5-pro-code-reviewer-k8s:ge
tests/test_litellm/proxy/auth/test_route_checks.py:None
Route
test_govcloud_client_initialization
patch("litellm.llms.bedrock.common_utils.init_bedrock_client")
tests/llm_translation/test_bedrock_govcloud.py:None
Route
test_govcloud_completion_cost_calculation
patch("litellm.completion")
tests/llm_translation/test_bedrock_govcloud.py:None
Route
test_govcloud_completion_with_cost_tracking
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/llm_translation/test_bedrock_govcloud.py:None
Route
test_gpt_5_4_responses_bridge_merges_reasoning_summary_kwarg_without_tools
patch("litellm.completion_extras.responses_api_bridge.completion")
tests/test_litellm/test_main.py:None
Route
test_gpt_5_4_responses_bridge_preserves_reasoning_summary_dict
patch("litellm.completion_extras.responses_api_bridge.completion")
tests/test_litellm/test_main.py:None
Route
test_gpt_5_responses_bridge_tools_and_reasoning_summary
patch("litellm.completion_extras.responses_api_bridge.completion")
tests/test_litellm/test_main.py:None
Route
test_guardrail_response_dict_is_json_serialized
patch("litellm.integrations.opentelemetry.datetime")
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_guardrail_response_none_is_skipped
patch("litellm.integrations.opentelemetry.datetime")
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_guardrail_span_has_team_attributes
patch("litellm.integrations.opentelemetry.datetime")
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_handle_authentication_error_genuine_auth_failure_stays_401
pytest.mark.parametrize( "auth_error", [ # DB returned no row -> get_key_object raises this ex
tests/test_litellm/proxy/auth/test_auth_exception_handler.py:None
Route
test_handle_clientside_credential_metadata_loading
pytest.mark.parametrize( "function_name, expected_metadata_key", [ ("acompletion", "metadata")
tests/router_unit_tests/test_router_helper_utils.py:None
Route
test_handle_db_exception_raises_error
patch( "litellm.proxy.proxy_server.general_settings", {"allow_requests_on_db_unavailable": False}, )
tests/test_litellm/proxy/db/test_exception_handler.py:None
Route
test_handle_db_exception_with_connection_error
patch( "litellm.proxy.proxy_server.general_settings", {"allow_requests_on_db_unavailable": True}, )
tests/test_litellm/proxy/db/test_exception_handler.py:None
Route
test_handle_logging_proxy_only_error_syncs_normalized_call_type
pytest.mark.parametrize( "request_data, route, expected_call_type", [ ( {"model":
tests/proxy_unit_tests/test_proxy_utils.py:None
Route
test_handle_success_spans_and_metrics
patch.dict( os.environ, {"LITELLM_OTEL_INTEGRATION_ENABLE_METRICS": "true"}, clear=True )
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_handle_top_k_value_helper
pytest.mark.parametrize( "model, expected_output", [ ("bedrock/anthropic.claude-3-sonnet-20240
tests/llm_translation/test_bedrock_completion.py:None
Route
test_handler_does_not_crash_when_usage_only_fallback_raises
patch.object( AnthropicPassthroughLoggingHandler, "_build_usage_only_response_from_chunks" )
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_handler_falls_back_when_assembly_raises
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_handler_falls_back_when_assembly_returns_none
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_handler_returns_none_when_no_usage_recoverable
patch.object( AnthropicPassthroughLoggingHandler, "_build_complete_streaming_response" )
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Route
test_hashicorp_vault_connection
router.post( "/config_overrides/hashicorp_vault/test_connection", tags=["Config Overrides"], depen
litellm/proxy/management_endpoints/config_override_endpoints.py:None
Route
test_header_tags_visible_to_tag_max_budget_check_on_metadata_route
pytest.mark.parametrize( "route", [ "/bedrock/model/us.anthropic.claude-sonnet-4-6
tests/test_litellm/proxy/test_litellm_pre_call_utils.py:None
Route
test_helicone_logging_metadata
pytest.mark.skipif( condition=not os.environ.get("OPENAI_API_KEY", False), reason="Authentication miss
tests/local_testing/test_helicone_integration.py:None
Route
test_hf_embedding_sentence_sim
patch( "litellm.llms.huggingface.embedding.handler.async_get_hf_task_embedding_for_model" )
tests/local_testing/test_embedding.py:None
Route
test_hosted_vllm_embedding_ssl_verify_false_async
patch("litellm.llms.custom_httpx.llm_http_handler.get_async_httpx_client")
tests/test_litellm/llms/hosted_vllm/embedding/test_hosted_vllm_embedding_ssl_verify.py:None
Route
test_hosted_vllm_embedding_ssl_verify_false_sync
patch("litellm.llms.custom_httpx.llm_http_handler._get_httpx_client")
tests/test_litellm/llms/hosted_vllm/embedding/test_hosted_vllm_embedding_ssl_verify.py:None
Route
test_hosted_vllm_ssl_verify_false_async
patch("litellm.llms.custom_httpx.llm_http_handler.get_async_httpx_client")
tests/test_litellm/llms/hosted_vllm/chat/test_hosted_vllm_ssl_verify.py:None
Route
test_hosted_vllm_ssl_verify_false_sync
patch("litellm.llms.custom_httpx.llm_http_handler._get_httpx_client")
tests/test_litellm/llms/hosted_vllm/chat/test_hosted_vllm_ssl_verify.py:None
Route
test_huggingface_rerank_custom_api_base
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/test_litellm/llms/huggingface/rerank/test_huggingface_rerank_transformation.py:None
Route
test_huggingface_rerank_error_handling
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/huggingface/rerank/test_huggingface_rerank_transformation.py:None
Route
test_huggingface_rerank_request_payload
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/huggingface/rerank/test_huggingface_rerank_transformation.py:None
Route
test_huggingface_rerank_return_documents
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/huggingface/rerank/test_huggingface_rerank_transformation.py:None
Route
test_huggingface_rerank_with_env_vars
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/test_litellm/llms/huggingface/rerank/test_huggingface_rerank_transformation.py:None
Route
test_imagen_image_generation_config_validation
pytest.mark.skipif( not os.getenv("VERTEXAI_PROJECT"), reason="Vertex AI credentials not set",
tests/test_litellm/llms/vertex_ai/image_generation/test_vertex_ai_image_generation_transformation.py:None
Route
test_img_gen
mock_patch_aimage_generation()
tests/proxy_unit_tests/test_proxy_server.py:None
Route
test_init
patch("semantic_router.routers.SemanticRouter")
tests/test_litellm/router_strategy/test_auto_router.py:None
Route
test_init_auto_router_deployment_duplicate_model_name
patch("litellm.router_strategy.auto_router.auto_router.AutoRouter")
tests/router_unit_tests/test_router_helper_utils.py:None
Route
test_init_auto_router_deployment_success
patch("litellm.router_strategy.auto_router.auto_router.AutoRouter")
tests/router_unit_tests/test_router_helper_utils.py:None
Route
test_init_bedrock_client_passes_ssl_verify_to_sts
patch("boto3.client")
tests/test_litellm/llms/bedrock/test_bedrock_ssl_verify.py:None
Route
test_init_granian_server
patch("granian.Granian")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_init_granian_server_runtime_threads
patch("granian.Granian")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_init_granian_server_ssl
patch("granian.Granian")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_init_granian_server_ssl_requires_cert_and_key
patch("granian.Granian")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_init_hypercorn_server
patch("asyncio.run")
tests/test_litellm/proxy/test_proxy_cli.py:None
Route
test_init_logs_respects_existing_logger_provider
patch.dict( os.environ, {"LITELLM_OTEL_INTEGRATION_ENABLE_EVENTS": "true"}, clear=True )
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_init_metrics_respects_existing_meter_provider
patch.dict( os.environ, {"LITELLM_OTEL_INTEGRATION_ENABLE_METRICS": "true"}, clear=True )
tests/test_litellm/integrations/test_opentelemetry.py:None
Route
test_init_missing_api_key
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/integrations/test_braintrust_logging.py:None
Route
test_init_with_env_var
patch.dict(os.environ, {"BRAINTRUST_API_KEY": "test-env-api-key"})
tests/test_litellm/integrations/test_braintrust_logging.py:None
Route
test_initialize_guardrail_ok
patch("litellm.proxy.guardrails.guardrail_hooks.llm_as_a_judge.litellm.logging_callback_manager")
tests/test_litellm/proxy/guardrails/test_llm_as_a_judge.py:None
Route
test_integration_token_user_id_scenario
patch("litellm.integrations.openmeter.HTTPHandler")
tests/test_litellm/integrations/test_openmeter.py:None
Route
test_internal_ip_reports_zero_blocked
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/auth/test_mcp_ip_filtering.py:None
Route
test_internal_ip_sees_all_servers
patch("litellm.public_mcp_servers", [])
tests/test_litellm/proxy/auth/test_mcp_ip_filtering.py:None
Route
test_internal_user_blocked_from_admin_viewer_logs_routes
pytest.mark.parametrize("route", ADMIN_VIEWER_LOGS_PAGE_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Route
test_internal_user_blocked_from_global_spend_routes
pytest.mark.parametrize("route", GLOBAL_SPEND_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
Route
test_internal_user_blocked_from_search_tool_writes
pytest.mark.parametrize( "route", [ "/search_tools", # create "/search_tools/abc123",
tests/test_litellm/proxy/auth/test_route_checks.py:None
Route
test_internal_user_can_read_search_tools
pytest.mark.parametrize( "route", [ "/search_tools/list", "/search_tools/ui/available_
tests/test_litellm/proxy/auth/test_route_checks.py:None
Route
test_internal_user_view_only_blocked_from_global_spend_routes
pytest.mark.parametrize("route", GLOBAL_SPEND_ROUTES)
tests/test_litellm/proxy/auth/test_route_checks.py:None
← previous
next →
1,001–1,100 of 1,734, ranked by callers