MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_deepinfra_rerank_defaults_api_base_when_missing
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Routetest_deepinfra_rerank_error_handling
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank.py:None
Routetest_deepinfra_rerank_minimal_response
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank.py:None
Routetest_deepinfra_rerank_request_format
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank.py:None
Routetest_deepinfra_rerank_with_env_vars
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Routetest_deepinfra_rerank_with_queries_param
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank.py:None
Routetest_deepinfra_rerank_with_queries_param
patch("litellm.llms.custom_httpx.http_handler.AsyncHTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank_integration.py:None
Routetest_deepinfra_rerank_with_service_tier
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/llms/deepinfra/test_deepinfra_rerank.py:None
Routetest_deeply_nested_api_base_smuggle_rejected_on_both_surfaces
pytest.mark.parametrize("surface", ["top_level", "router_settings_override"])
tests/unit/proxy/auth/test_auth_utils.py:None
Routetest_deeply_nested_tool_text_is_blocked_rather_than_skipped
pytest.mark.parametrize("payload_field", ("mcp_arguments", "mcp_input_schema"))
tests/unit/proxy/mcp_server/guardrail_translation/test_mcp_guardrail_handler.py:None
Routetest_deepseek_thinking_without_a_requested_budget_does_not_warn
pytest.mark.parametrize( "thinking", ({"type": "enabled"}, {"type": "disabled", "budget_tokens": 4000}), i
tests/unit/llms/deepseek/chat/test_deepseek_chat_transformation.py:None
Routetest_default_azure_credential_keeps_its_full_chain
patch.dict( os.environ, { "AZURE_CLIENT_ID": "azure-openai-client-id",
tests/unit/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_default_key_generate_params_allowed_routes_keeps_management_and_read_only_presets
pytest.mark.parametrize( ("key_type", "preset_routes"), [(LiteLLMKeyType.MANAGEMENT, ["management_rout
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_default_key_generate_params_allowed_routes_with_a_non_string_entry_is_ignored
pytest.mark.parametrize( ("request_data", "expected_routes"), [(GenerateKeyRequest(), []), (GenerateKe
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_default_mode_rejects_an_output_modality_the_model_cannot_produce
pytest.mark.parametrize( ("model", "requested_output"), [ ("gemini-live-2.5-flash-native-audio
tests/unit/litellm_core_utils/test_realtime_streaming.py:None
Routetest_default_options_survive_deepcopy_and_asdict
pytest.mark.parametrize("options_type", get_args(HarnessOptions), ids=lambda t: t.__name__)
tests/unit/harness/test_options.py:None
Routetest_default_route_needs_grok_or_gpt_56_or_newer_and_a_row_listing_chat_completions
pytest.mark.parametrize( "model, supported_endpoints, expected_route", [ ("global.openai.gpt-5
tests/unit/llms/bedrock/chat/chat_completions/test_bedrock_chat_completions_transformation.py:None
Routetest_default_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/unit/integrations/test_braintrust_span_name.py:None
Routetest_default_strict_matches_messages_to_chat_adapter
pytest.mark.parametrize("format_field", ("output_format", "output_config"))
tests/unit/llms/anthropic/messages/responses_adapters/test_responses_adapters_transformation.py:None
Routetest_default_team_allowed_routes_cover_messages_but_not_skills
pytest.mark.parametrize( "route,expected", [ ("/v1/messages", True), ("/v1/messages/co
tests/unit/proxy/auth/test_handle_jwt.py:None
Routetest_default_team_params
pytest.mark.parametrize( "team_params", [ # Test case 1: Using DefaultTeamSSOParams De
tests/unit/proxy/management_endpoints/test_ui_sso.py:None
Routetest_default_team_params_organization_id_reaches_sso_created_team
pytest.mark.parametrize( "team_params", [ DefaultTeamSSOParams(max_budget=10, budget_duration=
tests/unit/proxy/management_endpoints/test_ui_sso.py:None
Routetest_default_vertex_config_location_fills_routes_without_project_and_location
pytest.mark.parametrize( ("endpoint", "location", "expected_target"), [ (
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:None
Routetest_default_with_a_non_string_route_is_ignored
pytest.mark.parametrize( ("body", "expected"), (({}, []), ({"key_type": "llm_api"}, ["llm_api_routes"]
tests/integration/management/test_key_default_allowed_routes.py:None
Routetest_degraded_responses_payload_keeps_the_served_service_tier_price
pytest.mark.parametrize( "output", [[], [{"type": "reasoning", "id": "rs_1", "status": "completed", "s
tests/unit/litellm_core_utils/test_litellm_logging.py:None
Routetest_delegate_jwt_refusal_after_valid_signature_propagates
pytest.mark.parametrize( "refusal", [ ProxyException(message="Budget has been exce
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:None
Routetest_delegated_jwt_uses_granting_team_policy_before_route_authorization
pytest.mark.parametrize( "team_route_allowed,team_claim,db_fallback", [ (True, None, False),
tests/unit/proxy/auth/test_handle_jwt.py:None
Routetest_delete_access_group_patches_cached_team_and_key
pytest.mark.parametrize( "team_cache_group_ids,key_cache_group_ids,expected_team_ids_after,expected_key_id
tests/unit/proxy/management_endpoints/test_access_group_endpoints.py:None
Routetest_delete_access_group_success
pytest.mark.parametrize("access_group_id", ["ag-123", "ag-delete-me"])
tests/unit/proxy/management_endpoints/test_access_group_endpoints.py:None
Routetest_delete_container_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/unit/test_container_router.py:None
Routetest_delete_file_answers_403_for_a_raw_cloud_id_from_a_non_admin_key
pytest.mark.parametrize( ("route_prefix", "raw_file_id", "model_name"), ( ("/bedrock/v1/files"
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:None
Routetest_delete_file_response_reports_the_id_anthropic_returned
pytest.mark.parametrize( ("payload", "expected_id"), [ ({"id": "file-abc123", "typ
tests/unit/llms/anthropic/files/test_anthropic_files_transformation.py:None
Routetest_delete_forbidden_for_non_admin_key
pytest.mark.covers("mgmt.key.delete.admin_only")
tests/e2e/management/test_key_management_e2e.py:None
Routetest_delete_many_in_deletes_every_listed_row_and_nothing_else
pytest.mark.covers("other.database.chunked_in.delete_many_in_deletes_every_row")
tests/integration/database/test_chunked_in_lists.py:None
Routetest_delete_model
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.decrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_delete_persists_and_revokes_team_bound_key
pytest.mark.covers("mgmt.team.delete.persists")
tests/e2e/management/test_management_e2e.py:None
Routetest_delete_removes_from_model_info_catalog
pytest.mark.covers("mgmt.model.delete.persists")
tests/e2e/management/test_management_e2e.py:None
Routetest_delete_removes_from_organization_info
pytest.mark.covers("mgmt.organization.delete.persists")
tests/e2e/management/test_management_e2e.py:None
Routetest_delete_removes_the_customer
pytest.mark.covers("mgmt.customer.delete.persists")
tests/e2e/management/test_budget_customer_user_org_e2e.py:None
Routetest_delete_removes_the_server_from_every_replica
pytest.mark.covers("mgmt.mcp_server.delete.persists")
tests/e2e/management/test_mcp_lifecycle_e2e.py:None
Routetest_delete_removes_the_toolset_from_every_replica
pytest.mark.covers("mgmt.mcp_toolset.delete.persists")
tests/e2e/management/test_mcp_lifecycle_e2e.py:None
Routetest_delete_removes_the_user_from_inventory
pytest.mark.covers("mgmt.user.delete.persists")
tests/e2e/management/test_management_e2e.py:None
Routetest_delete_revokes_info_and_chat_on_every_replica
meta( Subject( domain=Domain.MANAGEMENT, route=Route.KEY_MANAGEMENT,
tests/e2e/management/test_key_lifecycle_e2e.py:None
Routetest_delete_revokes_the_key_on_chat
pytest.mark.covers("mgmt.key.delete.persists")
tests/e2e/management/test_management_e2e.py:None
Routetest_delete_user_success
patch("requests.post")
tests/unit/proxy/client/test_users.py:None
Routetest_delete_user_unauthorized
patch("requests.post")
tests/unit/proxy/client/test_users.py:None
Routetest_delete_verification_tokens_evicts_a_requested_key_whose_row_is_already_gone
pytest.mark.parametrize( "deleter", [ UserAPIKeyAuth(user_id="admin-user", api_key="sk-admin",
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_deleted_key_is_removed_from_the_manager
pytest.mark.requires_capability("deletes_stored_keys")
tests/e2e/secret_manager/test_secret_manager_e2e.py:None
Routetest_deleting_a_file_removes_only_the_uploads_the_gateway_made_for_it
pytest.mark.parametrize( "content_type", [ "text/plain;llm_output_file_id,file-of-another-team
tests/unit/enterprise/proxy/test_managed_files_hook.py:None
Routetest_deleting_an_access_group_revokes_a_still_assigned_team_and_key
pytest.mark.parametrize("route_prefix", ("/v1/access_group", "/v1/unified_access_group"))
tests/integration/authorization/test_access_group_model_listing.py:None
Routetest_deliver_ended_stream_function_call_rewrite_without_matching_events_fails_closed
pytest.mark.parametrize( ("mismatch", "expected_reason"), [ ("orphan_call_id", "no
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:None
Routetest_delta_has_content_branches
pytest.mark.parametrize( "processed_chunk, expected", [ # Non-empty deltas of every type must
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_first_delta.py:None
Routetest_denied_agent_keeps_its_403_logs_one_zero_spend_failure_for_the_caller_and_never_dispatches
pytest.mark.parametrize( ("route", "method", "version", "legacy"), [ pytest.param("/a2a/{}", "
tests/integration/authorization/test_agent_denial_logging.py:None
Routetest_denied_passthrough_routes_leave_other_routes_untouched
pytest.mark.parametrize( "route", ["/svc/public", "/svc/administrator", "/anthropic/v1/messages", "/ch
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_denied_passthrough_routes_win_over_allow
pytest.mark.parametrize( "metadata, team_metadata, denied_route", [ ({"allowed_passthrough_rou
tests/unit/proxy/auth/test_route_checks.py:None
Routetest_denied_routes_rejected_for_non_admin
pytest.mark.parametrize( "kwargs, field", [ ({"denied_passthrough_routes": ["/v1/f
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_denied_tool_use_cut_off_by_an_upstream_error_never_reaches_the_client
pytest.mark.parametrize("delivered_events", [5, 6], ids=["before-input", "full-input-before-stop"])
tests/unit/proxy/guardrails/guardrail_hooks/test_tool_permission.py:None
Routetest_dense_router_params_dump_resolves_like_the_sparse_config
pytest.mark.parametrize( "sparse_params", [TestInternalIssuerIdentitySourceDispatch.LITELLM_PARAMS, Te
tests/unit/llms/anthropic/test_anthropic_wif.py:None
Routetest_deny_by_default_reads_requested_vector_stores_without_a_registry
pytest.mark.parametrize( "request_body", [ {"query": "what is in this KB?", "vector_store_id":
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:None
Routetest_deny_forwards_guardrail_logging_info_to_failure_hook
patch(_COLLECT, return_value=["rubrik"])
tests/unit/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:None
Routetest_deployment_bills_the_catalog_row_its_registration_resolves_to_across_a_reload
pytest.mark.parametrize( "deployment", ( _Deployment( "region-unpriced", f"bedrock
tests/integration/pricing/test_price_data_reload_prices.py:None
Routetest_deployment_drop_params_drop_a_non_integer_priority_on_every_deployment_route
pytest.mark.parametrize( ("deployment", "requested_model", "routing_fields"), [ (
tests/unit/test_router/test_router.py:None
Routetest_deployment_failure_metrics_label_the_selected_deployment_provider
pytest.mark.parametrize( ("litellm_params", "logged_provider", "expected"), [ pytest.param(
tests/unit/integrations/test_prometheus_labels.py:None
Routetest_deployment_flat_price_still_precedes_pixel_price
pytest.mark.parametrize("price_key", ("input_cost_per_image", "output_cost_per_image"))
tests/unit/llms/xai/image_generation/test_cost_calculator.py:None
Routetest_deployment_identity_keeps_the_user_assigned_identity_under_a_dev_only_setting
patch.dict( os.environ, { "AZURE_CLIENT_ID": "user-assigned-identity-client-id",
tests/unit/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_deployment_identity_reaches_workload_and_managed_identity_only
patch.dict( os.environ, { "AZURE_CLIENT_ID": "workload-identity-client-id",
tests/unit/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_deployment_identity_refuses_to_mint_a_token_for_a_configured_service_principal
patch.dict( os.environ, { "AZURE_CLIENT_ID": "azure-openai-client-id",
tests/unit/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_deployment_identity_still_reaches_a_system_assigned_managed_identity
patch.dict( os.environ, { "AZURE_CLIENT_ID": "azure-openai-client-id",
tests/unit/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_deployment_identity_survives_a_developer_only_token_credentials_setting
patch.dict( os.environ, { "AZURE_CLIENT_ID": "workload-identity-client-id",
tests/unit/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_deployment_image_price_overrides_billed_ticks
pytest.mark.parametrize( "price_key,resolution", ( ("input_cost_per_image", "1k"), ("o
tests/unit/llms/xai/image_generation/test_cost_calculator.py:None
Routetest_deployment_limit_params_are_forwarded_with_the_rest_of_litellm_params
pytest.mark.parametrize("router_only_param", ["rpm", "tpm", "max_parallel_requests"])
tests/unit/test_router/core/test_endpoints.py:None
Routetest_deployment_max_tokens_streams_tool_call_completion
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_bedrock_mantle_output_limit_e2e.py:None
Routetest_deployment_only_settings_copied_by_the_router_stay_out_of_provider_params
pytest.mark.parametrize( "provider_filter", [ litellm.utils.get_non_default_completion_params,
tests/unit/test_utils.py:None
Routetest_deployment_pricing_model_info_honors_a_200k_tier_batch_override
pytest.mark.parametrize( "override_key", ( "output_cost_per_token_above_200k_tokens_batches",
tests/unit/litellm_core_utils/test_litellm_logging.py:None
Routetest_deployment_pricing_model_info_honors_a_tier_only_batch_override_over_the_published_flat_rates
pytest.mark.parametrize( "tier_key", ["input_cost_per_token_above_200k_tokens_batches", "input_cost_pe
tests/unit/litellm_core_utils/test_litellm_logging.py:None
Routetest_derive_key_from_salt_key_refuses_an_openssl_without_a_fips_provider
pytest.mark.skipif(_hashlib.get_fips_mode() == 1, reason="this OpenSSL runs a FIPS provider")
tests/unit/proxy/common_utils/test_encrypt_decrypt_utils.py:None
Routetest_derives_api_root_from_configured_base
pytest.mark.parametrize( "base_env, expected_root", [ (None, "https://openrouter.a
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:None
Routetest_detailed_debug_logs_request_body_only_as_received_and_as_sent
pytest.mark.parametrize( "route, path_suffix, body, upstream_json", [ ( "/v1/chat/
tests/unit/proxy/test_proxy_server.py:None
Routetest_detects_every_image_dialect_including_tool_results
pytest.mark.parametrize( "part", [ {"type": "image_url", "image_url": {"url": "dat
tests/unit/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_common_utils.py:None
Routetest_developer_role_becomes_the_system_instruction_like_real_time
pytest.mark.parametrize( "entry", [ _responses_entry( body={
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_transformation.py:None
Routetest_developer_role_translation
pytest.mark.parametrize( "case", _pick( "anthropic_sonnet45", "bedrock_converse_haiku"
tests/unit/llms/base_llm/chat/test_provider_chat_translation.py:None
Routetest_dialect_resolution
pytest.mark.parametrize( "model,provider,expected", [ ("openai/gpt-5.6", None, Tru
tests/unit/integrations/test_anthropic_cache_control_hook.py:None
Routetest_dict_fallback_targets_only_reroute_model_only_entries
pytest.mark.parametrize( ("targets", "expected_model"), [ ([{"model": "gpt-4o-mini
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:None
Routetest_different_models_cost_tracking
patch("litellm.completion_cost")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_direct_make_target_fetches_default_once
pytest.mark.parametrize("target", ["lint-format-check-changed", "lint-test-quality"])
tests/unit/test_default_branch.py:None
Routetest_direct_reset_carries_overage_when_rollover_enabled
pytest.mark.parametrize( "run_phase, table, id_field, id_value, row_factory", [ (
tests/unit/proxy/common_utils/test_reset_budget_job.py:None
Routetest_direction_decides_which_traffic_is_sampled
pytest.mark.parametrize( "job,routed_by,attempt_rows", [ (_job(), None, 1),
tests/unit/integrations/test_shadow_eval_logger.py:None
Routetest_direction_logs_as_expected_event_type
pytest.mark.parametrize( "inspection_type,direction,expected_event_attr", [ ("chat
tests/unit/proxy/guardrails/guardrail_hooks/test_cisco_ai_defense_chat.py:None
Routetest_disable_admin_endpoints_error_message
patch("litellm.secret_managers.main.get_secret_bool")
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_disable_admin_endpoints_with_premium_user
patch("litellm.secret_managers.main.get_secret_bool")
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_disable_hf_tokenizer_download
patch("litellm.utils._return_huggingface_tokenizer")
tests/unit/litellm_core_utils/test_token_counter.py:None
Routetest_disable_llm_api_endpoints_error_message
patch("litellm.secret_managers.main.get_secret_bool")
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_disable_llm_api_endpoints_with_premium_user
patch("litellm.secret_managers.main.get_secret_bool")
tests/unit/enterprise/proxy/auth/test_route_checks.py:None
Routetest_disable_prepared_statements_env_var_forwarded_to_url
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_disable_prepared_statements_forwarded_to_url
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_disabled_capability_never_reaches_upstream
pytest.mark.parametrize( "disabled,operation", [ ("prompts", "prompts/list"), ("prompt
tests/unit/proxy/mcp_server/test_operations.py:None
Routetest_disconnect_after_send_is_not_replayed
pytest.mark.parametrize("method", ["post", "patch"])
tests/unit/llms/custom_httpx/test_http_handler.py:None
Routetest_disconnect_then_configure_reuses_connection_and_model_without_prompts
pytest.mark.parametrize("target", ["claude", "codex"])
tests/unit/proxy/client/cli/test_configure_commands.py:None
Routetest_discovers_only_valid_advertised_limits
pytest.mark.parametrize( ("card", "expected"), ( ({"max_model_len": 8192}, {"max_tokens": 8192
tests/unit/llms/openai_like/test_model_info.py:None
Routetest_discovery_card_is_proxy_fronted
meta( Subject( domain=Domain.AGENTS_API, route=Route.A2A, ) )
tests/e2e/a2a/test_a2a_agent_e2e.py:None
← previousnext →2,401–2,500 of 5,595, ranked by callers