Skip to content

Commit 2a1fb47

Browse files
committed
chore: use dotenv for runnable demo locally
1 parent de4bdee commit 2a1fb47

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

integrations/llama-index/python/examples/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies = [
1616
"uvicorn>=0.27.0",
1717
"fastapi>=0.100.0",
1818
"httpx>=0.24.0",
19+
"dotenv>=0.9.9"
1920
]
2021
authors = [
2122
{ name = "Logan Markewich", email = "[email protected]" },

integrations/llama-index/python/examples/server/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import os
22
import uvicorn
33
from fastapi import FastAPI
4+
from dotenv import load_dotenv
5+
6+
load_dotenv()
47

58
from .routers.agentic_chat import agentic_chat_router
69
from .routers.human_in_the_loop import human_in_the_loop_router

integrations/llama-index/python/examples/uv.lock

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)