MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_team_member_key_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_team_member_max_budget_alert_check_dispatches_only_at_configured_thresholds
pytest.mark.parametrize( "spend, team_metadata, expect_alert", [ (0.05, {"team_member_max_budg
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:None
Routetest_team_member_model_budget_validation
pytest.mark.parametrize( ("premium_user", "model_budget", "expected_status"), [ (False, {"gpt-
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_team_member_reservation_counter_adds_temp_increase_to_live_team_default
pytest.mark.parametrize( "default_cap, expiry_offset, expected_max_budget", [ (2.0, timedelta(
tests/unit/proxy/spend_tracking/test_budget_reservation.py:None
Routetest_team_member_reservation_counter_honours_temp_budget_increase
pytest.mark.parametrize( "expiry_offset, expected_max_budget", [ (timedelta(days=1), 3.0),
tests/unit/proxy/spend_tracking/test_budget_reservation.py:None
Routetest_team_members_gauge_keeps_the_team_alias_label_after_a_removal
pytest.mark.parametrize( "remove", [ lambda prisma: _delete(prisma, ["u1"]), lambda pr
tests/unit/proxy/management_helpers/test_bulk_user_deletion.py:None
Routetest_team_model_add_delete_is_enforced_by_peer
pytest.mark.parametrize( ("route", "initial_models", "expected_before", "expected_after"), ( p
tests/integration/management/test_team_update_multi_instance.py:None
Routetest_team_model_add_delete_keep_model_aliases_in_team_cache
pytest.mark.parametrize("endpoint_name", ["team_model_add", "team_model_delete"])
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_team_model_add_delete_refresh_team_cache
pytest.mark.parametrize( "endpoint_name", ["team_model_add", "team_model_delete"], )
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_team_model_add_goes_through_when_its_projects_meet_the_new_route
pytest.mark.parametrize( ("litellm_params", "project_metadata"), [ pytest.param( _
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_team_model_alias_is_listed_by_v1_models_under_the_same_token_that_routes_it
pytest.mark.covers("other.auth.jwt.team_model_alias_listed_and_routes")
tests/e2e/other/test_jwt_auth_e2e.py:None
Routetest_team_model_authz_matrix
pytest.mark.parametrize("route", ["add", "delete"])
tests/integration/management/test_team_model.py:None
Routetest_team_model_missing_team_is_404
pytest.mark.parametrize("route", ["add", "delete"])
tests/integration/management/test_team_model.py:None
Routetest_team_model_update_rejects_moving_its_route_where_its_projects_lack_quota
pytest.mark.parametrize("endpoint", ["patch", "put"])
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_team_model_update_rejects_moving_to_a_provider_that_needs_limits_it_lacks
pytest.mark.parametrize("endpoint", ["patch", "put"])
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_team_model_write_adds_only_the_limits_its_new_route_requires
pytest.mark.parametrize( ("setting", "public_name", "proxy_params", "team_routes", "replaced_id", "written
tests/unit/enterprise/proxy/management_endpoints/test_project_endpoints_prisma.py:None
Routetest_team_new_authz_matrix
pytest.mark.parametrize( "actor,org_target,expected_status", [(a, o, s) for (_id, a, o, s) in _SCENARI
tests/integration/management/test_team_new.py:None
Routetest_team_new_explicit_null_budget_duration_is_not_replaced_by_default
pytest.mark.covers("mgmt.team.new.explicit_null_budget_duration_overrides_default")
tests/integration/management/test_team_budget_duration_defaults.py:None
Routetest_team_passthrough_route_denial_names_the_matched_deny_entry
pytest.mark.parametrize( "team_metadata, expected_detail", [ ( {"allowed_passthrou
tests/unit/proxy/auth/test_handle_jwt.py:None
Routetest_team_require_trace_id_accepts_trace_telemetry_routes
pytest.mark.parametrize("route", ["/v1/traces", "/v1/logs", "/v1/traces/query"])
tests/unit/proxy/auth/test_auth_checks.py:None
Routetest_team_require_trace_id_exempts_methods_routes_and_disabled_teams
pytest.mark.parametrize( ("route", "method", "team_metadata"), [ ("/v1/models", "GET", {"requi
tests/unit/proxy/auth/test_auth_checks.py:None
Routetest_team_require_trace_id_rejects_body_metadata_on_mcp_and_agent_routes
pytest.mark.parametrize( ("route", "request_body"), [ ( "/mcp-rest/tools/call",
tests/unit/proxy/auth/test_auth_checks.py:None
Routetest_team_require_trace_id_rejects_llm_mcp_and_agent_requests
pytest.mark.parametrize( "route", ["/chat/completions", "/v1/messages", "/mcp/", "/a2a/my-agent"], )
tests/unit/proxy/auth/test_auth_checks.py:None
Routetest_team_require_trace_id_rejects_traceparent_on_mcp_and_agent_routes
pytest.mark.parametrize( ("route", "request_body"), [ ("/mcp/", {}), ( "/m
tests/unit/proxy/auth/test_auth_checks.py:None
Routetest_team_scoped_managed_ids_authorize_only_the_owning_team_by_public_name
pytest.mark.parametrize( "route, request_data", [ pytest.param("/v1/batches/{batch_id}", {"bat
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_team_service_account_key_allowed_key_management_routes
pytest.mark.parametrize("route", ["/key/generate", "/key/update"])
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_team_service_account_key_rejected_outside_generate_and_update
pytest.mark.parametrize("route", ["/team/new", "/spend/logs", "/key/delete", "/key/regenerate"])
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_team_short_window_blocks_then_resets
pytest.mark.covers("quota_management.budget.team_multi_window.blocks_then_resets")
tests/e2e/quota_management/budgets/test_team_multi_window_budget_e2e.py:None
Routetest_team_soft_budget_check
pytest.mark.parametrize( "spend, soft_budget, expect_alert, metadata, expected_alert_emails", [
tests/unit/proxy/auth/test_auth_checks.py:None
Routetest_team_update_adds_model_on_peer_for_inference_routes
pytest.mark.parametrize( "route", ( pytest.param("/v1/chat/completions", id="chat-completions"
tests/integration/management/test_team_update_multi_instance.py:None
Routetest_team_update_team_admin_edits_ordinary_metadata_keys
pytest.mark.parametrize( "sent", [ pytest.param({**_STORED_TEAM_METADATA, "project": "atlas"},
tests/integration/management/test_team_update.py:None
Routetest_team_update_team_admin_member_default_follows_the_proxy_admin_grant
pytest.mark.parametrize("field,value,budget_column", _MEMBER_DEFAULTS)
tests/integration/management/test_team_update.py:None
Routetest_team_write_404s_when_row_vanishes_before_update
pytest.mark.parametrize( "endpoint_name", ["team_model_add", "team_model_delete", "update_team_member_
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_temperature_boundaries_succeed
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_contract_e2e.py:None
Routetest_temperature_is_dropped_only_when_a_non_adaptive_model_thinks
pytest.mark.parametrize( ("upstream_model", "sent", "received"), ( pytest.param( "
tests/integration/messages_endpoint/providers/anthropic/reasoning/test_anthropic_reasoning_request_translation_wire.py:None
Routetest_terminal_batch_cost_row_joins_the_retrieving_key
meta( Subject( domain=Domain.SPEND_BUDGETS, route=Route.BATCHES, p
tests/e2e/quota_management/spend_tracking/test_key_attribution_e2e.py:None
Routetest_terminal_resume_repairs_only_the_rejected_saved_choice
pytest.mark.parametrize("target", ["claude", "codex"])
tests/unit/proxy/client/cli/test_configure_commands.py:None
Routetest_test_routing_classifies_through_databricks_without_calling_the_tier_it_picked
pytest.mark.parametrize( ("model", "target", "cost"), [ (_MODEL, _ROUTE, {}), (_ENDPOI
tests/integration/management/test_auto_router_databricks_classifier_writes.py:None
Routetest_text_completion_returns_text
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.COMPLETIONS,
tests/e2e/llm_translation/test_completions_endpoint_e2e.py:None
Routetest_text_editor_returns_tool_call
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_anthropic_completion_e2e.py:None
Routetest_text_estimate_matches_billed_input
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.COUNT_TOKENS,
tests/e2e/llm_translation/test_count_tokens_source_e2e.py:None
Routetest_text_moderation_opt_in_scans_responses_input
pytest.mark.parametrize( "body", [ pytest.param(lambda prompt: {"input": prompt}, id="string-i
tests/integration/observability/test_azure_content_safety_audit.py:None
Routetest_text_only_parts_are_scanned_and_rewritten_part_by_part
pytest.mark.parametrize("part_type", ["input_text", "output_text"])
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:None
Routetest_the_auth_method_follows_the_flag_the_login_reads
pytest.mark.parametrize( ("include_client_id", "expected"), [ (None, "client_secret_basic"),
tests/unit/proxy/mcp_server/outbound_credentials/test_sso_assertion_refresher.py:None
Routetest_the_billing_event_logs_the_response_text_only_as_the_creators_logging_settings_allow
pytest.mark.parametrize( ("key_row", "deleted_key_row", "text_logged"), [ (_key_logging_to_lan
tests/unit/proxy/common_utils/test_check_responses_cost.py:None
Routetest_the_billing_event_names_the_requested_model_as_its_model_group_only_while_it_routes_to_the_deployment
pytest.mark.parametrize( ("model_name", "deployment_model", "requested_model", "model_group_alias", "model
tests/unit/proxy/common_utils/test_check_responses_cost.py:None
Routetest_the_billing_event_takes_the_keys_budget_tier_only_where_the_key_sets_no_budget_of_its_own
pytest.mark.parametrize( ("key_max_budget", "key_model_max_budget", "billed_max_budget", "billed_model_max
tests/unit/proxy/common_utils/test_check_responses_cost.py:None
Routetest_the_budget_read_reports_the_spend_drawn_against_the_pool
pytest.mark.covers("quota_management.budget.model_access_group.reports_spend")
tests/e2e/quota_management/budgets/test_model_access_group_budget_e2e.py:None
Routetest_the_callback_grant_does_not_reach_another_team_route
pytest.mark.parametrize("route", PROTECTED_TEAM_ROUTES)
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_the_datadog_proxy_failure_log_carries_the_answered_status_and_the_llm_failure_log_the_deployment_status
pytest.mark.parametrize( ("route", "model", "answered", "deployment_status"), ( pytest.param("
tests/integration/observability/test_anthropic_overloaded_failure_signals.py:None
Routetest_the_deprecated_v2_resolver_flag_warns_with_startup_output_suppressed
patch("subprocess.run", return_value=MagicMock(returncode=0))
tests/unit/proxy/test_proxy_cli.py:None
Routetest_the_event_carries_the_number_python_chose_as_it_was_written
pytest.mark.parametrize( ("arguments", "request_fields", "expected"), [ pytest.param({"cooldow
tests/unit/test_router/core/test_parity_cooldown_service_model.py:None
Routetest_the_failed_request_metric_counts_the_answered_status_and_the_deployment_metric_the_deployment_status
pytest.mark.parametrize( ("route", "model", "answered", "deployment_status", "deployment_class"), (
tests/integration/observability/test_anthropic_overloaded_failure_signals.py:None
Routetest_the_failure_kind_is_decided_where_the_response_is_classified
pytest.mark.parametrize( ("get", "kind"), [ (_refused, ListingFailure.UNREACHABLE)
tests/unit/proxy/client/cli/test_pi.py:None
Routetest_the_guard_agrees_with_httpx_about_authorization
pytest.mark.parametrize("start,target", _REDIRECT_CASES)
tests/unit/mcp_client/test_mcp_client.py:None
Routetest_the_key_that_drained_the_pool_stays_blocked
pytest.mark.covers("quota_management.budget.model_access_group.blocks_over_limit")
tests/e2e/quota_management/budgets/test_model_access_group_budget_e2e.py:None
Routetest_the_listing_hint_matches_how_the_listing_failed
pytest.mark.parametrize( ("mock", "expected", "unexpected"), [ ( l
tests/unit/proxy/client/cli/test_configure_commands.py:None
Routetest_the_migration_job_waits_for_the_index_build_and_a_serving_proxy_starts_it_in_the_background
patch("uvicorn.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_the_most_specific_entry_takes_the_spend_and_gates_the_request
pytest.mark.parametrize( ("budget", "checked_model", "blocked"), [ ({"claude-opus-4-8": ROOMY_
tests/unit/proxy/hooks/test_model_max_budget_limiter.py:None
Routetest_the_otel_v2_server_span_carries_the_status_the_route_answered
pytest.mark.parametrize( ("route", "model", "answered"), ( pytest.param("/v1/messages", _TRACE
tests/integration/observability/test_anthropic_overloaded_failure_signals.py:None
Routetest_the_owner_sees_their_id_while_callbacks_log_one_of_the_reads_own
pytest.mark.parametrize("route_prefix", ["/v1/responses", "/responses", "/openai/v1/responses"])
tests/unit/test_responses_id_security.py:None
Routetest_the_provider_prefix_is_restored
pytest.mark.parametrize( "model,provider,expected", [ ("mantle/anthropic.claude-sonnet-5", "be
tests/unit/litellm_core_utils/test_core_helpers.py:None
Routetest_the_proxys_own_access_checks_decide_the_classifier_for_every_scope
pytest.mark.parametrize( "caller, rows, verdict", [ ( UserAPIKeyAuth(api_key="sk-p
tests/unit/llms/anthropic/messages/test_caller_model_checks.py:None
Routetest_the_quoted_block_never_exceeds_the_budget
pytest.mark.parametrize("budget_chars", [130, 200, 351, 400, 999, 8000])
tests/unit/router_strategy/test_complexity_router.py:None
Routetest_the_refusal_reason_is_the_one_the_model_endpoint_answers_with
pytest.mark.parametrize( "dropped, expected", [ ("team_id", "team_id or ptu_shares is required
tests/unit/test_router_model_cost_isolation.py:None
Routetest_the_reported_run_outcome_is_the_most_significant_reason_in_any_order
pytest.mark.parametrize( "stop_reasons, expected", [ (("exhausted",), "completed"), ((
tests/unit/proxy/test_spend_log_cleanup.py:None
Routetest_the_retired_enforce_prisma_migration_check_opt_in_still_parses_and_changes_nothing
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_the_retired_enforce_prisma_migration_check_opt_in_warns_without_a_database
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_the_retry_after_bedrock_rejects_native_output_keeps_the_declared_level
pytest.mark.parametrize( ("kind", "target", "rejected", "retried"), [ pytest.param(
tests/integration/routing/test_reasoning_effort_levels_wire.py:None
Routetest_the_retry_sends_what_a_deployment_without_native_output_sends
pytest.mark.parametrize( "request_params", [ {"reasoning_effort": "low", "response_format": _r
tests/integration/sdk/test_bedrock_native_output_fallback_sdk.py:None
Routetest_the_rust_core_refuses_a_cost_that_is_not_finite
pytest.mark.parametrize( ("params", "named"), [ ({"model_info": {"input_cost_per_token": "inf"
tests/unit/test_router/core/test_parity_regress5_settings.py:None
Routetest_the_scope_claim_buys_exactly_the_route_groups_it_names
pytest.mark.parametrize( "claim, scope, allowed_routes", [ (None, None, None), ("", No
tests/unit/proxy/mcp_server/test_id_jag_grant.py:None
Routetest_the_served_name_is_the_served_model_only_when_the_name_routes_to_it
pytest.mark.parametrize( ("served", "expected"), [("gpt", "gpt"), ("emb", "fast"), (None, "fast")], ids=["
tests/unit/test_router/core/test_registry_characterization_lookups.py:None
Routetest_the_server_span_carries_the_status_the_route_answered
pytest.mark.parametrize( ("route", "model", "answered"), ( pytest.param("/v1/messages", _TRACE
tests/integration/observability/test_anthropic_overloaded_failure_signals.py:None
Routetest_the_stamp_reads_back_only_the_callers_integer_carriers
pytest.mark.parametrize( "request_kwargs, expected", [ ({"max_tokens": 8192}, None
tests/unit/router_strategy/test_complexity_router.py:None
Routetest_the_stream_timeout_comes_from_request_then_tier_then_deployment_then_router
pytest.mark.parametrize( ("router_arguments", "deployment_params", "request_kwargs", "expected"), [
tests/unit/test_router/core/test_streaming_characterization_chat.py:None
Routetest_the_supported_anthropic_route_keeps_each_tools_own_defer_loading_with_the_search_tool
pytest.mark.parametrize("route", ["anthropic", "azure_ai"])
tests/integration/providers/test_responses_bridge_tool_search_undeferred_wire.py:None
Routetest_the_sync_and_async_success_handlers_both_read_the_usage_from_one_relayed_body
pytest.mark.parametrize( "path, request_data, body", [ ( "v1/completions",
tests/unit/llms/vllm/passthrough/test_vllm_passthrough_transformation.py:None
Routetest_the_sync_path_never_runs_pre_routing_and_refuses_the_marker
pytest.mark.parametrize("entry", ["get_available_deployment", "completion"])
tests/unit/test_router/core/test_selection_characterization_prerouting.py:None
Routetest_the_text_check_drops_only_what_the_file_check_sends
pytest.mark.parametrize( ("block", "kept"), [ ( { "type": "file",
tests/unit/proxy/guardrails/guardrail_hooks/akto/test_akto_attachments.py:None
Routetest_the_tiered_output_rate_is_not_inherited
pytest.mark.parametrize( ("model", "params"), [ ("dashscope/qwen-flash", {"tiered_pricing": [{
tests/unit/test_router/core/test_gaps_l8400_pricing.py:None
Routetest_the_turn_upsert_span_names_the_session_table_its_statement_writes
pytest.mark.parametrize( ("statement", "span_name"), ( (UPSERT_AUTOROUTER_SESSION_SQL, "postgr
tests/unit/proxy/db/test_autorouter_session_rollup.py:None
Routetest_thinking_anthropic
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking/test_anthropic.py:None
Routetest_thinking_azure
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking/test_azure.py:None
Routetest_thinking_bedrock_converse
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking/test_bedrock_converse.py:None
Routetest_thinking_bedrock_invoke
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking/test_bedrock_invoke.py:None
Routetest_thinking_budget_leaves_pi_its_default_room_for_the_answer
pytest.mark.parametrize("info", [get_model_info(MODEL), None], ids=["mapped", "unmapped"])
tests/unit/llms/pi/harness/test_transformation.py:None
Routetest_thinking_disabled_disables_reasoning
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_deepseek_reasoning_e2e.py:None
Routetest_thinking_display_beta_requires_active_thinking
pytest.mark.parametrize( ("thinking", "expected"), ( (None, False), ({}, False),
tests/unit/llms/anthropic/test_anthropic_common_utils.py:None
Routetest_thinking_history_keeps_only_blocks_anthropic_can_verify
pytest.mark.parametrize( ("sent_history", "received_history"), ( pytest.param( [
tests/integration/messages_endpoint/providers/anthropic/reasoning/test_anthropic_reasoning_request_translation_wire.py:None
Routetest_thinking_json_schema_rows_use_native_output_only_on_models_that_always_take_it
pytest.mark.parametrize( ("model", "native_output"), [("bedrock/us.anthropic.claude-sonnet-5-5
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:None
Routetest_thinking_request_follows_the_bedrock_native_key_the_model_resolves_to
pytest.mark.parametrize( ("backend", "model_info", "native"), [ (_NEITHER_KEY, None, False),
tests/integration/providers/test_bedrock_native_structured_output_wire.py:None
Routetest_thinking_request_on_a_bedrock_native_model_gets_native_output_and_keeps_reasoning
pytest.mark.parametrize( ("route", "stream"), [("converse", False), ("converse", True), ("invoke", Fal
tests/integration/providers/test_bedrock_native_structured_output_wire.py:None
Routetest_thinking_vertex_ai
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking/test_vertex_ai.py:None
Routetest_thinking_with_tool_use_anthropic
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking_with_tool_use/test_anthropic.py:None
Routetest_thinking_with_tool_use_azure
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking_with_tool_use/test_azure.py:None
Routetest_thinking_with_tool_use_bedrock_converse
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking_with_tool_use/test_bedrock_converse.py:None
Routetest_thinking_with_tool_use_bedrock_invoke
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking_with_tool_use/test_bedrock_invoke.py:None
Routetest_thinking_with_tool_use_vertex_ai
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES, providers=(Pro
tests/e2e/claude_code/thinking_with_tool_use/test_vertex_ai.py:None
Routetest_threads_routes_keep_the_mapped_provider_status
pytest.mark.parametrize( ("method", "path", "router_method", "payload"), [ ("POST", "/v1/threa
tests/unit/proxy/proxy_server/test_routes_threads.py:None
← previousnext →4,901–5,000 of 5,595, ranked by callers