MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_validate_accepts_loadable_complexity_config
pytest.mark.parametrize( "complexity_router_config", [ {"tiers": VALID_TIERS, "classifier_type
tests/unit/router_strategy/test_auto_router_model_naming.py:None
Routetest_validate_access_groups_no_team_raises
patch( "litellm.proxy.management_helpers.object_permission_utils.get_allow_all_keys_server_ids", retur
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_access_groups_outside_team_scope_raises
patch( "litellm.proxy.management_helpers.object_permission_utils.get_allow_all_keys_server_ids", retur
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_access_groups_within_team_scope
patch( "litellm.proxy.management_helpers.object_permission_utils.get_allow_all_keys_server_ids", retur
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_allow_all_keys_servers_always_allowed
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_chat_completion_tool_choice
pytest.mark.parametrize( "tool_choice, expected_bool", [ ({"type": "function", "function": {"n
tests/unit/test_utils.py:None
Routetest_validate_config_with_ollama_model_does_not_start_ollama
patch("subprocess.Popen")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_validate_db_mcp_server_alias_outside_team_scope_raises_when_registry_empty
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_deployment_complexity_router_placement_leaves_valid_deployments_alone
pytest.mark.parametrize( "litellm_params", [ {"model": "gpt-4o"}, {"model": "openai/gp
tests/unit/proxy/proxy_server/test_proxy_config.py:None
Routetest_validate_environment
patch( # test-quality-ok: patching litellm internal for unit test isolation "litellm.llms.gigachat.pa
tests/unit/llms/gigachat/passthrough/test_gigachat_passthrough_transformation.py:None
Routetest_validate_environment
patch.object(VertexAIVideoConfig, "get_access_token")
tests/unit/llms/vertex_ai/videos/test_vertex_video_transformation.py:None
Routetest_validate_environment
patch("google.auth.load_credentials_from_dict")
tests/unit/llms/gdc/chat/test_gdc_chat_transformation.py:None
Routetest_validate_environment_adds_mid_conversation_output_config_beta
pytest.mark.parametrize("nested_output_config", [False, True])
tests/unit/llms/anthropic/test_anthropic_common_utils.py:None
Routetest_validate_environment_default_headers
patch("litellm.llms.github_copilot.responses.transformation.Authenticator")
tests/unit/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_validate_environment_from_environment
patch.dict(os.environ, {"RAGFLOW_API_KEY": "env-api-key"})
tests/unit/llms/ragflow/chat/test_ragflow_chat_transformation.py:None
Routetest_validate_environment_headers
patch("litellm.llms.chatgpt.responses.transformation.Authenticator")
tests/unit/llms/chatgpt/responses/test_chatgpt_responses_transformation.py:None
Routetest_validate_environment_missing_api_key
patch.dict("os.environ", {}, clear=True)
tests/unit/llms/gemini/files/test_gemini_files_transformation.py:None
Routetest_validate_environment_missing_api_key
patch.dict("os.environ", {}, clear=True)
tests/unit/llms/gemini/videos/test_gemini_video_transformation.py:None
Routetest_validate_environment_missing_api_key
patch.dict("os.environ", {}, clear=True)
tests/unit/llms/anthropic/files/test_anthropic_files_transformation.py:None
Routetest_validate_environment_missing_api_key_raises
patch("litellm.llms.openrouter.image_edit.transformation.litellm")
tests/unit/llms/openrouter/image_edit/test_openrouter_image_edit_transformation.py:None
Routetest_validate_environment_no_api_key
patch("litellm.llms.modelscope.image_generation.transformation.get_secret_str")
tests/unit/llms/modelscope/image_generation/test_modelscope_image_gen_transformation.py:None
Routetest_validate_environment_no_api_key_raises_error
patch("litellm.llms.recraft.image_generation.transformation.get_secret_str")
tests/unit/llms/recraft/image_generation/test_recraft_image_gen_transformation.py:None
Routetest_validate_environment_ollama
mock.patch.dict(os.environ, {"OLLAMA_API_BASE": "foo"}, clear=True)
tests/unit/test_utils.py:None
Routetest_validate_environment_ollama_failed
mock.patch.dict(os.environ, {}, clear=True)
tests/unit/test_utils.py:None
Routetest_validate_environment_user_headers_override
patch("litellm.llms.github_copilot.responses.transformation.Authenticator")
tests/unit/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_validate_environment_with_api_key
patch("litellm.llms.modelscope.image_generation.transformation.get_secret_str")
tests/unit/llms/modelscope/image_generation/test_modelscope_image_gen_transformation.py:None
Routetest_validate_environment_with_api_key
patch("litellm.llms.searchapi.search.transformation.get_secret_str")
tests/unit/llms/searchapi/search/test_searchapi_search_transformation.py:None
Routetest_validate_environment_with_api_key
patch("litellm.llms.azure.common_utils.litellm")
tests/unit/llms/azure/videos/test_azure_video_transformation.py:None
Routetest_validate_environment_with_api_key
patch("litellm.llms.recraft.image_generation.transformation.get_secret_str")
tests/unit/llms/recraft/image_generation/test_recraft_image_gen_transformation.py:None
Routetest_validate_environment_with_api_key
patch("litellm.llms.apiserpent.search.transformation.get_secret_str")
tests/unit/llms/apiserpent/test_apiserpent_search.py:None
Routetest_validate_environment_with_api_key
patch("litellm.llms.openrouter.image_generation.transformation.get_secret_str")
tests/unit/llms/openrouter/image_generation/test_openrouter_image_gen_transformation.py:None
Routetest_validate_environment_with_api_key
patch("litellm.llms.openrouter.image_edit.transformation.get_secret_str")
tests/unit/llms/openrouter/image_edit/test_openrouter_image_edit_transformation.py:None
Routetest_validate_environment_with_secret_key
patch("litellm.llms.modelscope.image_generation.transformation.get_secret_str")
tests/unit/llms/modelscope/image_generation/test_modelscope_image_gen_transformation.py:None
Routetest_validate_environment_with_secret_key
patch("litellm.llms.recraft.image_generation.transformation.get_secret_str")
tests/unit/llms/recraft/image_generation/test_recraft_image_gen_transformation.py:None
Routetest_validate_environment_with_secret_key
patch("litellm.llms.openrouter.image_generation.transformation.get_secret_str")
tests/unit/llms/openrouter/image_generation/test_openrouter_image_gen_transformation.py:None
Routetest_validate_environment_with_secret_key
patch("litellm.llms.openrouter.image_edit.transformation.get_secret_str")
tests/unit/llms/openrouter/image_edit/test_openrouter_image_edit_transformation.py:None
Routetest_validate_environment_with_vision_header
patch("litellm.llms.github_copilot.responses.transformation.Authenticator")
tests/unit/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_validate_environment_with_x_initiator
patch("litellm.llms.github_copilot.responses.transformation.Authenticator")
tests/unit/llms/github_copilot/responses/test_github_copilot_responses_transformation.py:None
Routetest_validate_environment_without_api_key
patch("litellm.llms.azure.common_utils.get_secret_str")
tests/unit/llms/azure/videos/test_azure_video_transformation.py:None
Routetest_validate_key_scoped_to_server_added_after_team_all_proxy
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_key_scoped_to_server_rejected_when_team_not_all_proxy
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_key_servers_outside_team_scope_raises
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_key_servers_within_team_scope
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_mcp_server_alias_outside_team_scope_raises
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_mcp_server_alias_persists_verbatim
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_no_object_permission
patch( "litellm.proxy.management_helpers.object_permission_utils.get_allow_all_keys_server_ids", retur
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_no_team_non_admin_private_server_still_raises
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_no_team_non_global_server_raises
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_no_team_only_allow_all_keys
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_no_team_proxy_admin_can_assign_access_group
patch( "litellm.proxy.management_helpers.object_permission_utils.get_allow_all_keys_server_ids", retur
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_no_team_proxy_admin_can_assign_private_server
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_proxy_admin_still_bounded_by_team_scope
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_rejects_incoherent_writes
pytest.mark.parametrize( "model,present_fields,expected_fragment", [ ("auto_router/auto_router
tests/unit/router_strategy/test_auto_router_model_naming.py:None
Routetest_validate_reset_spend_value_invalid
pytest.mark.parametrize( "reset_to,key_spend,key_max_budget,budget_max_budget,expected_error", [
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_validate_reset_spend_value_valid
pytest.mark.parametrize( "reset_to,key_spend,key_max_budget,budget_max_budget", [ (0.0, 100.0,
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_validate_stale_ids_in_mcp_tool_permissions_silently_dropped
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_stale_mcp_server_ids_are_removed_from_object_permission
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_stale_mcp_server_ids_are_silently_dropped
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_team_access_groups_resolve_to_servers
patch( "litellm.proxy.management_helpers.object_permission_utils.get_allow_all_keys_server_ids", retur
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_team_model_max_budget_rejects_unenforceable_entries
pytest.mark.parametrize( "model_max_budget, error", [ ({"gpt-4o": BudgetConfig(max_budget=-1.0
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_validate_team_no_mcp_config_blocks_all
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_validate_team_org_change_zero_org_budget_is_enforced
pytest.mark.parametrize( "org_max_budget, team_max_budget, expect_blocked", [ (0.0, 100.0, Tru
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_validate_tool_choice_allowed_tools_malformed_is_a_400
pytest.mark.parametrize( "tool_choice", [ {"type": "allowed_tools", "mode": "required", "tools
tests/unit/test_utils.py:None
Routetest_validate_tool_permissions_validated_against_team
patch( "litellm.proxy.mcp_server.mcp_server_manager.global_mcp_server_manager", new=_make_mock_mcp_man
tests/unit/proxy/management_helpers/test_object_permission_utils.py:None
Routetest_values_that_are_not_secret_references_in_credential_params_are_allowed
pytest.mark.parametrize( "body", ( {"prompt": "os.environ/PATH is what in Python?"}, {
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_variants_of_one_failure_share_a_normalized_error
pytest.mark.parametrize( ("messages", "expected"), [ ( ( _proxy_ex
tests/unit/litellm_core_utils/test_error_normalization.py:None
Routetest_vector_store_create_with_target_model_names_creates_a_managed_store
pytest.mark.parametrize( ("target_model_names", "expected_targets"), [("embed-a, embed-b", ["embed-a",
tests/unit/proxy/vector_store_endpoints/test_vector_store_endpoints.py:None
Routetest_vector_store_crud_accessible_to_internal_roles
pytest.mark.parametrize( "method, route", [ ("GET", "/v1/vector_stores/vs_123"), ("POS
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_vector_store_file_management_is_not_chat
pytest.mark.parametrize( "call_type", [ f"{prefix}vector_store_file_{verb}" for verb i
tests/unit/integrations/otel/test_otel_v2_sources_of_truth.py:None
Routetest_vector_store_management_is_not_chat
pytest.mark.parametrize( "call_type", [ f"{prefix}vector_store_{verb}" for verb in ("c
tests/unit/integrations/otel/test_otel_v2_sources_of_truth.py:None
Routetest_vector_store_management_is_not_labelled_as_chat
pytest.mark.parametrize( "call_type,expected", [ ("avector_store_create", "litellm.vector_stor
tests/unit/integrations/otel/test_otel_v2_metrics.py:None
Routetest_vector_store_routes_are_llm_api_routes
pytest.mark.parametrize( "route", [ "/vector_stores/vs_123", "/v1/vector_stores/vs_123
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_vendor_overflow_reaches_the_caller_as_a_context_window_error
pytest.mark.parametrize(("route", "target", "code"), _OVERFLOW_CASES)
tests/integration/providers/test_inferenceapis_wire.py:None
Routetest_veo3_passthrough_cost_tracking
patch("litellm.completion_cost")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:None
Routetest_verbose_json_returns_word_timestamps
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.AUDIO, p
tests/e2e/llm_translation/test_audio_transcriptions_e2e.py:None
Routetest_version_probe_handles_missing_or_failed_executable
pytest.mark.parametrize("output,returncode", [ (None, 0), ("codex-cli 0.129.0\n", 7), ])
tests/unit/proxy/client/cli/test_codex_settings.py:None
Routetest_vertex_ai_anthropic_converts_https_url_to_base64
patch("litellm.litellm_core_utils.prompt_templates.factory.convert_url_to_base64")
tests/unit/llms/vertex_ai/vertex_ai_partner_models/anthropic/test_vertex_ai_anthropic_image_url_handling.py:None
Routetest_vertex_ai_beta_also_converts_to_base64
patch("litellm.litellm_core_utils.prompt_templates.factory.convert_url_to_base64")
tests/unit/llms/vertex_ai/vertex_ai_partner_models/anthropic/test_vertex_ai_anthropic_image_url_handling.py:None
Routetest_vertex_ai_map_tools_declares_qualified_member_names_when_another_tool_declares_a_member_name
pytest.mark.parametrize( ("tools", "declared"), [ ( [{"type": "namespace", "name":
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_vertex_ai_map_tools_never_repeats_a_generated_name
pytest.mark.parametrize( ("tools", "declared"), [ ( [ _WEATHER_NAM
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_vertex_ai_token_counter_returns_partner_provider_error_as_value
pytest.mark.parametrize( ("provider_failure", "expected_status", "expected_message"), [ ("http
tests/unit/llms/vertex_ai/test_vertex_ai_common_utils.py:None
Routetest_vertex_ai_token_counter_routes_like_generate_content
pytest.mark.parametrize( ("base_model", "vertex_counted_tokens"), [(None, None), ("gemini-3.8-flash",
tests/unit/llms/vertex_ai/test_vertex_ai_common_utils.py:None
Routetest_vertex_ai_tool_message_converts_image_to_base64
patch("litellm.litellm_core_utils.prompt_templates.factory.convert_url_to_base64")
tests/unit/llms/vertex_ai/vertex_ai_partner_models/anthropic/test_vertex_ai_anthropic_image_url_handling.py:None
Routetest_vertex_batch_create_survives_explicit_null_output_info
pytest.mark.covers("other.provider_wire.vertex_ai.batch_create_with_null_output_info_returns_batch_instead_of_
tests/integration/providers/test_vertex_batch_output_info_wire.py:None
Routetest_vertex_chat_json_schema_content_is_the_schema_object
pytest.mark.parametrize( "shape", [ "plain", "wrapped", "named", "valu
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:None
Routetest_vertex_chat_json_schema_unwraps_a_tool_named_envelope_only_around_one_object
pytest.mark.parametrize("shape", ["other_tool", "named_input", "named_two_objects", "named_string", "named_par
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:None
Routetest_vertex_chat_returns_content
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_vertex_chat_returns_tool_call
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_vertex_chat_streams_real_content
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_vertex_chat_vision_describes_image
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_vertex_embeddings_honor_requested_dimensions
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.EMBEDDINGS,
tests/e2e/llm_translation/test_embeddings_endpoint_e2e.py:None
Routetest_vertex_embeddings_returns_vector
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.EMBEDDINGS,
tests/e2e/llm_translation/test_embeddings_endpoint_e2e.py:None
Routetest_vertex_failure_model_name_matches_success_handler_naming
pytest.mark.parametrize( "url_route, expected_model", [ (_VERTEX_FLASH_TARGET, "gemini-3.8-fla
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:None
Routetest_vertex_messages_non_object_output_format_is_refused_without_reaching_the_peer
pytest.mark.parametrize("output_format", [5, [], "x" * 5000], ids=["int", "list", "5kb"])
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:None
Routetest_vertex_messages_output_format_beside_an_explicit_output_config
pytest.mark.parametrize( ("extra", "expected_output_config"), [ ({"output_format": _OUTPUT_FOR
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:None
Routetest_vertex_messages_output_format_wins_over_the_callers_output_config_format
pytest.mark.parametrize( ("callers_config", "expected_output_config"), [ ({"format": _CALLERS_
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:None
Routetest_vertex_multimodal_embeddings_honor_dimensions_and_are_costed
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.EMBEDDINGS,
tests/e2e/llm_translation/test_embeddings_endpoint_e2e.py:None
Routetest_vertex_passthrough_via_managed_model_logs_cost
meta( Subject( domain=Domain.SPEND_BUDGETS, route=Route.PASSTHROUGH,
tests/e2e/llm_translation/test_vertex_passthrough_e2e.py:None
Routetest_vertex_passthrough_without_a_resolved_deployment_keeps_the_url_and_reports_no_model_info
pytest.mark.parametrize( "llm_router", [None, _router_without_deployment(), _router_raising_on_lookup(
tests/unit/proxy/pass_through_endpoints/test_vertex_passthrough_load_balancing.py:None
Routetest_vertex_prompt_caching_reads_cache
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_cache_control.py:None
← previousnext →5,301–5,400 of 5,595, ranked by callers