Added environment variable loading with dotenv in Ollama API

This commit is contained in:
yangdx
2025-02-06 01:00:49 +08:00
parent a927545b4b
commit db9b4dc841

View File

@@ -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: