Added environment variable loading with dotenv in Ollama API
This commit is contained in:
parent
a927545b4b
commit
db9b4dc841
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue