MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_bitbucket_client_get_file_content_access_denied
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/unit/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_get_file_content_auth_failed
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/unit/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_get_file_content_not_found
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/unit/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_get_file_content_success
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/unit/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_client_list_files_success
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.get")
tests/unit/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_bitbucket_prompt_integration_with_litellm
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_complex_prompt
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_error_handling
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_get_template
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_initialization
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_list_templates
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_message_parsing
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_post_call_hook
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_pre_call_hook_integration
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_integration.py:None
Routetest_bitbucket_prompt_manager_reload_prompts
patch("litellm.integrations.bitbucket.bitbucket_prompt_manager.BitBucketClient")
tests/unit/integrations/bitbucket/test_bitbucket_prompt_manager.py:None
Routetest_block_before_any_output_streams_a_message_that_opens_empty_and_carries_the_denial_once
pytest.mark.parametrize( ("rail", "denial", "forwarded"), ( ("pre_call", _PRE_CALL_DENIAL, [])
tests/integration/streaming/test_faked_responses_stream_guardrail_blocks.py:None
Routetest_block_includes_response_masked_data_when_opted_in
pytest.mark.parametrize("target", ["/v1/chat/completions", "/v1/responses", "/v1/messages"])
tests/integration/observability/test_panw_airs_block_masked_response.py:None
Routetest_block_payload_canonical
pytest.mark.parametrize( "surface,direction,transport", [ ("chat", "input", "http_
tests/unit/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_block_persists_to_key_info
meta( Subject( domain=Domain.MANAGEMENT, route=Route.KEY_MANAGEMENT, )
tests/e2e/management/test_management_e2e.py:None
Routetest_block_rejects_pii_only_violation
pytest.mark.parametrize("run_hook", [_run_pre_call, _run_during_call, _run_post_call])
tests/unit/proxy/guardrails/guardrail_hooks/test_lakera_ai_v2.py:None
Routetest_block_route_marks_the_customer_blocked_and_update_unblocks
pytest.mark.parametrize("block_route", ("/customer/block", "/end_user/block"))
tests/integration/authorization/test_end_user_block.py:None
Routetest_block_routes_serialize_prisma_row_to_200
pytest.mark.parametrize( ("route", "blocked"), [("/model/block", True), ("/model/unblock", False)]
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_block_then_unblock_persists_to_model_info
meta( Subject( domain=Domain.MANAGEMENT, route=Route.MODEL_MANAGEMENT,
tests/e2e/management/test_model_tag_accessgroup_e2e.py:None
Routetest_block_then_unblock_persists_to_team_info
meta(Subject(domain=Domain.MANAGEMENT, route=Route.TEAM_MANAGEMENT))
tests/e2e/management/test_team_management_e2e.py:None
Routetest_block_unblock_model
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.encrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_block_verdict_stops_the_stream_at_the_next_chunk
pytest.mark.parametrize("route", tuple(_ROUTES))
tests/integration/streaming/test_bedrock_guardrail_background_stream_scan.py:None
Routetest_block_verdict_that_lands_after_the_upstream_finished_replaces_the_finish
pytest.mark.parametrize("route", tuple(_ROUTES))
tests/integration/streaming/test_bedrock_guardrail_background_stream_scan.py:None
Routetest_blocked_end_user_is_refused_on_every_proxy_and_unblock_restores
pytest.mark.parametrize("block_route", ("/customer/block", "/end_user/block"))
tests/integration/authorization/test_end_user_block.py:None
Routetest_blocked_member_does_not_block_peer
pytest.mark.covers("quota_management.budget.team_member.isolates_per_member")
tests/e2e/quota_management/budgets/test_team_member_budget_isolation_e2e.py:None
Routetest_blocked_tool_raises_next_to_a_top_level_function_tool
pytest.mark.parametrize( "request_data", [ _responses_request( [{"type": "function
tests/unit/proxy/guardrails/guardrail_hooks/test_tool_policy_guardrail.py:None
Routetest_blocked_transcript_is_removed_from_the_conversation_before_the_refusal_turn
pytest.mark.parametrize( ("event_normalizer", "expected_frames"), [ (None, ["response.cancel",
tests/unit/litellm_core_utils/test_realtime_streaming.py:None
Routetest_body_snapshot_keeps_the_stream_usage_injection_marker_out_of_the_stored_request
pytest.mark.parametrize( ("route_type", "request_input"), [ ("acompletion", {"messages": [{"ro
tests/unit/proxy/test_litellm_pre_call_utils.py:None
Routetest_body_tagged_chat_reaches_the_untagged_tier_after_marker_rewrite
meta( Subject( domain=Domain.ROUTING, route=Route.CHAT_COMPLETIONS,
tests/e2e/router/test_auto_router_regressions_e2e.py:None
Routetest_body_tagged_chat_routes_through_the_marker_to_its_tier
meta( Subject( domain=Domain.ROUTING, route=Route.CHAT_COMPLETIONS,
tests/e2e/router/test_auto_router_regressions_e2e.py:None
Routetest_body_tagged_responses_with_list_input_routes_to_the_tier
pytest.mark.covers("reliability.routing.tagged_marker.responses_input_routes_through_marker")
tests/e2e/router/test_auto_router_regressions_e2e.py:None
Routetest_both_update_entries_enforce_creator_and_stamp_member_scope
pytest.mark.parametrize("endpoint", ["patch", "legacy"])
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_bounded_get_preserves_sdk_redirect_auth_and_query_handling
pytest.mark.parametrize("target", ["https://example.com/final.json?next=1", "https://other.example/final.json?
tests/unit/llms/custom_httpx/test_http_handler.py:None
Routetest_bounded_spec_redirects_preserve_ssrf_protection
pytest.mark.parametrize("target", ["https://93.184.216.35/final.json", "http://127.0.0.1/private.json"])
tests/unit/proxy/mcp_server/test_openapi_to_mcp_generator.py:None
Routetest_bridge_double_call_preserves_native_model
pytest.mark.parametrize( "input_model", [ "openrouter/openrouter/aurora-alpha",
tests/unit/llms/openrouter/test_openrouter_provider_routing.py:None
Routetest_bridge_flag_forwarded_to_file_search_emulation
patch.object(import_module("litellm.responses.file_search.emulated_handler"), "_call_aresponses")
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_flag_prevents_native_responses_endpoint_call
patch.object( import_module("litellm.responses.main").litellm_completion_transformation_handler, "resp
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_forwards_same_params_as_native_dispatch
pytest.mark.parametrize( ("model", "upstream_url", "use_chat_completions_api", "allowed_openai_params"
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_used_when_model_uses_chat_completions_prefix
patch.object( import_module("litellm.responses.main").litellm_completion_transformation_handler, "resp
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_used_when_provider_config_none
patch.object( import_module("litellm.responses.main").litellm_completion_transformation_handler, "resp
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_bridge_used_when_use_chat_completions_api_true
patch.object( import_module("litellm.responses.main").litellm_completion_transformation_handler, "resp
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_bridged_follow_up_after_a_client_tool_search_with_a_client_field_named_like_a_bridge_keyword_reaches_the_provider
pytest.mark.parametrize("client_field", ["caller_input", "names_non_string_fields"])
tests/unit/responses/litellm_completion_transformation/test_handler.py:None
Routetest_bridged_stream_delivers_content_finish_reason_and_done
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_responses_bridge_streaming_e2e.py:None
Routetest_bridged_stream_reassembles_tool_call
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_responses_bridge_streaming_e2e.py:None
Routetest_bridged_stream_shares_one_chunk_id
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_responses_bridge_streaming_e2e.py:None
Routetest_bridged_turn_with_a_client_field_named_like_a_bridge_keyword_reaches_the_provider
pytest.mark.parametrize("client_field", ["caller_input", "names_non_string_fields"])
tests/unit/responses/litellm_completion_transformation/test_handler.py:None
Routetest_bucket_failures_keep_their_status_and_never_blame_a_row
pytest.mark.parametrize("route", ROUTES)
tests/integration/providers/test_vertex_batch_row_line_errors_wire.py:None
Routetest_bucket_off_the_proxy_allowlist_is_rejected_and_names_the_setting
pytest.mark.parametrize("field", ["s3_bucket_name", "s3_output_bucket_name"])
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_bucket_on_the_proxy_allowlist_is_accepted
pytest.mark.parametrize("field", ["s3_bucket_name", "s3_output_bucket_name"])
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_budget_alerts_with_all_alert_types
pytest.mark.parametrize( "alert_type", [ "token_budget", "user_budget"
tests/unit/test_utils.py:None
Routetest_budget_bounds_the_block_not_each_turn
pytest.mark.parametrize( "turn_lengths,budget_chars,expected_lengths", [ pytest.pa
tests/unit/router_strategy/test_complexity_router.py:None
Routetest_budget_checks_only_run_on_llm_api_routes
pytest.mark.parametrize( "scope, route, expect_blocked", [ ("user", "/chat/completions", True)
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:None
Routetest_budget_crud_roundtrip
pytest.mark.covers("mgmt.budget.new.persists")
tests/e2e/quota_management/budgets/test_budget_crud_e2e.py:None
Routetest_budget_delete_removes_it
pytest.mark.covers("mgmt.budget.delete.persists")
tests/e2e/quota_management/budgets/test_budget_crud_e2e.py:None
Routetest_budget_duration_schedules_reset_on_key
meta( Subject( domain=Domain.SPEND_BUDGETS, route=Route.KEY_MANAGEMENT, ) )
tests/e2e/quota_management/budgets/test_budget_crud_e2e.py:None
Routetest_budget_fallback_reroutes_anthropic_messages_to_openai
pytest.mark.covers("quota_management.budget.fallback.routes_to_fallback")
tests/e2e/quota_management/budgets/test_budget_fallback_e2e.py:None
Routetest_budget_limits_sort_unlimited_as_infinity
pytest.mark.parametrize("field", ("max_budget", "tpm_limit", "rpm_limit", "tpd_limit"))
tests/integration/management/test_budget_list_sorting.py:None
Routetest_budget_reset_at_written_is_calendar_aligned
pytest.mark.parametrize( "budget_duration, expected_day, expected_month", [ ("30d", 1, 7), #
tests/unit/proxy/common_utils/test_reset_budget_job.py:None
Routetest_budget_window_start_reads_json_encoded_windows
pytest.mark.parametrize( ("window", "expected"), [ ( '{"budget_duration": "1h", "r
tests/unit/proxy/spend_tracking/test_budget_reservation.py:None
Routetest_budgeted_mapper_rejects_a_tag_without_a_max_budget
pytest.mark.parametrize( "budget_table", [None, LiteLLM_BudgetTable(budget_id="qa-budget", max_budget=
tests/unit/proxy/common_utils/test_request_tag_mappings.py:None
Routetest_buffer_control_events_map_to_soniox_control_frames
pytest.mark.parametrize( ("event_type", "control_frame"), [("input_audio_buffer.commit", '{"type":"fin
tests/unit/llms/soniox/realtime/test_soniox_realtime_transformation.py:None
Routetest_build_usage_handles_openai_and_anthropic_shapes
pytest.mark.parametrize( ("response", "expected"), [ ({"usage": {"input_tokens": 10, "output_t
tests/unit/proxy/guardrails/guardrail_hooks/test_straiker.py:None
Routetest_builtin_provider_routes_do_not_carry_the_user_defined_marker
pytest.mark.parametrize( "handler_name", [ "anthropic_proxy_route", "bedrock_proxy_rou
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:None
Routetest_bulk_reads_do_not_swallow_unrelated_validation_errors
pytest.mark.parametrize("reader", [get_all_mcp_servers, get_mcp_servers, get_mcp_submissions])
tests/unit/proxy/mcp_server/test_db_credentials.py:None
Routetest_bulk_reads_isolate_corrupt_secret_maps
pytest.mark.parametrize("reader", [get_all_mcp_servers, get_mcp_servers, get_mcp_submissions])
tests/unit/proxy/mcp_server/test_db_credentials.py:None
Routetest_bulk_update_applies_max_budget_to_target_key
meta(Subject(domain=Domain.MANAGEMENT, route=Route.KEY_MANAGEMENT))
tests/e2e/management/test_key_management_e2e.py:None
Routetest_byok_defers_regardless_of_auth_type
pytest.mark.parametrize( "server", [ _server(auth_type=MCPAuth.api_key, is_byok=True),
tests/unit/proxy/mcp_server/outbound_credentials/test_adapter.py:None
Routetest_byte_order_marks_blank_lines_and_crlf_upload_the_same_rows_as_a_clean_file
pytest.mark.parametrize("route", ROUTES)
tests/integration/providers/test_vertex_batch_row_line_errors_wire.py:None
Routetest_bytesio_at_end_position
pytest.mark.skipif( os.environ.get("SKIP_AUDIO_TESTS") == "true", reason="Skipping audio tests
tests/unit/litellm_core_utils/test_audio_utils.py:None
Routetest_c1_config_default_team_settings_langfuse_secret_reaches_only_langfuse
pytest.mark.timeout(240) # full S1/S2 walk: every table and ~430 GET routes as two callers
tests/integration/security/test_callback_credentials.py:None
Routetest_c1_deprecated_team_callback_settings_langfuse_secret_reaches_only_langfuse
pytest.mark.timeout(240) # full S1/S2 walk: every table and ~430 GET routes as two callers
tests/integration/security/test_callback_credentials.py:None
Routetest_c1_team_callback_api_langfuse_secret_reaches_only_langfuse
pytest.mark.timeout(240) # full S1/S2 walk: every table and ~430 GET routes as two callers
tests/integration/security/test_callback_credentials.py:None
Routetest_c2_key_logging_langfuse_secret_reaches_only_langfuse
pytest.mark.timeout(240) # full S1/S2 walk: every table and ~430 GET routes as two callers
tests/integration/security/test_callback_credentials.py:None
Routetest_c3_team_callback_datadog_api_key_reaches_only_datadog
pytest.mark.timeout(240) # full S1/S2 walk: every table and ~430 GET routes as two callers
tests/integration/security/test_callback_credentials.py:None
Routetest_cache_connection
router.post( "/cache/settings/test", tags=["Cache Settings"], dependencies=[Depends(user_api_key_a
litellm/proxy/management_endpoints/cache_settings_endpoints.py:None
Routetest_cache_control_hook_fills_the_mark_budget_every_claude_route_sends_after_marked_search_calls
pytest.mark.parametrize( ("model", "custom_llm_provider"), [ ("anthropic/claude-sonnet-4-6", N
tests/unit/integrations/test_anthropic_cache_control_hook.py:None
Routetest_cache_control_injection_points_replace_client_prompt_cache_breakpoints_on_a_flagged_bedrock_profile
pytest.mark.parametrize("route", ["bedrock", "bedrock/converse"])
tests/unit/integrations/test_anthropic_cache_control_hook.py:None
Routetest_cache_control_on_a_function_call_output_marks_its_last_part
pytest.mark.parametrize( ("output", "expected"), ( ("found it", [pcb.marked(_input_text("found
tests/integration/providers/test_openai_responses_prompt_cache_breakpoint_wire.py:None
Routetest_cache_get_by_file_returns_exact_entry
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/unit/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_get_by_id_accepts_encoded_and_decoded
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/unit/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_hit_directional_scope_uses_measured_base_default
pytest.mark.parametrize( ("row_id", "endpoint", "scope", "expected_direction"), ( pytest.param
tests/integration/observability/test_logging_only_scope_runtime.py:None
Routetest_cache_init_creates_cluster_cache_from_env_var
patch("litellm._redis.get_redis_connection_pool")
tests/unit/caching/test_redis_cluster_cache.py:None
Routetest_cache_init_creates_redis_cache_without_cluster_config
patch("litellm._redis.get_redis_connection_pool")
tests/unit/caching/test_redis_cluster_cache.py:None
Routetest_cache_load_all_encodes_ids_and_populates_maps
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/unit/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_points_emitted_only_for_models_that_support_prompt_caching
pytest.mark.parametrize( ("model", "expects_cache_points"), [ pytest.param("nvidia.nemotron-su
tests/unit/llms/bedrock/chat/test_converse_transformation.py:None
Routetest_cache_prediction_authorizes_route_and_personal_models_before_provider_counts
pytest.mark.parametrize( "allowed_routes,user_models,candidate,status_code", [ (["/chat/comple
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_cache_read_tokens_bill_at_the_cache_read_rate
pytest.mark.covers("llm.chat_completions.together_ai.prompt_cache_5m.nonstream.cost_logged")
tests/e2e/llm_translation/test_together_ai_e2e.py:None
Routetest_cache_reload_clears_then_reloads
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/unit/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cache_skips_when_template_missing_even_after_reload_attempt
patch("litellm.integrations.gitlab.gitlab_prompt_manager.GitLabPromptManager")
tests/unit/integrations/gitlab/test_gitlab_prompt_manager.py:None
Routetest_cached_discovery_cannot_authorize_another_servers_local_handler
pytest.mark.parametrize("poisoned_route", [False, True])
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:None
Routetest_cached_guarded_transcription_still_streams_to_a_stream_client
pytest.mark.usefixtures("patched_transcription_stream")
tests/unit/proxy/proxy_server/test_routes_audio.py:None
Routetest_cached_key_budget_preserves_non_spending_access
pytest.mark.parametrize("key_max_budget, member_max_budget", [(None, 1.0), (1.0, None)])
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_cached_key_team_member_budget_blocks_at_exact_cap
pytest.mark.usefixtures("registered_budgeted_route")
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_cached_virtual_key_applies_proxy_default_budget_to_new_end_user
pytest.mark.parametrize( ("default_budget_id", "expected_limits"), [ pytest.param("proxy-defau
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_calculate_image_editing_cost
patch("litellm.cost_calculator.default_image_cost_calculator")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_calculate_image_generation_cost
patch("litellm.cost_calculator.default_image_cost_calculator")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
← previousnext →1,901–2,000 of 5,595, ranked by callers