Merge pull request #719 from danielaskdd/fix-env-reading-problem
Fixing .env file loading problem for Ollama API module
This commit is contained in:
@@ -179,7 +179,7 @@ def display_splash_screen(args: argparse.Namespace) -> None:
|
|||||||
ASCIIColors.yellow(f"{args.host}")
|
ASCIIColors.yellow(f"{args.host}")
|
||||||
ASCIIColors.white(" ├─ Port: ", end="")
|
ASCIIColors.white(" ├─ Port: ", end="")
|
||||||
ASCIIColors.yellow(f"{args.port}")
|
ASCIIColors.yellow(f"{args.port}")
|
||||||
ASCIIColors.white(" ├─ SSL Enabled: ", end="")
|
ASCIIColors.white(" └─ SSL Enabled: ", end="")
|
||||||
ASCIIColors.yellow(f"{args.ssl}")
|
ASCIIColors.yellow(f"{args.ssl}")
|
||||||
if args.ssl:
|
if args.ssl:
|
||||||
ASCIIColors.white(" ├─ SSL Cert: ", end="")
|
ASCIIColors.white(" ├─ SSL Cert: ", end="")
|
||||||
|
@@ -11,6 +11,11 @@ from fastapi.responses import StreamingResponse
|
|||||||
import asyncio
|
import asyncio
|
||||||
from ascii_colors import trace_exception
|
from ascii_colors import trace_exception
|
||||||
from lightrag import LightRAG, QueryParam
|
from lightrag import LightRAG, QueryParam
|
||||||
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
|
||||||
|
# Load environment variables
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
|
|
||||||
class OllamaServerInfos:
|
class OllamaServerInfos:
|
||||||
|
Reference in New Issue
Block a user