yangdx
commited on
Commit
·
c9478bb
1
Parent(s):
5ba9af1
Added environment variable loading with dotenv in Ollama API
Browse files
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:
|