Coverage for .venv/lib/python3.13/site-packages/litellm/proxy/common_utils/banner.py: 75%

8 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-10 12:01 +0000

1from typing import Final 

2 

3# LiteLLM ASCII banner 

4LITELLM_BANNER: Final = """ ██╗ ██╗████████╗███████╗██╗ ██╗ ███╗ ███╗ 

5 ██║ ██║╚══██╔══╝██╔════╝██║ ██║ ████╗ ████║ 

6 ██║ ██║ ██║ █████╗ ██║ ██║ ██╔████╔██║ 

7 ██║ ██║ ██║ ██╔══╝ ██║ ██║ ██║╚██╔╝██║ 

8 ███████╗██║ ██║ ███████╗███████╗███████╗██║ ╚═╝ ██║ 

9 ╚══════╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝""" 

10 

11 

12def show_banner(): 

13 """Display the LiteLLM CLI banner.""" 

14 try: 

15 import click 

16 

17 click.echo(f"\n{LITELLM_BANNER}\n") 

18 except ImportError: 

19 print("\n") # noqa: T201