Merge pull request #719 from danielaskdd/fix-env-reading-problem
Browse files
lightrag/api/lightrag_server.py
CHANGED
@@ -179,7 +179,7 @@ def display_splash_screen(args: argparse.Namespace) -> None:
|
|
179 |
ASCIIColors.yellow(f"{args.host}")
|
180 |
ASCIIColors.white(" ββ Port: ", end="")
|
181 |
ASCIIColors.yellow(f"{args.port}")
|
182 |
-
ASCIIColors.white("
|
183 |
ASCIIColors.yellow(f"{args.ssl}")
|
184 |
if args.ssl:
|
185 |
ASCIIColors.white(" ββ SSL Cert: ", end="")
|
|
|
179 |
ASCIIColors.yellow(f"{args.host}")
|
180 |
ASCIIColors.white(" ββ Port: ", end="")
|
181 |
ASCIIColors.yellow(f"{args.port}")
|
182 |
+
ASCIIColors.white(" ββ SSL Enabled: ", end="")
|
183 |
ASCIIColors.yellow(f"{args.ssl}")
|
184 |
if args.ssl:
|
185 |
ASCIIColors.white(" ββ SSL Cert: ", end="")
|
lightrag/api/ollama_api.py
CHANGED
@@ -11,6 +11,11 @@ from fastapi.responses import StreamingResponse
|
|
11 |
import asyncio
|
12 |
from ascii_colors import trace_exception
|
13 |
from lightrag import LightRAG, QueryParam
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
|
16 |
class OllamaServerInfos:
|
|
|
11 |
import asyncio
|
12 |
from ascii_colors import trace_exception
|
13 |
from lightrag import LightRAG, QueryParam
|
14 |
+
from dotenv import load_dotenv
|
15 |
+
|
16 |
+
|
17 |
+
# Load environment variables
|
18 |
+
load_dotenv()
|
19 |
|
20 |
|
21 |
class OllamaServerInfos:
|