Merge pull request #719 from danielaskdd/fix-env-reading-problem

Fixing .env file loading problem for Ollama API module
This commit is contained in:
zrguo
2025-02-06 02:05:00 +08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -179,7 +179,7 @@ def display_splash_screen(args: argparse.Namespace) -> None:
ASCIIColors.yellow(f"{args.host}")
ASCIIColors.white(" ├─ Port: ", end="")
ASCIIColors.yellow(f"{args.port}")
ASCIIColors.white(" ─ SSL Enabled: ", end="")
ASCIIColors.white(" ─ SSL Enabled: ", end="")
ASCIIColors.yellow(f"{args.ssl}")
if args.ssl:
ASCIIColors.white(" ├─ SSL Cert: ", end="")

View File

@@ -11,6 +11,11 @@ from fastapi.responses import StreamingResponse
import asyncio
from ascii_colors import trace_exception
from lightrag import LightRAG, QueryParam
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
class OllamaServerInfos: