MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_new_persists_to_customer_info
meta(Subject(domain=Domain.MANAGEMENT, route=Route.CUSTOMER_MANAGEMENT))
tests/e2e/management/test_budget_customer_user_org_e2e.py:None
Routetest_new_persists_to_model_info_catalog
meta( Subject( domain=Domain.MANAGEMENT, route=Route.MODEL_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_new_persists_to_organization_info
meta( Subject( domain=Domain.MANAGEMENT, route=Route.ORGANIZATION_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_new_persists_to_tag_list
meta( Subject( domain=Domain.MANAGEMENT, route=Route.TAG_MANAGEMENT, )
tests/e2e/management/test_management_e2e.py:None
Routetest_new_persists_to_team_info_and_binds_keys
meta( Subject( domain=Domain.MANAGEMENT, route=Route.TEAM_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_new_persists_to_user_info
meta( Subject( domain=Domain.MANAGEMENT, route=Route.USER_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_new_team_persists_model_max_budget
pytest.mark.parametrize( ("member_caps", "member_budget_duration"), [ ({"gpt-4o": {"max_budget
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_new_team_rejects_a_duration_that_never_advances
pytest.mark.parametrize("field", ["budget_duration", "team_member_budget_duration"])
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_new_team_soft_budget_validation
pytest.mark.parametrize( "soft_budget,max_budget,should_succeed,expected_soft_budget,expected_max_budget,e
tests/unit/proxy/management_endpoints/test_team_endpoints.py:None
Routetest_new_user_is_readable_via_user_info
meta(Subject(domain=Domain.MANAGEMENT, route=Route.USER_MANAGEMENT))
tests/e2e/management/test_budget_customer_user_org_e2e.py:None
Routetest_no_cooldown_low_traffic
patch("litellm.router_utils.cooldown_handlers.get_deployment_successes_for_current_minute")
tests/unit/router_utils/test_cooldown_handlers.py:None
Routetest_no_deployment_error_names_only_the_cooled_deployments_tag_and_region_routing_allow
pytest.mark.parametrize( ("router_settings", "entrypoint", "request_kwargs", "expected"), ( (T
tests/unit/router_utils/test_cooldown_handlers.py:None
Routetest_no_eu_jev_route_reads_the_litellm_user_api_key_header
pytest.mark.parametrize("route", ["/eu_jev/v1/systemone", "/eu_jev/v1/systemone/extra", "/eu_jev/v1/systemone2
tests/unit/proxy/pass_through_endpoints/test_passthrough_auth_default.py:None
Routetest_no_extra_headers_when_not_provided
patch("litellm.images.main.openai_chat_completions")
tests/unit/images/test_image_generation_extra_headers.py:None
Routetest_no_force_uses_url_type
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_no_group_is_tried_twice_in_one_request
pytest.mark.parametrize( ("fallbacks", "expected"), [ ([{"a": ["b"]}, {"b": ["a", "c"]}, {"c":
tests/unit/test_router/core/test_fallbacks.py:None
Routetest_no_ip_means_no_filtering
patch("litellm.public_mcp_servers", [])
tests/unit/proxy/auth/test_mcp_ip_filtering.py:None
Routetest_no_ip_returns_all_with_zero_blocked
patch("litellm.public_mcp_servers", [])
tests/unit/proxy/auth/test_mcp_ip_filtering.py:None
Routetest_noma_gets_a_tool_input_that_is_not_json_as_streamed
pytest.mark.parametrize( "tool_input", [ pytest.param('{"order_id": "A', id="cut-s
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:None
Routetest_non_admin_cannot_change_an_existing_deny_list
pytest.mark.parametrize( "kwargs, field", [ ({"denied_passthrough_routes": []}, "d
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_admin_cannot_reach_vertex_with_a_twice_encoded_raw_gcs_uri
pytest.mark.parametrize( ("method", "route_suffix", "verb"), [("GET", "/content", "retrieved"), ("DELE
tests/integration/security/test_files_batches_access.py:None
Routetest_non_admin_cannot_write_federation_fields
pytest.mark.parametrize("grant", ("routed", "plain"))
tests/integration/management/test_credential_federation_values.py:None
Routetest_non_admin_get_null_owner_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_get_other_users_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_get_own_run_succeeds
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_key_cannot_add_global_model
meta( Subject( domain=Domain.PROXY_AUTH, route=Route.MODEL_MANAGEMENT,
tests/e2e/management/test_model_tag_accessgroup_e2e.py:None
Routetest_non_admin_keys_cannot_write_scim_users_or_groups
pytest.mark.parametrize( "write", [ "post_user", "put_user", "patch_user",
tests/integration/authorization/test_warmed_policy.py:None
Routetest_non_admin_list_scoped_to_caller_token
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_admin_may_leave_an_existing_deny_list_unchanged
pytest.mark.parametrize( "kwargs", [ {"denied_passthrough_routes": ["/v1/foo"]},
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_admin_trace_reads_reach_endpoint_visibility_checks
pytest.mark.parametrize( "route", ( "/v1/traces", "/v1/traces/trace-id", "/v1/
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_non_admin_update_null_owner_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_non_chat_inference_routes_follow_genai_semconv
pytest.mark.parametrize( ("call_type", "operation", "output_type"), [ (f"{prefix}{call_type}",
tests/unit/integrations/otel/test_otel_v2_sources_of_truth.py:None
Routetest_non_chat_route_spans_carry_semconv_name_and_modality
pytest.mark.parametrize( ("call_type", "operation", "output_type"), [(f"a{call_type}", operation, outp
tests/unit/integrations/otel/test_otel_v2_sources_of_truth.py:None
Routetest_non_empty_guardrails_triggers_premium_check
patch( "litellm.proxy.management_endpoints.common_utils.premium_user_check", )
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_list_triggers_premium_check
patch("litellm.proxy.management_endpoints.common_utils.premium_user_check")
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_list_updates_metadata
patch("litellm.proxy.management_endpoints.common_utils.premium_user_check")
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_policies_triggers_premium_check
patch( "litellm.proxy.management_endpoints.common_utils.premium_user_check", )
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_team_member_key_duration_triggers_premium_check
patch( "litellm.proxy.management_endpoints.common_utils.premium_user_check", )
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_empty_value_triggers_premium_check
patch("litellm.proxy.management_endpoints.common_utils.premium_user_check")
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_non_enterprise_permissions_guard
pytest.mark.parametrize( "permissions", ({}, {"other": True}, {"other": "get_spend_routes"}, {"get_spe
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_non_final_batch_is_not_priced
pytest.mark.parametrize( ("status", "output_file_id"), [("validating", None), ("in_progress",
tests/unit/litellm_core_utils/test_litellm_logging.py:None
Routetest_non_get_methods_are_classified_too
pytest.mark.parametrize("method", ["post", "put", "patch", "delete"])
tests/unit/proxy/mcp_server/test_openapi_to_mcp_generator.py:None
Routetest_non_json_provider_response_is_an_api_error
pytest.mark.parametrize("provider", ("nace", "openrouter", "fireworks_ai", "typesafe", "openai"))
tests/unit/llms/base_llm/decisions/test_base_decisions_transformation.py:None
Routetest_non_mapping_extra_body_keeps_top_level
pytest.mark.parametrize( "extra_body", ["not-a-mapping", ["input", "list"]], )
tests/unit/router_utils/test_embedding_batch_size_check.py:None
Routetest_non_openai_responses_bridge_drops_reasoning_fields_the_backend_refuses_under_drop_params
pytest.mark.parametrize( ("backend", "reasoning_effort", "expected_reasoning"), [ ("azure", {"
tests/unit/test_main.py:None
Routetest_non_openai_responses_bridge_sends_the_whole_reasoning_effort_dict_with_or_without_summary
pytest.mark.parametrize( ("backend", "reasoning_effort"), [ ("azure", {"effort": "low", "mode"
tests/unit/test_main.py:None
Routetest_non_openai_surfaces_keep_chat_bridge
pytest.mark.parametrize("model", ["claude-3-5-sonnet", "model_router/gpt-5", "agents/asst_abc123"])
tests/unit/llms/azure_ai/responses/test_azure_ai_responses_transformation.py:None
Routetest_non_overload_and_non_openai_routes_keep_their_status
pytest.mark.parametrize( ("route_type", "provider_status_code"), (("acompletion", 500), ("anth
tests/unit/proxy/test_common_request_processing.py:None
Routetest_non_owner_gets_the_same_refusal_whether_or_not_another_users_key_has_a_deny
pytest.mark.parametrize("route", ["/key/update", "/key/regenerate"])
tests/integration/authorization/test_passthrough_route_denylist.py:None
Routetest_non_stream_block_is_schema_valid_json
meta( Subject( domain=Domain.GUARDRAILS, route=Route.RESPONSES, pr
tests/e2e/guardrails/test_responses_pre_call_block_stream_e2e.py:None
Routetest_non_streaming_refusal_passes_through_untouched
pytest.mark.parametrize( "content_policy_fallbacks, upstream_body", [ (None, REFUSAL_RESPONSE)
tests/unit/router_utils/test_fallback_event_handlers.py:None
Routetest_non_string_provider_hint_from_the_caller_is_refused_before_the_provider
pytest.mark.parametrize("route", (_IMAGES, _SPEECH))
tests/integration/routing/test_declared_provider_bare_model_routes.py:None
Routetest_non_terminal_failure_is_requeued_and_delivered_on_recovery
pytest.mark.parametrize( ("status", "code", "raw_body", "puts_per_element"), [ pytest.param(40
tests/unit/integrations/test_s3_v2.py:None
Routetest_non_text_output_prevents_a_fresh_response_on_retry_or_fallback
pytest.mark.parametrize( "event_type", ("response.output_item.added", "response.reasoning_summary_text
tests/unit/test_router/core/test_streaming_characterization_responses.py:None
Routetest_none_falls_back_to_current_time
patch("litellm.integrations.opentelemetry.datetime")
tests/unit/integrations/test_opentelemetry.py:None
Routetest_none_instructions_stays_none
patch("litellm.mcp_client.client.ClientSession")
tests/unit/mcp_client/test_mcp_client.py:None
Routetest_none_value_does_not_trigger_premium_check
patch("litellm.proxy.management_endpoints.common_utils.premium_user_check")
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_normalize_tool_choice_for_responses_api
pytest.mark.parametrize( ("tool_choice", "expected"), [ ("auto", "auto"), ("none", "no
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py:None
Routetest_not_bearer_scheme_is_denied
meta( Subject( domain=Domain.PROXY_AUTH, route=Route.CHAT_COMPLETIONS,
tests/e2e/access_control/test_chat_auth_headers_e2e.py:None
Routetest_nothing_is_estimated_when_there_is_nothing_to_count
pytest.mark.parametrize("request_input", [[], object()])
tests/unit/proxy/test_proxy_utils_model_creation_and_error_logging.py:None
Routetest_nova_converse_record_wraps_prompt_and_input
pytest.mark.parametrize( "body", [ {"prompt": "hi"}, {"input": "hi"},
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:None
Routetest_nova_count_sends_the_tool_specs_converse_inference_sends
pytest.mark.parametrize("route", _NOVA_COUNTS.keys())
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:None
Routetest_nova_sonic_response_create_completes
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.REALTIME,
tests/e2e/llm_translation/realtime/test_realtime_bedrock_e2e.py:None
Routetest_nova_sonic_voice_turn_shows_each_sentence_once
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.REALTIME,
tests/e2e/llm_translation/realtime/test_realtime_bedrock_duplicate_text_e2e.py:None
Routetest_nova_stream_relays_text_usage_and_stop
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES,
tests/e2e/llm_translation/test_messages_bedrock_e2e.py:None
Routetest_null_clips_mean_no_clips_of_that_kind_on_every_route
pytest.mark.parametrize("route", _ROUTES)
tests/integration/providers/test_cloudflare_clef_omni_media_wire.py:None
Routetest_null_user_config_is_treated_as_absent
pytest.mark.parametrize( ("body", "expected_max_tokens"), ( ({"messages": [{"role": "user", "c
tests/integration/compatibility/test_status_code_followups.py:None
Routetest_numeric_formats_and_wide_schemas_follow_the_bedrock_native_key
pytest.mark.parametrize( ("route", "backend", "thinking", "schema", "native"), [ ("converse",
tests/integration/providers/test_bedrock_native_structured_output_wire.py:None
Routetest_oauth_credential_write_keeps_virtual_key_permissions
pytest.mark.parametrize( "state", ["allowed", "route_denied", "server_denied", "blocked", "expired", "look
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:None
Routetest_oauth_jwt_identity_preserves_separate_mcp_route_authorization
pytest.mark.parametrize("route_allowed", [False, True])
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:None
Routetest_object_output_format_under_deployment_drop_params_still_reaches_anthropic
pytest.mark.parametrize("route", ["anthropic_chat", "anthropic_messages"])
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:None
Routetest_observability_field_in_metadata_dict_is_rejected
pytest.mark.parametrize( "field", [ "langfuse_host", "langfuse_secret_
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_observability_field_in_request_body_root_is_rejected
pytest.mark.parametrize( "field", [ "langfuse_public_key", "langfuse_s
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_observation_input_carries_the_request_functions_and_tools
pytest.mark.parametrize( ("request_kwargs", "expected_input"), [ ( {
tests/unit/integrations/test_langfuse_otel.py:None
Routetest_ocr_contract_azure_invalid_options_are_bad_requests
pytest.mark.parametrize( "option,value,field", [("pages", [-1], "pages"), ("features", [1], "features"
tests/test_litellm_rust/ocr/test_failures.py:None
Routetest_ocr_input_is_the_document_url
meta( Subject( domain=Domain.OBSERVABILITY, route=Route.OCR, provi
tests/e2e/logging/test_otel_v2_langfuse_generation_output_e2e.py:None
Routetest_ocr_logging_fallback_preserves_route_and_response_precedence
pytest.mark.parametrize("request_route", [None, "/v1/chat/completions"])
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:None
Routetest_ocr_unsupported_json_document_returns_400
pytest.mark.parametrize( ("path", "body", "message", "param"), ( pytest.param( "/v
tests/integration/compatibility/test_status_code_followups_requests.py:None
Routetest_ocr_upload_input_is_a_bounded_document_summary_without_base64
meta( Subject( domain=Domain.OBSERVABILITY, route=Route.OCR, provi
tests/e2e/logging/test_otel_v2_langfuse_generation_output_e2e.py:None
Routetest_odd_caller_tag_values_on_an_untagged_group
pytest.mark.parametrize( ("tags", "status", "backends"), [ ([], 200, ("untagged-backend",)),
tests/integration/routing/test_tag_routing_prefix.py:None
Routetest_off_peak_cache_read_rate_applies_without_a_standard_cache_read_rate
pytest.mark.parametrize( ("off_peak_cache_read_rate", "expected_cached_rate"), [ p
tests/unit/llms/perplexity/test_perplexity_cost_calculator.py:None
Routetest_oidc_azure_ad_token_success
patch("litellm.secret_managers.main.get_azure_ad_token_provider")
tests/unit/secret_managers/test_secret_managers_main.py:None
Routetest_oidc_github_success
patch("litellm.secret_managers.main.oidc_cache")
tests/unit/secret_managers/test_secret_managers_main.py:None
Routetest_ollama_aembeddings
mock.patch( "litellm.llms.ollama.completion.handler.ollama_aembeddings", return_value=mock_ollama_embe
tests/unit/llms/ollama/test_ollama_chat_transformation.py:None
Routetest_ollama_decisions_rejects_input_images_before_http_or_drops_them
pytest.mark.parametrize("image", ("data:image/png;base64,AA==", "https://images.example/input.png"))
tests/unit/decisions/test_main.py:None
Routetest_ollama_embeddings
mock.patch( "litellm.llms.ollama.completion.handler.ollama_embeddings", return_value=mock_ollama_embed
tests/unit/llms/ollama/test_ollama_chat_transformation.py:None
Routetest_one_hour_pin_follows_the_deployments_one_hour_cache_support
pytest.mark.parametrize( ("custom_llm_provider", "model", "model_map_value", "pinned_past_five_minutes"),
tests/unit/router_utils/pre_call_checks/test_prompt_caching_deployment_check.py:None
Routetest_one_hour_pin_lands_in_the_redis_of_every_attach_path
pytest.mark.parametrize("path", ["router-settings", "coordination-redis", "env-only"])
tests/integration/routing/test_prompt_cache_pin_ttl_chaos.py:None
Routetest_one_malformed_limit_does_not_disturb_the_other
pytest.mark.parametrize("field", ("max_input_tokens", "max_output_tokens"))
tests/integration/pricing/test_model_listing_token_limits.py:None
Routetest_one_month_budget_resets_on_the_first_of_next_month_however_the_unit_is_spelled
pytest.mark.parametrize("budget_duration", ["1mo", "1month", "1months"])
tests/integration/management/test_listing_and_health_contracts.py:None
Routetest_one_sided_config_inspects_configured_direction_only
pytest.mark.parametrize("input_type, inspected", [("request", ["pre-1"]), ("response", [])])
tests/unit/proxy/guardrails/guardrail_hooks/test_ovalix.py:None
Routetest_only_an_unanswered_claude_search_call_leaves_the_replayed_input
pytest.mark.parametrize( ("history", "replayed"), [ pytest.param((_search_call(),), (), id="un
tests/integration/providers/test_openai_responses_tool_search_wire.py:None
Routetest_only_complexity_routers_enter_the_compared_totals
pytest.mark.parametrize("router_type, saved", [("adaptive", 0.0), ("quality", 0.0), ("quality", 2.0)])
tests/unit/proxy/management_endpoints/test_auto_router_endpoints.py:None
Routetest_only_human_opened_non_price_sync_prs_may_touch_the_pins_file
pytest.mark.parametrize( ("head_ref", "author_type", "changed", "expected"), [ ("litellm-provi
tests/unit/test_cost_map_guard.py:None
Routetest_only_kinds_whose_routing_the_rollup_records_are_listed
pytest.mark.parametrize( "model, listed_as", [ ("auto_router/complexity_router", "
tests/unit/proxy/management_endpoints/test_auto_router_endpoints.py:None
Routetest_only_the_built_in_eu_jev_decision_path_is_an_llm_route
pytest.mark.parametrize( ("route", "is_llm_route"), [ ("/eu_jev/v1/systemone", True),
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_open_object_schema_takes_the_json_tool_on_a_native_model_and_keeps_the_dict_open
pytest.mark.parametrize("route", ["converse", "invoke"])
tests/integration/providers/test_bedrock_native_structured_output_wire.py:None
Routetest_open_telemetry_config_auto_infer_otlp_http_when_endpoint_set
patch.dict(os.environ, {}, clear=True)
tests/unit/integrations/test_opentelemetry.py:None
Routetest_open_telemetry_config_custom_service_name
patch.dict(os.environ, {}, clear=True)
tests/unit/integrations/test_opentelemetry.py:None
Routetest_open_telemetry_config_manual_defaults
patch.dict(os.environ, {}, clear=True)
tests/unit/integrations/test_opentelemetry.py:None
← previousnext →3,701–3,800 of 5,595, ranked by callers