Skip to content

Commit

Permalink
fix: missing Client ID (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
averikitsch authored Jan 29, 2024
1 parent 01c050c commit 960f6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langchain_tools_demo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ async def lifespan(app: FastAPI):
BASE_HISTORY: list[BaseMessage] = [
AIMessage(content="I am an SFO Airport Assistant, ready to assist you.")
]
CLIENT_ID = os.getenv("CLIENT_ID")


@app.route("/", methods=["GET", "POST"])
async def index(request: Request):
"""Render the default template."""
# Agent setup
agent = await get_agent(request.session)
print(request.session["history"])
return templates.TemplateResponse(
"index.html",
{
"request": request,
"messages": request.session["history"],
"client_id": request.session.get("client_id"),
"client_id": CLIENT_ID,
},
)

Expand Down

0 comments on commit 960f6b1

Please sign in to comment.