Merge pull request #1209 from danielaskdd/main

Add core version to server startup splash screen
This commit is contained in:
Daniel.y 2025-03-28 08:23:14 +08:00 committed by GitHub
commit e0783c47ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,8 @@ from typing import Optional, List, Tuple
import sys
from ascii_colors import ASCIIColors
import logging
from lightrag.api import __api_version__
from lightrag.api import __api_version__ as api_version
from lightrag import __version__ as core_version
from fastapi import HTTPException, Security, Request, status
from dotenv import load_dotenv
from fastapi.security import APIKeyHeader, OAuth2PasswordBearer
@ -488,7 +489,7 @@ def display_splash_screen(args: argparse.Namespace) -> None:
# Banner
ASCIIColors.cyan(f"""
🚀 LightRAG Server v{__api_version__}
🚀 LightRAG Server v{core_version}/{api_version}
Fast, Lightweight RAG Server Implementation
""")