MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints5,595 in github.com/BerriAI/litellm

Routetest_find_all
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.decrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_find_by_name
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.decrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_find_by_team_id
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.decrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_find_request_attachments
pytest.mark.parametrize( "data, call_type, images, unscannable", [ pytest.param(_chat(TEXT), C
tests/unit/llms/bedrock/test_guardrail_attachments.py:None
Routetest_find_unblocked
patch( "litellm.proxy.common_utils.encrypt_decrypt_utils.decrypt_value_helper", side_effect=la
tests/unit/repositories/test_repositories.py:None
Routetest_finished_tool_call_the_rewrite_cannot_rebuild_gets_the_upstream_error_alone
pytest.mark.parametrize( "tool_input", ['{"command" "ls"', "3", "[1]", "[" * 200_000 + "]" * 2
tests/unit/proxy/guardrails/guardrail_hooks/test_tool_permission.py:None
Routetest_fireworks_router_forwards_tool_choice_and_reasoning_and_bills_the_served_open_model
pytest.mark.parametrize("router", _ROUTERS_ACCEPTING_TOOL_CHOICE_AND_REASONING)
tests/integration/providers/test_fireworks_ai_router_slug_wire.py:None
Routetest_fireworks_router_slug_chat_sends_router_resource_not_models_path
pytest.mark.covers("other.provider_wire.fireworks_ai.router_slug_chat_sends_router_resource_name")
tests/integration/providers/test_fireworks_ai_router_slug_wire.py:None
Routetest_fireworks_router_slug_text_completion_sends_router_resource_not_models_path
pytest.mark.covers("other.provider_wire.fireworks_ai.router_slug_text_completion_sends_router_resource_name")
tests/integration/providers/test_fireworks_ai_router_slug_wire.py:None
Routetest_first_class_video_fields_are_rejected_or_dropped
pytest.mark.parametrize("field", ["frame_images", "input_references"])
tests/unit/llms/dashscope/test_dashscope_video_transformation.py:None
Routetest_first_class_video_fields_are_rejected_or_dropped
pytest.mark.parametrize("field", ["frame_images", "input_references"])
tests/unit/llms/gemini/videos/test_gemini_video_transformation.py:None
Routetest_first_class_video_fields_are_rejected_or_dropped
pytest.mark.parametrize("field", ["frame_images", "input_references"])
tests/unit/llms/runwayml/videos/test_runway_video_transformation.py:None
Routetest_first_class_video_fields_are_rejected_or_dropped
pytest.mark.parametrize("field", ["frame_images", "input_references"])
tests/unit/llms/fal_ai/videos/test_fal_ai_video_transformation.py:None
Routetest_first_class_video_fields_are_rejected_or_dropped
pytest.mark.parametrize("field", ["frame_images", "input_references"])
tests/unit/llms/vertex_ai/videos/test_vertex_video_transformation.py:None
Routetest_first_class_video_fields_are_rejected_or_dropped
pytest.mark.parametrize("field", ["frame_images", "input_references"])
tests/unit/llms/openai/videos/test_openai_video_transformation.py:None
Routetest_first_input_without_an_applied_session_update_starts_the_prompt_once
pytest.mark.parametrize( "client_event", [ {"type": "conversation.item.create", "i
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_transformation.py:None
Routetest_first_matching_rule_respects_every_constraint
pytest.mark.parametrize( ("context", "expected"), ( ( RouteContext(Route.RESPONSES
tests/unit/rust_bridge/test_catalog.py:None
Routetest_fixed_budget_window_requires_duration_and_reset_boundary
pytest.mark.parametrize("window", [{}, {"budget_duration": "1d"}, {"reset_at": "2026-11-03T00:00:00Z"}])
tests/unit/proxy/spend_tracking/test_budget_reservation.py:None
Routetest_flag_does_not_leak_into_kwargs
patch.object( import_module("litellm.responses.main").litellm_completion_transformation_handler, "resp
tests/unit/responses/test_responses_api_bridge_flag.py:None
Routetest_flag_true_reasoning_content_after_latest_user_turn_still_scans_that_turn
pytest.mark.parametrize( "tail", [ pytest.param((), id="trailing_reasoning"),
tests/unit/proxy/guardrails/guardrail_hooks/test_panw_prisma_airs.py:None
Routetest_flag_true_responses_scans_latest_user_only
pytest.mark.parametrize( ("history_tail", "instructions"), [ pytest.param((), None
tests/unit/proxy/guardrails/guardrail_hooks/test_panw_prisma_airs.py:None
Routetest_flagged_model_keeps_prompt_cache_across_system_reminder
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_mid_conversation_system_e2e.py:None
Routetest_flagged_model_keeps_prompt_cache_across_system_reminder
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES,
tests/e2e/llm_translation/test_messages_mid_conversation_system_e2e.py:None
Routetest_flagged_model_keeps_prompt_cache_across_system_reminder
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.MESSAGES,
tests/e2e/llm_translation/test_messages_mid_conversation_system_native_providers_e2e.py:None
Routetest_flat_input_price_keeps_other_token_thresholds
pytest.mark.parametrize( "field", ("output_cost_per_token", "cache_read_input_token_cost", "cache_creation
tests/unit/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py:None
Routetest_float_max_tokens_reaches_session_start_as_an_integer
pytest.mark.parametrize("max_output_tokens", [4096.0, 4096.5])
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_transformation.py:None
Routetest_follow_up_reads_the_stored_chain_only_from_the_provider_of_the_request
pytest.mark.parametrize( ("previous_response_id", "lookups", "sent_instructions"), [ (_litellm
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py:None
Routetest_follow_ups_hide_only_an_agents_own_instructions
pytest.mark.parametrize( "follow_up,method,path", [ (litellm.aget_responses, "GET", "/openai/v
tests/unit/llms/azure_ai/responses/test_azure_ai_responses_transformation.py:None
Routetest_force_base64_converts_https_url
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_forced_tool_choice_downgraded_to_auto_on_fable_5_1_converse
pytest.mark.parametrize( "tool_choice", ["required", {"type": "function", "function": {"name": "get_we
tests/unit/llms/bedrock/chat/test_converse_transformation.py:None
Routetest_forced_tool_choice_downgraded_to_auto_on_fable_5_1_with_drop_params
pytest.mark.parametrize( "tool_choice", ["required", {"type": "required"}, {"type": "function", "funct
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_forced_tool_choice_raises_clean_error_on_fable_5_1_converse
pytest.mark.parametrize( "tool_choice", ["required", {"type": "function", "function": {"name": "get_we
tests/unit/llms/bedrock/chat/test_converse_transformation.py:None
Routetest_forced_tool_choice_raises_clean_error_on_fable_5_1_without_drop_params
pytest.mark.parametrize( "tool_choice", ["required", {"type": "required"}, {"type": "function", "funct
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:None
Routetest_forcing_a_kept_tool_is_preserved
pytest.mark.parametrize("tool_choice", [FORCE_FUNCTION, "get_weather"])
tests/unit/llms/oci/chat/test_oci_chat_transformation.py:None
Routetest_foreign_encoded_file_id_routes_by_file_model
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.BATCHES,
tests/e2e/batches/test_batches_e2e.py:None
Routetest_foreign_index_routes_cannot_displace_available_tools
requires_semantic_router
tests/unit/proxy/mcp_server/test_semantic_tool_filter.py:None
Routetest_forget_removes_only_selected_saved_setups_even_after_disconnect
pytest.mark.parametrize( "forget, forgotten", [ (("unconfigure", "--forget", "clau
tests/unit/proxy/client/cli/test_configure_commands.py:None
Routetest_forget_without_receipt_preserves_agent_settings_and_reports_unknown_connection
pytest.mark.parametrize("target", ["claude", "codex"])
tests/unit/proxy/client/cli/test_configure_commands.py:None
Routetest_format_cost_per_1k_tokens
pytest.mark.parametrize( "input_val,expected", [ (None, ""), (0, "$0.0000"), (
tests/unit/proxy/client/cli/test_models_commands.py:None
Routetest_format_iso_datetime_str
pytest.mark.parametrize( "input_str,expected", [ (None, ""), ("", ""), ("2024-
tests/unit/proxy/client/cli/test_models_commands.py:None
Routetest_format_timestamp
pytest.mark.parametrize( "input_val,expected", [ (None, ""), (1699848889, "2023-11-13
tests/unit/proxy/client/cli/test_models_commands.py:None
Routetest_forwarded_provider_key_on_files_and_batches_follow_up_calls_replaces_the_team_deployment_key
pytest.mark.parametrize(("method", "path", "route"), FOLLOW_UP_CALLS, ids=FOLLOW_UP_CALL_IDS)
tests/integration/authorization/test_rag_team_provider_credentials.py:None
Routetest_frame_guard_keeps_the_admitted_guardrail_list_when_a_frame_tries_to_replace_it
pytest.mark.parametrize( "frame", [ {"type": "response.create", "input": "forbidde
tests/unit/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_frame_guard_reads_the_key_s_team_metadata_when_the_team_cannot_be_loaded
pytest.mark.parametrize( ("modify_guardrails", "picked_inputs"), [(True, ["hi"]), (False, [])]
tests/unit/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_frame_guard_refuses_and_bills_a_frame_whose_guardrail_selection_is_malformed
pytest.mark.parametrize( ("selection", "message"), [ ( {"guardrail
tests/unit/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_frame_guard_refuses_guardrail_and_policy_picks_from_a_team_without_permission
pytest.mark.parametrize( "frame", [ {"type": "response.create", "input": "hi", "gu
tests/unit/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_frame_guard_rejects_and_bills_a_guarded_field_beside_a_nested_response
pytest.mark.parametrize("field", ["input", "instructions", "tools", "tool_choice", "extra_body"])
tests/unit/proxy/response_api_endpoints/test_endpoints.py:None
Routetest_framed_estimate_counts_google_contents_like_the_same_conversation_sent_as_messages
pytest.mark.parametrize( "contents", [ pytest.param([{"role": "user", "parts": [{"text": "What
tests/unit/proxy/test_proxy_token_counter.py:None
Routetest_framework_logging_only_does_not_allow_other_unsupported_modes
pytest.mark.parametrize( "event_hook", ( GuardrailEventHooks.post_call, "post_call",
tests/unit/integrations/test_custom_guardrail.py:None
Routetest_full_ui_payload_with_empty_premium_fields_skips_premium_check
patch( "litellm.proxy.management_endpoints.common_utils.premium_user_check", side_effect=Excep
tests/unit/proxy/management_endpoints/test_common_utils.py:None
Routetest_function_callback_fires_the_expected_number_of_times
pytest.mark.parametrize( "event,asynchronous,dynamic,expected", ( pytest.param("input", False,
tests/test_litellm_rust/responses/test_callbacks.py:None
Routetest_function_callback_fires_the_expected_number_of_times
pytest.mark.parametrize( "event,asynchronous,dynamic,expected", ( pytest.param("input", False,
tests/test_litellm_rust/messages/test_callbacks.py:None
Routetest_function_tool_shapes_map_to_vertex_declarations
pytest.mark.parametrize( "tool", ( { "name": "lookup", "description":
tests/unit/llms/vertex_ai/count_tokens/test_context.py:None
Routetest_function_tools_become_anthropic_tools
pytest.mark.parametrize( ("url", "body"), [ ( "/v1/chat/completion
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:None
Routetest_galileo_error_span_input_carries_the_request_functions_and_tools
pytest.mark.parametrize( ("optional_params", "expected_input"), [ ( {"functions":
tests/unit/integrations/test_galileo.py:None
Routetest_galileo_output_str_of_a_chat_response_whose_message_is_not_a_litellm_message
pytest.mark.parametrize( ("message", "expected_output"), [ ( ThirdPartyMessage(jso
tests/unit/integrations/test_galileo.py:None
Routetest_galileo_realtime_output_serializes_events_that_json_cannot_encode
pytest.mark.parametrize( ("event", "expected_output"), [ (RealtimeEvent(type="response.done"),
tests/unit/integrations/test_galileo.py:None
Routetest_gated_capabilities_of
pytest.mark.parametrize( "litellm_params,expected_key", [ ({"model": "auto_router/complexity_r
tests/unit/router_strategy/test_auto_router_model_naming.py:None
Routetest_gateway_group_is_looked_up_without_printing_to_stdout
pytest.mark.parametrize( ("group", "declared_limits"), [ (MODEL, {"contextWindow": get_model_i
tests/unit/llms/pi/harness/test_transformation.py:None
Routetest_gateway_model_discovery_preserves_route_exemptions
pytest.mark.parametrize("route", ["/models", "/v1/models", "/claude_code_gateway/v1/models"])
tests/unit/proxy/anthropic_endpoints/test_gateway_endpoints.py:None
Routetest_gateway_session_bearer_of_a_team_member_is_served_the_team_toolset_on_its_route
pytest.mark.parametrize("route", ["/toolset/{name}/mcp", "/{name}/mcp"])
tests/integration/mcp/test_mcp_oauth_flows.py:None
Routetest_gcs_download_success
patch("litellm.proxy.types_utils.utils._download_gcs_file_wrapper")
tests/unit/proxy/test_custom_logger_s3_gcs.py:None
Routetest_gemini
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_tool_round_trip_e2e.py:None
Routetest_gemini_3_thinking_without_a_dropped_budget_does_not_warn
pytest.mark.parametrize( "thinking", ({"type": "enabled"}, {"type": "enabled", "budget_tokens": 0}, {"
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_gemini_3x_web_search_billed_per_query
pytest.mark.parametrize( "model", [ "vertex_ai/gemini-3.1-flash-lite", # resolves directly vi
tests/unit/litellm_core_utils/llm_cost_calc/test_tool_call_cost_tracking.py:None
Routetest_gemini_audio_and_cached_audio_use_service_tier_rates
pytest.mark.parametrize( ("service_tier", "audio_rate_key", "cache_audio_rate_key"), ( pytest.
tests/unit/litellm_core_utils/llm_cost_calc/test_utils.py:None
Routetest_gemini_chat_returns_content_and_logs_cost
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.CHAT_COMPLETIONS,
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:None
Routetest_gemini_drops_a_hosted_mcp_tool_under_drop_params_and_keeps_the_function_tool
pytest.mark.parametrize(("config_class", "route"), _GEMINI_ROUTES)
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_gemini_embedding_sends_batch_contents_and_dimensionality
pytest.mark.parametrize( ("embedding_input", "expected_inputs"), ((list(_GEMINI_INPUTS), _GEMINI_INPUT
tests/integration/providers/test_vertex_embedding_wire.py:None
Routetest_gemini_file_upload
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.FILES, p
tests/e2e/batches/test_batches_e2e.py:None
Routetest_gemini_image_edit_answers_500_when_a_provider_token_count_is_not_a_number
pytest.mark.parametrize( ("count", "detail"), ( pytest.param( "ten", "
tests/integration/providers/test_gemini_image_config_and_usage_wire.py:None
Routetest_gemini_image_edit_reports_the_provider_usage_metadata_as_image_usage
pytest.mark.parametrize( ("usage", "include_usage", "expected"), ( pytest.param(_FULL_USAGE, T
tests/integration/providers/test_gemini_image_config_and_usage_wire.py:None
Routetest_gemini_keeps_tool_choice_none_for_legacy_functions_after_dropping_every_hosted_mcp_tool
pytest.mark.parametrize(("config_class", "route"), _GEMINI_ROUTES)
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_gemini_manual_vad_wraps_each_audio_turn_in_activity_start_and_end
pytest.mark.parametrize("turn_end", ["input_audio_buffer.commit", "response.create"])
tests/unit/llms/gemini/realtime/test_gemini_realtime_transformation.py:None
Routetest_gemini_messages_count_tokens_applies_the_context_edits_inference_applies
pytest.mark.parametrize( ( "requested_model", "additional_drop_params", "router_ad
tests/unit/proxy/test_proxy_token_counter.py:None
Routetest_gemini_messages_count_tokens_counts_the_unedited_body_when_drop_params_drops_an_invalid_edit
pytest.mark.parametrize( ("deployment_params", "router_defaults", "request_options", "litellm_drop_params"
tests/unit/proxy/test_proxy_token_counter.py:None
Routetest_gemini_messages_count_tokens_reads_the_opt_out_of_the_completion_model_inference_sends_to
pytest.mark.parametrize( ("requested_model", "completion_model", "expected_tool_outputs_sent"), (("gem
tests/unit/proxy/test_proxy_token_counter.py:None
Routetest_gemini_messages_count_tokens_reads_the_opt_out_of_the_deployment_the_router_falls_back_to
pytest.mark.parametrize( ("requested_model", "make_router", "request_options", "expected_tool_outputs_sent
tests/unit/proxy/test_proxy_token_counter.py:None
Routetest_gemini_non_integer_thinking_budget_drop_warns_once
pytest.mark.parametrize("budget", ("high", 1024.5, {"tokens": 1024}))
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_gemini_null_turn_detection_makes_the_client_mark_each_turn
pytest.mark.parametrize( ("session", "expected_keys"), [ ({"turn_detection": None}, [["activit
tests/unit/llms/gemini/realtime/test_gemini_realtime_transformation.py:None
Routetest_gemini_passthrough_handler_streaming
patch("litellm.completion_cost")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:None
Routetest_gemini_passthrough_handler_success
patch("litellm.completion_cost")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:None
Routetest_gemini_passthrough_nonstreaming_logs_cost
meta( Subject( domain=Domain.PASSTHROUGH, route=Route.PASSTHROUGH, providers=(Prov
tests/e2e/llm_translation/test_passthrough_e2e.py:None
Routetest_gemini_passthrough_returns_the_same_header_contract_as_the_managed_route
meta( Subject( domain=Domain.PASSTHROUGH, route=Route.PASSTHROUGH, providers=(Prov
tests/e2e/llm_translation/test_passthrough_e2e.py:None
Routetest_gemini_passthrough_spend_matches_whether_or_not_the_call_streams
pytest.mark.parametrize( "model_info, input_rate, output_rate", [ (None, _LIST_INPUT_RATE, _LI
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:None
Routetest_gemini_passthrough_streaming_logs_cost
meta( Subject( domain=Domain.PASSTHROUGH, route=Route.PASSTHROUGH, providers=(Prov
tests/e2e/llm_translation/test_passthrough_e2e.py:None
Routetest_gemini_passthrough_tool_call_logs_cost
meta( Subject( domain=Domain.PASSTHROUGH, route=Route.PASSTHROUGH, providers=(Prov
tests/e2e/llm_translation/test_passthrough_e2e.py:None
Routetest_gemini_pro_httpx_custom_api_base
pytest.mark.parametrize( ("model", "endpoint", "response_body"), [ ("gemini-2.5-flash-lite", "
tests/unit/llms/vertex_ai/test_vertex.py:None
Routetest_gemini_sends_no_tools_when_drop_params_drops_every_hosted_mcp_tool
pytest.mark.parametrize(("config_class", "route"), _GEMINI_ROUTES)
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_gemini_session_update_accepts_a_single_string_output_modality
pytest.mark.parametrize("output_modalities", ["text", ["text"]])
tests/unit/llms/gemini/realtime/test_gemini_realtime_transformation.py:None
Routetest_gemini_session_update_drops_modalities_live_cannot_produce
pytest.mark.parametrize( ("output_modalities", "expected"), [(["video", "text"], ["TEXT"]), (["video"]
tests/unit/llms/gemini/realtime/test_gemini_realtime_transformation.py:None
Routetest_gemini_tool_mapping_drops_every_integer_enum_when_the_request_exceeds_the_enum_budget
pytest.mark.parametrize( ("value_counts", "integer_enums_sent"), [ ((_TEN_DIGIT_VALUES_IN_BUDG
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:None
Routetest_gemini_tool_media_preserves_inline_payload_precedence_and_mime
pytest.mark.parametrize( ("content", "mime_type"), [ ({"type": "input_audio", "input_audio": {
tests/unit/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_factory.py:None
Routetest_generate_and_call_with_valid_key
pytest.mark.parametrize( "api_route", [ # chat_completion APIRoute(path="/engines/{mod
tests/unit/proxy/management_endpoints/test_key_generate_prisma.py:None
Routetest_generate_content_authenticates_google_key_spellings
pytest.mark.parametrize( "route,path", [ (":generateContent", "/models/gemini-2.5-flash:genera
tests/integration/providers/test_google_genai_native_wire.py:None
Routetest_generate_content_reaches_the_route_handler_chat_uses
pytest.mark.parametrize("route_name", tuple(_ROUTES))
tests/integration/providers/test_google_genai_vertex_routes_wire.py:None
Routetest_generate_content_rejects_key_without_model_access
pytest.mark.parametrize( "route", [":generateContent", ":streamGenerateContent?alt=sse"], ids=["ge
tests/integration/providers/test_google_genai_native_wire.py:None
Routetest_generate_content_returns_response_cost_header
meta( Subject( domain=Domain.LLM_TRANSLATION, route=Route.GOOGLE_GENAI,
tests/e2e/llm_translation/test_google_native_e2e.py:None
Routetest_generate_content_runs_custom_auth_once_and_is_served_as_its_caller
pytest.mark.parametrize("route_prefix", ["/vertex_ai", "/vertex-ai"])
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:None
Routetest_generate_forbidden_for_non_admin_key
meta(Subject(domain=Domain.PROXY_AUTH, route=Route.KEY_MANAGEMENT))
tests/e2e/management/test_key_management_e2e.py:None
← previousnext →2,701–2,800 of 5,595, ranked by callers