From db9b4dc841ae4030a776260eaf8a8a48c4915f7d Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 6 Feb 2025 01:00:49 +0800 Subject: [PATCH 1/2] Added environment variable loading with dotenv in Ollama API --- lightrag/api/ollama_api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightrag/api/ollama_api.py b/lightrag/api/ollama_api.py index e2637db0..23b09f55 100644 --- a/lightrag/api/ollama_api.py +++ b/lightrag/api/ollama_api.py @@ -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: From fd9b3b26589dc1d49d4042fa3bc9db7488da420d Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 6 Feb 2025 01:21:42 +0800 Subject: [PATCH 2/2] Fix splash screen SSL line connector type. --- lightrag/api/lightrag_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index fc6f1580..d80518c6 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -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="")