MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_create_batch_reaches_one_deployment_and_returns_model_encoded_ids
pytest.mark.parametrize( "spelling", ["encoded_input", "body_model", "query_model", "header_model", "s
tests/integration/providers/test_files_batches_wire.py:None
Routetest_create_batch_through_a_route_alias_reaches_one_deployment
pytest.mark.parametrize("route", ["/batches", "/openai/v1/batches"], ids=["batches-alias", "openai-v1-batches-
tests/integration/providers/test_files_batches_wire.py:None
Routetest_create_client_secret
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.REALTIME,
tests/e2e/llm_translation/test_realtime_http_e2e.py:None
Routetest_create_client_session_with_transport
patch("aiohttp.ClientSession")
tests/unit/llms/custom_httpx/test_aiohttp_handler.py:None
Routetest_create_container_defaults_to_standard_openai
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/containers/test_container_regional_api_base.py:None
Routetest_create_container_router_call_mock
patch("litellm.containers.main.base_llm_http_handler")
tests/unit/test_container_router.py:None
Routetest_create_container_uses_env_var_openai_base_url
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/containers/test_container_regional_api_base.py:None
Routetest_create_container_uses_regional_api_base
patch("litellm.llms.custom_httpx.http_handler.HTTPHandler.post")
tests/unit/containers/test_container_regional_api_base.py:None
Routetest_create_echoes_every_field_written
meta(Subject(domain=Domain.MANAGEMENT, route=Route.KEY_MANAGEMENT))
tests/e2e/management/test_key_lifecycle_e2e.py:None
Routetest_create_file_passthrough_rejected_outside_a_vertex_batch
pytest.mark.parametrize( "form, expected_param, expected_fragment", [ ({"purpose": "batch", "p
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:None
Routetest_create_file_rejects_a_malformed_batch_line_with_a_400_before_uploading
pytest.mark.parametrize( ("file_content", "expected_message"), [ pytest.param( f"{
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:None
Routetest_create_from_managed_files_routes_only_to_deployments_holding_every_file
pytest.mark.parametrize( ("call_type", "files", "expected"), [ pytest.param( "acre
tests/unit/enterprise/proxy/hooks/test_managed_files.py:None
Routetest_create_guardrail_span_with_valid_info
patch("litellm.integrations.opentelemetry.datetime")
tests/unit/integrations/test_opentelemetry.py:None
Routetest_create_initial_state_carries_only_the_request_metadata_into_the_queued_response
pytest.mark.parametrize( ("request_data", "expected_metadata"), [ ( {"model": "gpt
tests/unit/proxy/response_polling/test_response_polling_handler.py:None
Routetest_create_interaction_accepts_input_or_a_continuation_token
pytest.mark.parametrize( "data", [ {"model": "gemini-4-argon", "input": "prove the prime numbe
tests/unit/proxy/test_route_llm_request.py:None
Routetest_create_list_retrieve_delete_lifecycle
meta(Subject(domain=Domain.LLM_TRANSLATION, route=Route.VECTOR_STORES, providers=(Provider.OPENAI,)))
tests/e2e/llm_translation/test_vector_stores_e2e.py:None
Routetest_create_model_all_fields
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.encrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_create_model_encrypts_params
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.encrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_create_persists_both_tools_under_the_exact_names_written
meta( Subject( domain=Domain.MCP, route=Route.MCP, ) )
tests/e2e/management/test_mcp_lifecycle_e2e.py:None
Routetest_create_persists_every_field_on_every_replica
meta( Subject( domain=Domain.MCP, route=Route.MCP, ) )
tests/e2e/management/test_mcp_lifecycle_e2e.py:None
Routetest_create_rejects_an_input_file_litellm_does_not_hold
pytest.mark.parametrize( "files", [{}, {INPUT_FILE_ID: managed_input_file(storage_backend=None)}],
tests/unit/proxy/batches_endpoints/test_litellm_executed_batches.py:None
Routetest_create_request_names_the_uploaded_file_in_input_config
pytest.mark.parametrize( "input_file_id", ["haf0y9b1kydd", "files/haf0y9b1kydd", "https://generativela
tests/unit/llms/gemini/batches/test_gemini_batches_transformation.py:None
Routetest_create_returns_run
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_create_sends_the_model_without_its_provider_prefix
pytest.mark.parametrize( ("provider", "target", "provider_defaults"), [ ("openai", "/v1/fine_t
tests/integration/compatibility/test_fine_tuning_jobs.py:None
Routetest_create_sends_the_model_without_the_provider_prefix
pytest.mark.parametrize( ("custom_llm_provider", "route"), [("openai", f"{API_BASE}/v1/fine_tuning/job
tests/unit/fine_tuning/test_main.py:None
Routetest_create_simple_string_input
pytest.mark.parametrize( ("model", "api_key", "url", "expected_body", "response_body", "expected_respo
tests/unit/interactions/test_main.py:None
Routetest_create_simple_string_input_for_google_and_responses
pytest.mark.parametrize( ("model", "api_key", "url", "response_body", "expected_body"), [ (
tests/unit/interactions/test_main.py:None
Routetest_create_stores_caller_token
patch("litellm.proxy.proxy_server.prisma_client")
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_create_streaming
pytest.mark.parametrize( ("model", "api_key", "url", "expected_body", "sse_body", "expected_chunks"),
tests/unit/interactions/test_main.py:None
Routetest_create_team_member_add_team_admin_user_api_key_auth
pytest.mark.parametrize("team_route", ["/team/member_add", "/team/member_delete"])
tests/unit/proxy/test_proxy_server.py:None
Routetest_create_user_success
patch("requests.post")
tests/unit/proxy/client/test_users.py:None
Routetest_create_user_unauthorized
patch("requests.post")
tests/unit/proxy/client/test_users.py:None
Routetest_create_with_api_version_reaches_the_provider_and_only_azure_gets_it
pytest.mark.parametrize( ("custom_llm_provider", "api_base", "route", "sent_api_version"), [ (
tests/unit/fine_tuning/test_main.py:None
Routetest_create_with_drop_params_drops_agent_config_gemini_cannot_take
pytest.mark.parametrize( ("target", "agent_config", "expected_target"), [ pytest.p
tests/unit/interactions/test_main.py:None
Routetest_create_with_system_instruction
pytest.mark.parametrize( ("model", "api_key", "url", "expected_body", "response_body"), [
tests/unit/interactions/test_main.py:None
Routetest_create_with_system_instruction_for_google_and_responses
pytest.mark.parametrize( ("model", "api_key", "url", "response_body", "expected_body"), [ (
tests/unit/interactions/test_main.py:None
Routetest_created_budget_appears_in_budget_list
pytest.mark.covers("mgmt.budget.list.happy_path")
tests/e2e/management/test_budget_customer_user_org_e2e.py:None
Routetest_created_key_appears_in_key_list_inventory
meta( Subject( domain=Domain.MANAGEMENT, route=Route.KEY_MANAGEMENT, )
tests/e2e/management/test_management_e2e.py:None
Routetest_created_server_is_listed_with_every_field
pytest.mark.skip( reason=( "product gap: GET /v1/mcp/server builds each row from the in-me
tests/e2e/management/test_mcp_lifecycle_e2e.py:None
Routetest_created_team_appears_in_team_list
meta( Subject( domain=Domain.MANAGEMENT, route=Route.TEAM_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_created_users_appear_in_user_list
meta( Subject( domain=Domain.MANAGEMENT, route=Route.USER_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_creating_a_key_from_the_dashboard_persists_and_works
meta( Subject( domain=Domain.MANAGEMENT, route=Route.KEY_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_credential_and_env_var_resolution_cells
pytest.mark.parametrize( "operation,source,caller", [ ("byok_store", "db_runtime",
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:None
Routetest_credential_backed_messages
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES,
tests/e2e/llm_translation/test_credential_messages_e2e.py:None
Routetest_credential_write_is_not_undone_by_an_in_flight_config_reload
pytest.mark.parametrize("write", ("create", "update", "delete"))
tests/integration/management/test_credential_writes_survive_reload.py:None
Routetest_cross_user_managed_id_denied_owner_allowed
meta( Subject( domain=Domain.PROXY_AUTH, route=Route.FILES, providers=(Provider.OP
tests/e2e/batches/test_managed_files_enforcement_e2e.py:None
Routetest_cursor_body_keeps_client_and_key_tags_and_enforces_the_client_tag_budget
pytest.mark.parametrize( ("body_shape", "metadata_as_json_string"), (("messages", False), ("input", False)
tests/integration/providers/test_cursor_responses_wire.py:None
Routetest_cursor_chat_completions_route
patch("litellm.proxy.proxy_server.llm_router")
tests/unit/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_cursor_keeps_remaining_requests_once_during_insertions_and_deletions
pytest.mark.parametrize("delete_before_cursor", [False, True])
tests/integration/spend/test_prompt_caching_requests_pagination.py:None
Routetest_cursor_route_picks_the_metadata_field_by_body_shape
pytest.mark.parametrize( "body, expected", [ ({"messages": [{"role": "user", "cont
tests/unit/proxy/test_litellm_pre_call_utils.py:None
Routetest_cursor_route_writes_proxy_fields_only_to_the_field_its_body_shape_picks
pytest.mark.parametrize( "prompt, proxy_field, client_field", [ ({"input": "hi"}, "litellm_met
tests/unit/proxy/test_common_request_processing.py:None
Routetest_custom_code_flag_passes_content_through_and_records_flagged_entry
pytest.mark.parametrize("input_type", ["request", "response"])
tests/unit/proxy/guardrails/test_custom_code_security.py:None
Routetest_custom_code_guardrail
router.post( "/guardrails/test_custom_code", tags=["Guardrails"], response_model=TestCustomCodeGua
litellm/proxy/guardrails/guardrail_endpoints.py:None
Routetest_custom_dimension_changes_only_matching_requests
pytest.mark.parametrize( "matchers,prompt", [ pytest.param( {"keyw
tests/unit/router_strategy/test_complexity_router.py:None
Routetest_custom_dimension_invalid_configuration_rejected
pytest.mark.parametrize( "dimension_overrides,config_overrides", [ pytest.param({"
tests/unit/router_strategy/test_complexity_router.py:None
Routetest_custom_firerouter_id_accepts_the_same_tool_choice_and_reasoning_params_as_firerouter
pytest.mark.parametrize( "router", [ "firerouter/opus", "firerouter/auto", "fi
tests/unit/llms/fireworks_ai/chat/test_fireworks_ai_chat_transformation.py:None
Routetest_custom_header_overwrites_default
patch(f"{TRANSFORM_MODULE}.get_access_token", return_value="token")
tests/unit/llms/gigachat/embedding/test_gigachat_embedding_transformation.py:None
Routetest_custom_input_length_label_is_scoped_to_target_histograms
pytest.mark.parametrize( "metadata", ( None, {}, {"input_sequence_length": Non
tests/unit/integrations/test_prometheus_input_sequence_length_label.py:None
Routetest_custom_key_policy_sees_the_routes_a_member_key_is_saved_with
pytest.mark.parametrize( "default_key_generate_params", [None, {"allowed_routes": ["/chat/completions"
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:None
Routetest_custom_logger_failure_handler
mock_patch_acompletion()
tests/unit/proxy/test_proxy_server.py:None
Routetest_custom_logger_redacts_prompt_and_embedding_input
pytest.mark.parametrize( ("route", "field", "model"), [("/v1/completions", "prompt", "redaction-text")
tests/integration/observability/test_custom_logger_redaction.py:None
Routetest_custom_openapi
patch( "litellm.proxy.proxy_server.get_openapi_schema", return_value={ "paths": {
tests/unit/proxy/test_proxy_utils.py:None
Routetest_custom_price_is_reported_and_charged
pytest.mark.covers("quota_management.spend_tracking.custom_price.matches_input_rates")
tests/integration/pricing/test_configured_prices.py:None
Routetest_custom_pricing_is_billed_at_configured_rate
meta( Subject( domain=Domain.COST_MAP, route=Route.SPEND_REPORTING,
tests/e2e/llm_translation/test_custom_pricing_e2e.py:None
Routetest_custom_pricing_is_isolated_from_sibling_deployment
meta( Subject( domain=Domain.COST_MAP, route=Route.MODEL_MANAGEMENT, )
tests/e2e/llm_translation/test_custom_pricing_e2e.py:None
Routetest_custom_span_name
patch("litellm.integrations.braintrust_logging.HTTPHandler")
tests/unit/integrations/test_braintrust_span_name.py:None
Routetest_custom_standard_rates_bill_served_ultrafast_tier_at_the_catalog_tier_rate
pytest.mark.parametrize( ("service_tier", "input_field", "output_field"), ( ("ultrafast", "inp
tests/integration/pricing/test_service_tier_pricing.py:None
Routetest_custom_token_pricing_bills_cached_decisions_input_tokens_once
pytest.mark.parametrize( "response", ( DecisionsResponse( model="jev-latest",
tests/unit/decisions/test_main.py:None
Routetest_customer_create_persists_to_info
meta( Subject( domain=Domain.MANAGEMENT, route=Route.CUSTOMER_MANAGEMENT,
tests/e2e/management/test_management_e2e.py:None
Routetest_customer_new_budget_resets_on_the_same_schedule_as_budget_new
pytest.mark.parametrize("budget_duration", ["1mo", "30d", "7d", "1d"])
tests/integration/management/test_customer_budget_reset.py:None
Routetest_cyberark_connection
router.post( "/config_overrides/cyberark/test_connection", tags=["Config Overrides"], dependencies
litellm/proxy/management_endpoints/config_override_endpoints.py:None
Routetest_d5_request_body_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_daily_activity_date_range
pytest.mark.parametrize("route", _DAILY_ROUTES)
tests/integration/compatibility/test_status_code_followups_requests.py:None
Routetest_daily_projection_matches_legacy_writer
pytest.mark.parametrize("origin", [None, "auto_router", "billed_retry"])
tests/unit/accounting/test_projection.py:None
Routetest_daily_spend_batch_cancelled_while_postgres_is_committing_it_is_written_exactly_once
pytest.mark.parametrize( ("cancel_timeout_seconds", "commit_fails_once"), [ pytest.param(60, F
tests/integration/spend/test_shutdown_flush.py:None
Routetest_dashboard_lists_not_asking_for_allowlist_names_offer_no_typesafe_models
pytest.mark.parametrize( ("scope", "return_wildcard_routes", "only_model_access_groups"), [ py
tests/unit/proxy/proxy_server/test_routes_models.py:None
Routetest_data_line_that_is_not_a_json_object_is_skipped
pytest.mark.parametrize( "content_events", [ [ 'event: content_blo
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:None
Routetest_data_url_clips_reach_clef_omni_on_every_route_and_are_billed
pytest.mark.parametrize("route", _ROUTES)
tests/integration/providers/test_cloudflare_clef_omni_media_wire.py:None
Routetest_database_guardrail_load_keeps_pre_call_blocking
pytest.mark.parametrize( ("row_id", "scope"), ( pytest.param("G4", "output", id="G4-database-i
tests/integration/observability/test_logging_only_scope_config.py:None
Routetest_database_server_detail_intersection_controls
pytest.mark.parametrize( "case_name,key_server_ids,team_server_ids,org_server_ids", [
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:None
Routetest_database_server_detail_obeys_authz_intersection
pytest.mark.parametrize( "case_name,key_server_ids,team_server_ids,org_server_ids", [
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:None
Routetest_database_url_construction_with_special_characters
patch.dict(os.environ, {}, clear=True)
tests/unit/proxy/test_proxy_cli.py:None
Routetest_databricks_non_claude_plain_text_content_reaches_upstream_as_string
pytest.mark.parametrize( "case,endpoint,provider_model,request_body,expected_messages,responses_mode,upstr
tests/integration/providers/test_databricks_chat_wire.py:None
Routetest_datadog_api_key_reaches_only_its_own_header
pytest.mark.timeout(240) # full S1/S2 walk: every table and ~400 GET routes as three callers
tests/integration/security/test_datadog_sink.py:None
Routetest_dated_ga_api_version_sends_response_lifecycle_calls_to_the_unset_api_version_route
pytest.mark.parametrize( ("operation", "path_suffix"), [("get", ""), ("delete", ""), ("cancel", "/canc
tests/unit/llms/azure/response/test_azure_transformation.py:None
Routetest_db_connection_extra_params_forwarded_to_url
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_db_content_policy_fallbacks_reach_the_router
pytest.mark.parametrize("stored_target", ["backup", {"model": "backup"}])
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:None
Routetest_db_registered_pass_through_route_bare_path_convention
pytest.mark.parametrize( "server_root_path,route_type,incoming_route,should_match", [ ("", "su
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:None
Routetest_db_timeout_settings_are_forwarded_to_pool_timeout
patch("subprocess.run")
tests/unit/proxy/test_proxy_cli.py:None
Routetest_decision_guardrail_resolves_the_callers_team_model
pytest.mark.parametrize("mode", ["pre_call", "post_call", "during_call"])
tests/integration/providers/test_decision_model_guardrail.py:None
Routetest_decision_hosts_preserve_drex_model_routing_credentials_and_returned_model_pricing
pytest.mark.parametrize( ("provider", "model", "url", "key_env"), ( ("nace", "drex-test-alias"
tests/unit/decisions/test_main.py:None
Routetest_decision_provider_changes_cannot_reuse_a_stored_key
pytest.mark.parametrize("endpoint", ["patch", "legacy"])
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:None
Routetest_decisions_passthrough_spend_log_is_priced_like_native_decisions
pytest.mark.parametrize( ("url_route", "requested_model"), [ pytest.param(DECISION
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_decisions_reads_and_sub_routes_are_not_billed
pytest.mark.parametrize( ("method", "url_route"), [ pytest.param("GET", DECISIONS_
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:None
Routetest_declared_azure_deployment_fails_like_its_prefixed_twin
pytest.mark.parametrize( ("route", "known_model"), ((_IMAGES, "dall-e-3"), (_SPEECH, "tts-1"), (_TRANSCRIP
tests/integration/routing/test_declared_provider_bare_model_routes.py:None
Routetest_decryptable_reasoning_keeps_encrypted_reasoning_only_when_the_router_sends_it_to_a_deployment_that_decrypts_it
pytest.mark.parametrize( "affinity, target_ids, reasoning_stays", [ pytest.param({}, _BOTH_ORG
tests/unit/test_router/test_router_entry_points.py:None
Routetest_deepgram_listen_callback_params
pytest.mark.parametrize( ("query_string", "expected"), [ pytest.param("model=nova-3&encoding=l
tests/unit/llms/deepgram/test_deepgram_common_utils.py:None
Routetest_deepgram_listen_defaults_to_nova_3_when_no_model_is_named
pytest.mark.parametrize( ("query", "expected_target"), [ ("", "wss://api.deepgram.com/v1/liste
tests/unit/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.py:None
Routetest_deepgram_listen_honours_server_configured_api_base
pytest.mark.parametrize( ("api_base", "expected_target"), [ ("https://api.eu.deepgram.com/v1/"
tests/unit/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.py:None
Routetest_deepgram_listen_rejects_callback_delivery_that_would_go_unbilled
pytest.mark.parametrize( "query", [ pytest.param("model=nova-3&callback=https%3A%2F%2Fsink.exa
tests/unit/proxy/pass_through_endpoints/test_deepgram_ws_passthrough_routes.py:None
← previousnext →2,301–2,400 of 5,595, ranked by callers