MCPcopy Create free account

hub / github.com/BerriAI/litellm / endpoints

Endpoints1,734 in github.com/BerriAI/litellm

Routetest_falls_back_to_default_when_no_metadata_or_env
patch.dict("os.environ", {}, clear=True)
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_falls_back_to_phoenix_env_when_no_metadata
patch.dict("os.environ", {"PHOENIX_PROJECT_NAME": "env-project"}, clear=False)
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_false_boolean_does_not_trigger_premium_check
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_false_boolean_still_updates_metadata
patch("litellm.proxy.management_endpoints.common_utils._premium_user_check")
tests/test_litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_fetch_auth_token_failure
patch("litellm.integrations.agentops.agentops.AgentOps._fetch_auth_token")
tests/test_litellm/integrations/test_agentops.py:None
Routetest_fetch_auth_token_success
patch("litellm.integrations.agentops.agentops.AgentOps._fetch_auth_token")
tests/test_litellm/integrations/test_agentops.py:None
Routetest_file_cleanup
patch("litellm.proxy.common_utils.load_config_utils.download_python_file_from_s3")
tests/proxy_unit_tests/test_custom_logger_s3_gcs.py:None
Routetest_find_all
patch( "litellm.repositories.model_repository.decrypt_value_helper", side_effect=lambda v, **k
tests/test_litellm/repositories/test_repositories.py:None
Routetest_find_by_name
patch( "litellm.repositories.model_repository.decrypt_value_helper", side_effect=lambda v, **k
tests/test_litellm/repositories/test_repositories.py:None
Routetest_find_by_team_id
patch( "litellm.repositories.model_repository.decrypt_value_helper", side_effect=lambda value,
tests/test_litellm/repositories/test_repositories.py:None
Routetest_find_unblocked
patch( "litellm.repositories.model_repository.decrypt_value_helper", side_effect=lambda v, **k
tests/test_litellm/repositories/test_repositories.py:None
Routetest_flag_does_not_leak_into_kwargs
patch( "litellm.responses.main.litellm_completion_transformation_handler.response_api_handler" )
tests/test_litellm/responses/test_responses_api_bridge_flag.py:None
Routetest_force_base64_converts_https_url
patch("litellm.litellm_core_utils.prompt_templates.factory.convert_url_to_base64")
tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/test_vertex_ai_anthropic_image_url_handling.py:None
Routetest_format_cost_per_1k_tokens
pytest.mark.parametrize( "input_val,expected", [ (None, ""), (0, "$0.0000"), (
tests/test_litellm/proxy/client/cli/test_models_commands.py:None
Routetest_format_iso_datetime_str
pytest.mark.parametrize( "input_str,expected", [ (None, ""), ("", ""), ("2024-
tests/test_litellm/proxy/client/cli/test_models_commands.py:None
Routetest_format_timestamp
pytest.mark.parametrize( "input_val,expected", [ (None, ""), (1699848889, "2023-11-13
tests/test_litellm/proxy/client/cli/test_models_commands.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=Exce
tests/litellm/proxy/management_endpoints/test_common_utils.py:None
Routetest_gcs_download_success
patch("litellm.proxy.types_utils.utils._download_gcs_file_wrapper")
tests/proxy_unit_tests/test_custom_logger_s3_gcs.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/test_litellm/litellm_core_utils/llm_cost_calc/test_tool_call_cost_tracking.py:None
Routetest_gemini_embeddings
pytest.mark.parametrize( "input", ["good morning from litellm", ["good morning from litellm"]] # )
tests/local_testing/test_embedding.py:None
Routetest_gemini_image_generation_config_validation
pytest.mark.skipif( not os.getenv("VERTEXAI_PROJECT"), reason="Vertex AI credentials not set",
tests/test_litellm/llms/vertex_ai/image_generation/test_vertex_ai_image_generation_transformation.py:None
Routetest_gemini_pass_through_endpoint
pytest.mark.skipif( not os.getenv("GEMINI_API_KEY") and not os.getenv("GOOGLE_API_KEY"), reason="Requi
tests/proxy_unit_tests/test_proxy_server.py:None
Routetest_gemini_passthrough_handler_streaming
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:None
Routetest_gemini_passthrough_handler_success
patch("litellm.completion_cost")
tests/test_litellm/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:None
Routetest_gemma_4_bedrock_mantle_model_metadata
pytest.mark.parametrize( "model_id,input_cost,output_cost,max_tokens", [ ("google.gemma-4-31b"
tests/test_litellm/llms/bedrock_mantle/test_bedrock_mantle_transformation.py:None
Routetest_generate_and_call_with_valid_key
pytest.mark.parametrize( "api_route", [ # chat_completion APIRoute(path="/engines/{mod
tests/proxy_unit_tests/test_key_generate_prisma.py:None
Routetest_generate_iam_token_api_key_priority_order
patch("litellm.llms.watsonx.common_utils.iam_token_cache")
tests/test_litellm/llms/watsonx/test_watsonx_common_utils.py:None
Routetest_generate_iam_token_no_api_key_raises_error
patch("litellm.llms.watsonx.common_utils.iam_token_cache")
tests/test_litellm/llms/watsonx/test_watsonx_common_utils.py:None
Routetest_generate_iam_token_uses_cache
patch("litellm.llms.watsonx.common_utils.iam_token_cache")
tests/test_litellm/llms/watsonx/test_watsonx_common_utils.py:None
Routetest_generate_iam_token_with_direct_api_key
patch("litellm.llms.watsonx.common_utils.iam_token_cache")
tests/test_litellm/llms/watsonx/test_watsonx_common_utils.py:None
Routetest_generate_iam_token_with_watsonx_zenapikey
patch("litellm.llms.watsonx.common_utils.iam_token_cache")
tests/test_litellm/llms/watsonx/test_watsonx_common_utils.py:None
Routetest_genuine_cancellation_is_not_replaced
patch("litellm.experimental_mcp_client.client.ClientSession")
tests/test_litellm/experimental_mcp_client/test_mcp_client.py:None
Routetest_get_admin_team_ids
pytest.mark.parametrize( "test_id, user_info, user_role, mock_teams, expected_teams, should_query_db",
tests/proxy_unit_tests/test_proxy_utils.py:None
Routetest_get_api_base_from_environment
patch("litellm.llms.watsonx.common_utils.get_secret_str")
tests/test_litellm/llms/watsonx/passthrough/test_watsonx_passthrough_transformation.py:None
Routetest_get_api_base_with_explicit_value
patch("litellm.llms.watsonx.common_utils.get_secret_str")
tests/test_litellm/llms/watsonx/passthrough/test_watsonx_passthrough_transformation.py:None
Routetest_get_api_key_from_environment
patch("litellm.llms.watsonx.common_utils.get_secret_str")
tests/test_litellm/llms/watsonx/passthrough/test_watsonx_passthrough_transformation.py:None
Routetest_get_api_key_with_explicit_value
patch("litellm.llms.watsonx.common_utils.get_secret_str")
tests/test_litellm/llms/watsonx/passthrough/test_watsonx_passthrough_transformation.py:None
Routetest_get_arize_phoenix_config_defaults_to_local
patch.dict("os.environ", {}, clear=True)
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_get_arize_phoenix_config_grpc
patch.dict( "os.environ", { "PHOENIX_API_KEY": "test_api_key", "PHOENI
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_get_arize_phoenix_config_grpc_no_api_key
patch.dict( "os.environ", { "PHOENIX_COLLECTOR_ENDPOINT": "http://localhost:4317",
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_get_arize_phoenix_config_http
patch.dict( "os.environ", { "PHOENIX_API_KEY": "test_api_key", "PHOENI
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_get_arize_phoenix_config_http_local
patch.dict( "os.environ", { "PHOENIX_API_KEY": "test_api_key", "PHOENI
tests/test_litellm/integrations/arize/test_arize_phoenix.py:None
Routetest_get_async_client_session_create_new
patch("aiohttp.ClientSession")
tests/test_litellm/llms/custom_httpx/test_aiohttp_handler.py:None
Routetest_get_azure_ad_token_from_username_password
patch("azure.identity.UsernamePasswordCredential")
tests/llm_translation/test_azure_openai.py:None
Routetest_get_azure_ad_token_provider_certificate_credential
patch.dict( os.environ, { "AZURE_CLIENT_ID": "test-client-id", "AZURE_
tests/test_litellm/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_get_azure_ad_token_provider_client_secret_credential
patch.dict( os.environ, { "AZURE_CLIENT_ID": "test-client-id", "AZURE_
tests/test_litellm/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_get_azure_ad_token_provider_default_azure_credential
patch.dict( os.environ, { "AZURE_CREDENTIAL": "DefaultAzureCredential", },
tests/test_litellm/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_get_azure_ad_token_provider_defaults_to_default_azure_credential
patch.dict(os.environ, {}, clear=True) # Clear all environment variables
tests/test_litellm/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_get_azure_ad_token_provider_managed_identity_credential
patch.dict( os.environ, { "AZURE_CLIENT_ID": "test-client-id", "AZURE_
tests/test_litellm/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_get_azure_ad_token_provider_password_protected_certificate_credential
patch.dict( os.environ, { "AZURE_CLIENT_ID": "test-client-id", "AZURE_
tests/test_litellm/secret_managers/test_get_azure_ad_token_provider.py:None
Routetest_get_complete_url
pytest.mark.parametrize( "model, expected_url", [ ( "meta-llama/Ll
tests/llm_translation/test_huggingface_chat_completion.py:None
Routetest_get_complete_url
patch( "litellm.llms.bedrock.chat.invoke_agent.transformation.convert_content_list_to_str" )
tests/test_litellm/llms/bedrock/invoke_agent/test_bedrock_agent_transformation.py:None
Routetest_get_complete_url
patch("litellm.llms.searchapi.search.transformation.get_secret_str")
tests/search_tests/test_searchapi_search.py:None
Routetest_get_complete_url_encodes_session_id
patch( "litellm.llms.bedrock.chat.invoke_agent.transformation.convert_content_list_to_str" )
tests/test_litellm/llms/bedrock/invoke_agent/test_bedrock_agent_transformation.py:None
Routetest_get_complete_url_from_environment
patch.dict(os.environ, {"RAGFLOW_API_BASE": "http://env-ragflow:9380"})
tests/test_litellm/llms/ragflow/chat/test_ragflow_chat_transformation.py:None
Routetest_get_complete_url_with_api_base
patch("litellm.llms.recraft.image_generation.transformation.get_secret_str")
tests/test_litellm/llms/recraft/image_generation/test_recraft_image_gen_transformation.py:None
Routetest_get_complete_url_with_default_base
patch("litellm.llms.recraft.image_generation.transformation.get_secret_str")
tests/test_litellm/llms/recraft/image_generation/test_recraft_image_gen_transformation.py:None
Routetest_get_complete_url_with_env_api_base
patch("litellm.llms.watsonx.common_utils.get_secret_str")
tests/test_litellm/llms/watsonx/passthrough/test_watsonx_passthrough_transformation.py:None
Routetest_get_complete_url_with_secret_base
patch("litellm.llms.recraft.image_generation.transformation.get_secret_str")
tests/test_litellm/llms/recraft/image_generation/test_recraft_image_gen_transformation.py:None
Routetest_get_credentials_propagates_ssl_verify
patch("boto3.client")
tests/test_litellm/test_ssl_verify_unit.py:None
Routetest_get_deployment_model_info_base_model_merge_priority
patch("litellm.model_cost", {})
tests/test_litellm/test_router.py:None
Routetest_get_end_user_object
pytest.mark.parametrize("customer_spend, customer_budget", [(0, 10), (10, 0)])
tests/proxy_unit_tests/test_auth_checks.py:None
Routetest_get_existing_run
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_get_file_contents_from_s3_no_temp_file_creation
patch("boto3.client")
tests/test_litellm/proxy/common_utils/test_load_config_utils.py:None
Routetest_get_interaction
pytest.mark.skip( reason="Get/Delete require valid interaction IDs from previous calls" )
tests/test_litellm/interactions/test_google_interactions_integration.py:None
Routetest_get_langfuse_flush_interval
patch.dict(os.environ, {}, clear=True) # Start with empty environment
tests/logging_callback_tests/test_langfuse_unit_tests.py:None
Routetest_get_levo_config_missing_api_key
patch.dict("os.environ", {}, clear=True)
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_get_levo_config_missing_collector_url
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_get_levo_config_missing_org_id
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", }, c
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_get_levo_config_missing_workspace_id
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_get_levo_config_with_all_required_vars
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_get_levo_config_with_custom_collector_url
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_get_levo_config_with_http_endpoint
patch.dict( "os.environ", { "LEVOAI_API_KEY": "test-api-key", "LEVOAI_
tests/test_litellm/integrations/levo/test_levo.py:None
Routetest_get_litellm_resource_integration_with_real_resource
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_get_litellm_resource_precedence
patch.dict( os.environ, { "OTEL_SERVICE_NAME": "litellm-service", "OTE
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_get_litellm_resource_real_otel_resource_attributes
patch.dict( os.environ, { "OTEL_RESOURCE_ATTRIBUTES": "service.name=from-env,custo
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_get_litellm_resource_with_defaults
patch.dict(os.environ, {}, clear=True)
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_get_litellm_resource_with_litellm_env_vars
patch.dict( os.environ, { "OTEL_SERVICE_NAME": "test-service", "OTEL_E
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_get_litellm_resource_with_otel_resource_attributes
patch.dict( os.environ, { "OTEL_RESOURCE_ATTRIBUTES": "service.name=otel-service,d
tests/test_litellm/integrations/test_opentelemetry.py:None
Routetest_get_logging_payload_api_key_preserved_when_standard_logging_payload_is_none
patch("litellm.proxy.proxy_server.master_key", None)
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_logging_payload_handles_missing_overhead_gracefully
patch("litellm.proxy.proxy_server.master_key", None)
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_logging_payload_handles_missing_retry_info_gracefully
patch("litellm.proxy.proxy_server.master_key", None)
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_logging_payload_includes_agent_id_from_kwargs
patch("litellm.proxy.proxy_server.master_key", None)
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_logging_payload_includes_overhead_in_spend_logs_metadata
patch("litellm.proxy.proxy_server.master_key", None)
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_logging_payload_includes_retry_info_in_spend_logs_metadata
patch("litellm.proxy.proxy_server.master_key", None)
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_logging_payload_strips_null_bytes_from_request_tags
patch("litellm.proxy.proxy_server.master_key", None)
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_messages_for_spend_logs_non_realtime_returns_empty
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_messages_for_spend_logs_realtime_empty_when_disabled
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_messages_for_spend_logs_realtime_returns_messages
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_messages_for_spend_logs_strips_null_bytes
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
Routetest_get_missing_run_returns_404
patch("litellm.proxy.proxy_server.prisma_client")
tests/test_litellm/proxy/management_endpoints/test_workflow_management_endpoints.py:None
Routetest_get_model_from_request
pytest.mark.parametrize( "route, request_data, expected_model", [ ("/v1/chat/completions", {"m
tests/proxy_unit_tests/test_user_api_key_auth.py:None
Routetest_get_model_from_request
pytest.mark.parametrize( "request_data, expected_model", [ ( {"target_model_names"
tests/local_testing/test_auth_utils.py:None
Routetest_get_model_from_request_extracts_realtime_session_model
pytest.mark.parametrize( "route", [ "/realtime/client_secrets", "/v1/realtime/client_s
tests/test_litellm/proxy/auth/test_auth_utils.py:None
Routetest_get_model_from_request_vertex_ai_passthrough
pytest.mark.parametrize( "request_data, route, expected_model", [ # Vertex AI passthrough URL
tests/local_testing/test_auth_utils.py:None
Routetest_get_modified_max_tokens
pytest.mark.parametrize( "model, base_model, input_tokens, user_max_tokens, expected_value", [
tests/test_litellm/litellm_core_utils/test_token_counter.py:None
Routetest_get_openai_compatible_provider_info_from_env
patch.dict( os.environ, {"RAGFLOW_API_BASE": "http://env-base:9380", "RAGFLOW_API_KEY": "env-k
tests/test_litellm/llms/ragflow/chat/test_ragflow_chat_transformation.py:None
Routetest_get_predicted_spend_logs
pytest.mark.skip(reason="datetime in ci/cd gets set weirdly")
tests/test_spend_logs.py:None
Routetest_get_redirect_url_for_sso
patch.dict(os.environ, {}, clear=False)
tests/test_litellm/proxy/management_endpoints/test_ui_sso.py:None
Routetest_get_response_for_spend_logs_payload_strips_null_bytes
patch( "litellm.proxy.spend_tracking.spend_tracking_utils._should_store_prompts_and_responses_in_spend_log
tests/test_litellm/proxy/spend_tracking/test_spend_tracking_utils.py:None
← previousnext →901–1,000 of 1,734, ranked by callers