yangdx
commited on
Commit
Β·
8735263
1
Parent(s):
0943277
Add core version to server startup splash screen
Browse files
lightrag/api/utils_api.py
CHANGED
@@ -8,7 +8,8 @@ from typing import Optional, List, Tuple
|
|
8 |
import sys
|
9 |
from ascii_colors import ASCIIColors
|
10 |
import logging
|
11 |
-
from lightrag.api import __api_version__
|
|
|
12 |
from fastapi import HTTPException, Security, Request, status
|
13 |
from dotenv import load_dotenv
|
14 |
from fastapi.security import APIKeyHeader, OAuth2PasswordBearer
|
@@ -488,7 +489,7 @@ def display_splash_screen(args: argparse.Namespace) -> None:
|
|
488 |
# Banner
|
489 |
ASCIIColors.cyan(f"""
|
490 |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
491 |
-
β π LightRAG Server v{
|
492 |
β Fast, Lightweight RAG Server Implementation β
|
493 |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
494 |
""")
|
|
|
8 |
import sys
|
9 |
from ascii_colors import ASCIIColors
|
10 |
import logging
|
11 |
+
from lightrag.api import __api_version__ as api_version
|
12 |
+
from lightrag import __version__ as core_version
|
13 |
from fastapi import HTTPException, Security, Request, status
|
14 |
from dotenv import load_dotenv
|
15 |
from fastapi.security import APIKeyHeader, OAuth2PasswordBearer
|
|
|
489 |
# Banner
|
490 |
ASCIIColors.cyan(f"""
|
491 |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
492 |
+
β π LightRAG Server v{core_version}/{api_version} β
|
493 |
β Fast, Lightweight RAG Server Implementation β
|
494 |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
495 |
""")
|