MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_adding_a_deployment_with_half_a_budget_installs_no_budget_limiter
pytest.mark.parametrize("params", [{"max_budget": 1.0}, {"budget_duration": "1d"}], ids=["no-duration", "no-bu
tests/unit/test_router/core/test_gaps_l11100_registry.py:None
Routetest_additional_drop_params_keep_only_string_paths
pytest.mark.parametrize( ("configured", "expected"), [ (["tools[*].input_examples", 3, "metada
tests/unit/rust_bridge/host/routes/test_messages.py:None
Routetest_admin_created_key_routes
pytest.mark.parametrize( ("body", "expected"), ( ({}, list(DEFAULT_ROUTES)), ({"key_ty
tests/integration/management/test_key_default_allowed_routes.py:None
Routetest_admin_creates_reads_updates_clears_and_deletes_a_key
meta(Subject(domain=Domain.PROXY_AUTH, route=Route.KEY_MANAGEMENT))
tests/e2e/management/test_jwt_management_e2e.py:None
Routetest_admin_list_not_scoped
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_admin_mcp_uses_credential_routes_without_removing_full_access
pytest.mark.parametrize( "routes,session,can_write", [ (None, False, True), ([], False
tests/unit/proxy/test_admin_mcp.py:None
Routetest_admin_router_changes_release_member_scope
pytest.mark.parametrize("endpoint,change", [("patch", "config"), ("legacy", "strategy"), ("patch", "unrelated"
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_admin_viewer_cannot_update_other_owners_run
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_admin_viewer_delegates_lens_authorization_to_service
pytest.mark.parametrize("route", ("/lens/traces/findings", "/lens/example/runs"), ids=("read", "write"))
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_admin_viewer_get_other_owners_run_succeeds
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_admin_viewer_list_not_scoped
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_admin_viewer_lists_other_owners_events
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_admin_viewer_lists_other_owners_messages
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_admin_viewer_reads_but_cannot_update
meta(Subject(domain=Domain.PROXY_AUTH, route=Route.KEY_MANAGEMENT))
tests/e2e/management/test_jwt_management_e2e.py:None
Routetest_advance_size_state_tracks_free_space_through_vacuum_inserts_and_other_deletes
pytest.mark.parametrize( ("name", "probe", "reclaimable_expected"), [ ( "vacuum ze
tests/unit/proxy/test_spend_log_cleanup.py:None
Routetest_advisor_sub_call_routes_through_router_for_alias_and_wildcard
pytest.mark.parametrize( ("router_kwargs", "advisor_model"), [ pytest.param({"model_group_alia
tests/unit/llms/anthropic/messages/test_advisor_orchestration.py:None
Routetest_aembedding_accepts_a_batch_whose_inputs_each_fit_the_context_window
pytest.mark.parametrize( "embedding_input", [ pytest.param(["one two three four five six"] * 3
tests/unit/test_router/test_router.py:None
Routetest_aembedding_rejects_a_batch_with_one_input_over_the_context_window
pytest.mark.parametrize( "embedding_input", [ pytest.param(["one", " ".join(["word"] * 20)], i
tests/unit/test_router/test_router.py:None
Routetest_aembedding_skips_the_context_window_check_when_token_counting_is_disabled
pytest.mark.parametrize( "embedding_input", [ pytest.param(["one", " ".join(["word"] * 20)], i
tests/unit/test_router/test_router.py:None
Routetest_affinity_key_covers_the_tools_and_system_prompt_the_provider_sees
pytest.mark.parametrize( "call_type,request_messages,request_kwargs", [ pytest.param(
tests/unit/router_utils/pre_call_checks/test_prompt_caching_deployment_check.py:None
Routetest_agent_inference_routes_stay_llm_api
pytest.mark.parametrize("route", AGENT_INFERENCE_ROUTES)
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_agent_inference_still_blocked_when_llm_api_disabled
pytest.mark.parametrize( "route", [ "/a2a/abc-123/message/send", "/a2a
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_agent_management_allowed_when_llm_api_disabled
pytest.mark.parametrize( "route", [ "/v1/agents", "/v1/agents/abc-123"
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_agent_management_blocked_when_admin_disabled
pytest.mark.parametrize( "route", [ "/v1/agents", "/v1/agents/abc-123"
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_agent_management_routes_classified_as_management_not_llm_api
pytest.mark.parametrize("route", AGENT_MANAGEMENT_ROUTES)
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_agent_only_skips_get_llm_provider
patch("litellm.interactions.main.interactions_http_handler")
tests/unit/proxy/google_endpoints/test_interactions_agent_param.py:None
Routetest_agent_permissions_are_written_atomically_with_the_registration
pytest.mark.parametrize("operation", ["create", "patch", "put"])
tests/unit/proxy/agent_endpoints/test_agent_registry.py:None
Routetest_agent_registry_route_gate_open_to_non_admin_roles
pytest.mark.parametrize("method, route", [("GET", "/v1/agents"), ("POST", "/v1/agents")])
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_agent_routes_union_still_covers_both_halves
pytest.mark.parametrize("route", AGENT_MANAGEMENT_ROUTES + AGENT_INFERENCE_ROUTES)
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_agentcore_runtime_response_becomes_assistant_message
pytest.mark.parametrize( ("content_type", "body"), [ ( "application/json",
tests/unit/llms/bedrock/chat/agentcore/test_agentcore_transformation.py:None
Routetest_agentcore_stream_that_signals_its_end_completes
pytest.mark.parametrize( "ending", [ pytest.param( 'data: {"event":{"contentBlockS
tests/unit/llms/bedrock/chat/agentcore/test_agentcore_transformation.py:None
Routetest_agentops_initialization
patch("litellm.integrations.agentops.agentops.AgentOps._fetch_auth_token")
tests/unit/integrations/test_agentops.py:None
Routetest_aggregate_only_usage_charges_tpm_under_every_limit_type
pytest.mark.parametrize("rate_limit_type", ["input", "output", "total"])
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:None
Routetest_aim_anonymize_action_blocks_malformed_redacted_messages
pytest.mark.parametrize( ("request_body", "call_type"), [ pytest.param({"model": "text-embeddi
tests/unit/proxy/guardrails/guardrail_hooks/test_aim.py:None
Routetest_alert_type_in_formatted_message
patch("litellm.integrations.SlackAlerting.slack_alerting.datetime")
tests/unit/integrations/SlackAlerting/test_slack_alerting.py:None
Routetest_alias_grant_persists_verbatim_and_lists_tools
meta( Subject( domain=Domain.MCP, route=Route.MCP, ) )
tests/e2e/mcp/test_mcp_key_access_e2e.py:None
Routetest_alias_named_only_by_a_spend_log_is_reported_on_every_daily_activity_route
pytest.mark.parametrize("route", ROUTES, ids=lambda route: route.path.strip("/").replace("/", "_"))
tests/integration/spend/test_daily_activity_key_alias_probes.py:None
Routetest_alias_shadowing_an_explicitly_free_group_answers_for_its_unpriced_target
pytest.mark.parametrize( "alias_entry", ["unpriced-target", {"model": "unpriced-target", "hidd
tests/unit/proxy/auth/test_unmapped_model_budget_enforcement.py:None
Routetest_alias_to_a_model_a_listing_callback_hides_is_not_described_by_it
pytest.mark.parametrize( ("target", "gated", "models"), [ ("gpt-4.1", "gpt-4.1", ["gpt-4.1-min
tests/unit/proxy/test_model_list_aliases.py:None
Routetest_alias_to_a_model_the_listing_hides_is_not_described_by_it
pytest.mark.parametrize( ("target", "team_id"), [("paused", "team1"), ("hidden", "team1"), ("model_name_te
tests/unit/proxy/test_model_list_aliases.py:None
Routetest_alias_with_deployment_defaults_caps_codexs_window_at_its_listed_max_input_tokens
pytest.mark.parametrize(("max_input_tokens", "expected"), [(100000, 100000), (922000, 272000), (None, 272000)]
tests/unit/proxy/common_utils/test_codex_model_catalog.py:None
Routetest_alist_callbacks_with_langfuse_logger
patch.dict( os.environ, { "LANGFUSE_PUBLIC_KEY": "test_public_key", "L
tests/unit/proxy/management_endpoints/test_callback_management_endpoints.py:None
Routetest_alist_containers_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/unit/test_container_router.py:None
Routetest_all_private_external_ip_reports_all_blocked
patch("litellm.public_mcp_servers", [])
tests/unit/proxy/auth/test_mcp_ip_filtering.py:None
Routetest_allow_unmanaged_response_id_lifecycle_route_reaches_provider
pytest.mark.parametrize("route", ("retrieve", "delete", "cancel", "input_items"))
tests/integration/authorization/test_responses_id_ownership.py:None
Routetest_allowed_fails_for_reads_the_policy_field_of_the_error_type
pytest.mark.parametrize( ("error", "expected"), [ (content_policy(), 1), (bad_request(
tests/unit/test_router/core/test_gaps_l14000.py:None
Routetest_allowed_ip_routes_refuse_a_config_owned_list_with_a_clear_400
pytest.mark.parametrize("route", ["/add/allowed_ip", "/delete/allowed_ip"])
tests/unit/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.py:None
Routetest_allowed_openai_params_forwarded_through_bridge
patch("litellm.acompletion")
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_allowed_ptu_removals_stay_absent_after_another_save
pytest.mark.parametrize("mode,field", [ ("extra", "temperature"), ("disabled", "input_cost_per_token")
tests/unit/proxy/management_endpoints/test_ptu_model_settings.py:None
Routetest_allowed_routes_admin
pytest.mark.parametrize("admin_allowed_routes", [None, ["ui_routes"]])
tests/unit/proxy/auth/test_jwt.py:None
Routetest_ambiguous_classifier_blocks_are_rejected_before_persistence
pytest.mark.parametrize("endpoint", ["create", "patch", "legacy"])
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_ambiguous_commit_replay_does_not_erase_newly_accrued_spend
pytest.mark.parametrize( "error, expected_commits, expected_spend, expected_reconnects", [ (ht
tests/unit/proxy/common_utils/test_reset_budget_job.py:None
Routetest_an_admin_delete_by_a_raw_provider_id_gets_the_provider_id_back_and_logs_an_id_of_its_own
pytest.mark.parametrize( "sent_id", [_routed_response_id(_RAW_UPSTREAM_RESPONSE_ID), _RAW_UPST
tests/unit/test_responses_id_security.py:None
Routetest_an_agent_loop_on_one_human_ask_is_not_a_first_turn
pytest.mark.parametrize( "history", [ pytest.param( [
tests/unit/router_strategy/test_complexity_router.py:None
Routetest_an_alias_and_its_target_are_one_group_on_both_sides
pytest.mark.parametrize( "scoped_to,requested", [("sonnet-group", "fast"), ("fast", "sonnet-gr
tests/unit/integrations/test_shadow_eval_logger.py:None
Routetest_an_allowlisted_remote_image_reaches_clef_as_bytes_while_callbacks_log_the_url_the_caller_sent
pytest.mark.parametrize("route", ("/v1/systemone", "/v1/decisions"))
tests/integration/providers/test_cloudflare_clef_images_wire.py:None
Routetest_an_attachment_that_cannot_be_read_is_counted_malformed
pytest.mark.parametrize( "block", [ {"type": "file", "file": "not a file block"}, {"ty
tests/unit/proxy/guardrails/guardrail_hooks/akto/test_akto_attachments.py:None
Routetest_an_auto_router_marker_missing_a_required_param_is_rejected
pytest.mark.parametrize( ("params", "message"), [ ( {}, "auto_router_c
tests/unit/test_router/core/test_gaps_l11100_strategy.py:None
Routetest_an_edit_bills_the_deployment_price_at_its_size_on_a_logging_object_made_before_routing
pytest.mark.parametrize( ("deployment_price", "size", "expected_cost"), ( ({"input_cost_per_im
tests/unit/images/test_image_edit.py:None
Routetest_an_effort_inside_extra_body_routes_function_tools_like_a_top_level_one
pytest.mark.parametrize( ("backend", "mode", "effort", "route"), ((_OPENAI_GPT, None, "low", "response
tests/integration/routing/test_deployment_mode_routing_wire.py:None
Routetest_an_explicit_reasoning_effort_wins_over_a_non_numeric_thinking_budget
pytest.mark.parametrize("budget_tokens", ["2048", None, True])
tests/unit/test_main.py:None
Routetest_an_image_clef_refuses_does_not_count_toward_its_limit_when_the_deployment_drops_params
pytest.mark.parametrize("route", ("/v1/systemone", "/v1/decisions"))
tests/integration/providers/test_cloudflare_clef_images_wire.py:None
Routetest_an_image_type_clef_refuses_is_refused_unless_the_deployment_drops_params
pytest.mark.parametrize(("label", "route", "image"), _REFUSED_TYPES, ids=[label for label, _, _ in _REFUSED_TY
tests/integration/providers/test_cloudflare_clef_images_wire.py:None
Routetest_an_image_type_cloudflare_refuses_is_rejected_before_http
pytest.mark.parametrize(("api", "request_kwargs"), _REFUSED_TYPE_REQUESTS, ids=("input_image", "images_object"
tests/unit/decisions/test_main.py:None
Routetest_an_incoherent_reservation_names_its_reason
pytest.mark.parametrize( "override, expected", [ ({"team_id": None}, "team_id or ptu_shares is
tests/unit/litellm_core_utils/test_ptu_pricing.py:None
Routetest_an_incomplete_or_unsupported_output_records_no_replay
pytest.mark.parametrize( ("output", "stream", "terminal_event", "status"), [ (OUTPUT, False, "
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_history.py:None
Routetest_an_input_item_saved_with_a_null_created_by_replays_without_it
pytest.mark.parametrize( ("item", "expected"), [ ( {"id": "cmp_1",
tests/unit/llms/openai/responses/test_openai_responses_transformation.py:None
Routetest_an_invalid_proxy_key_is_rejected_before_assemblyai_is_called
pytest.mark.parametrize("route", ["/assemblyai/v2/transcript", "/eu.assemblyai/v2/transcript"])
tests/integration/providers/test_assemblyai_passthrough.py:None
Routetest_an_llm_api_key_can_call_the_built_in_eu_jev_decision_route
pytest.mark.parametrize("allowed_route", ["llm_api_routes", "llm_api_routes_without_mcp"])
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_an_llm_only_credential_keeps_the_llm_api_carve_outs_except_mcp_discovery
pytest.mark.parametrize( "allowed_routes, registered_pass_through, auto_router_session, mcp_server_listing
tests/unit/proxy/mcp_server/test_proxy_api_credentials.py:None
Routetest_an_older_cli_preserves_the_newer_footer
pytest.mark.parametrize( ("installed_version", "older_version"), (("2.10.0", "2.9.0"), ("2.1.0
tests/unit/proxy/client/cli/test_claude_settings.py:None
Routetest_an_op_naming_a_provider_resource_does_not_fall_back_to_another_group
pytest.mark.parametrize( ("op", "request_fields"), [ ("acancel_batch", {"batch_id": "batch-1"}
tests/unit/test_router/core/test_parity_provider_scoped_fallbacks.py:None
Routetest_an_open_circuit_breaker_is_not_an_error_per_request
pytest.mark.parametrize( "call", [ lambda cache: cache.async_get_cache("k"), lambda ca
tests/unit/caching/test_dual_cache.py:None
Routetest_an_open_circuit_breaker_is_not_an_error_per_sync_request
pytest.mark.parametrize( "call", [lambda cache: cache.get_cache("k"), lambda cache: cache.batch_get_ca
tests/unit/caching/test_dual_cache.py:None
Routetest_an_output_block_missing_task_id_or_status_is_rejected
pytest.mark.parametrize( "payload", [ {"output": {"video_url": "https://oss/video.
tests/unit/llms/dashscope/test_dashscope_video_transformation.py:None
Routetest_an_output_bucket_outside_the_listed_buckets_is_refused
pytest.mark.parametrize("output", ["other-tenant", 7])
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_transcribe_passthrough_logging_handler.py:None
Routetest_an_owned_proxy_boots_private_state_unless_it_shares_or_brings_its_own_database
pytest.mark.parametrize( ("state", "overrides", "remove_environment", "marked", "private"), (
tests/unit/integration_support/test_process.py:None
Routetest_an_s3_no_such_key_for_the_output_object_is_permanent_loss
pytest.mark.parametrize( ("missing_key", "gone"), (("out/job-123/input.jsonl.out", True), ("out/job-123/ot
tests/unit/proxy/common_utils/test_check_batch_cost.py:None
Routetest_an_unbilled_batch_still_blocks_deleting_a_file_its_cost_may_need
pytest.mark.parametrize( ("age", "file_field", "file_id"), ( (_INSIDE_THE_STALENESS_CUTOFF, "i
tests/unit/proxy/common_utils/test_check_batch_cost.py:None
Routetest_an_uncountable_prompt_still_pins_an_end_user_to_their_region
pytest.mark.parametrize( ("build", "recorded_chat_calls"), [ pytest.param(_uncountable_chat, C
tests/integration/routing/test_end_user_region_routing.py:None
Routetest_an_unencoded_at_sign_in_a_query_forfeits_the_endpoint
pytest.mark.parametrize( "dsn", [ "postgresql://db.internal:5432/litellm?application_name=svc@
tests/unit/integrations/otel/test_db_endpoint.py:None
Routetest_an_unexpected_output_field_does_not_hide_a_messages_attachments
pytest.mark.parametrize("output", [1, {"a": 1}, "text"])
tests/unit/proxy/guardrails/guardrail_hooks/akto/test_akto_attachments.py:None
Routetest_an_unknown_key_gets_the_generic_401_without_reaching_the_provider
pytest.mark.parametrize("route", tuple(ROUTES))
tests/integration/authorization/test_unknown_key_generic_401.py:None
Routetest_an_unreadable_file_named_like_json_is_reported_as_a_bad_file
pytest.mark.skipif(os.geteuid() == 0, reason="root ignores file permissions")
tests/unit/llms/vertex_ai/test_vertex_llm_base.py:None
Routetest_an_unsupported_request_routing_strategy_is_ignored
pytest.mark.parametrize("override", ["bogus", "lar1", "provider-budget-routing", 5])
tests/unit/test_router/core/test_selection_characterization_strategies.py:None
Routetest_answer_without_texts_leaves_instructions_and_input_untouched_like_chat_completions
pytest.mark.parametrize("data_input", ["Hello", [{"role": "user", "content": "Hello"}]])
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:None
Routetest_answers_without_the_output_field_reach_upstream_again
pytest.mark.parametrize( ("path", "body", "litellm_model", "field", "value"), ( pytest.param("
tests/integration/caching/test_response_cache_empty_output.py:None
Routetest_anthropic_beta_header
pytest.mark.parametrize( "computer_tool_used, prompt_caching_set, expected_beta_header", [ ("c
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_anthropic_chat_drops_only_a_non_object_output_format_and_only_under_drop_params
pytest.mark.parametrize( ("output_format", "request_drop_params", "global_drop_params", "forwarded"),
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_anthropic_chat_returns_thinking_content
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_anthropic_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_anthropic_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_anthropic_chat_streams_tool_call
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_anthropic_chat_structured_output_conforms_to_schema
pytest.mark.covers( "llm.chat_completions.anthropic.structured_output.nonstream.works", exerci
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_anthropic_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_anthropic_context_window_error_mapping
pytest.mark.parametrize( "error_message", [ "AnthropicException - prompt is too long: 250000 t
tests/unit/litellm_core_utils/test_exception_mapping_utils.py:None
Routetest_anthropic_developer_role_becomes_the_system_prompt_like_real_time
pytest.mark.parametrize( ("url", "body"), [ ( "/v1/responses",
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:None
Routetest_anthropic_json_mode_and_tool_call_response
pytest.mark.parametrize( "json_mode, tool_calls, expect_null_response", [ ( True,
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_anthropic_passthrough_nonstreaming_logs_cost
meta( Subject( domain=Domain.PASSTHROUGH, route=Route.PASSTHROUGH, providers=(Prov
tests/e2e/llm_translation/test_passthrough_e2e.py:None
Routetest_anthropic_passthrough_streaming_logs_cost
meta( Subject( domain=Domain.PASSTHROUGH, route=Route.PASSTHROUGH, providers=(Prov
tests/e2e/llm_translation/test_passthrough_e2e.py:None
← previousnext →1,501–1,600 of 5,595, ranked by callers