Skip to content

Commit

Permalink
Update TemplateResponse args #7
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed May 16, 2024
1 parent 30823a8 commit 7415a68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Releases

## 0.14.7 - TemplateResponse

* Update TemplateResponse arguments to current format as reported in #7.

## 0.14.6 - News Links

Chatbot
Expand Down
4 changes: 2 additions & 2 deletions chatbot/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
import aiohttp

# TinyLLM Version
VERSION = "v0.14.6"
VERSION = "v0.14.7"

# Set up logging
logging.basicConfig(level=logging.INFO,
Expand Down Expand Up @@ -533,7 +533,7 @@ async def extract_text_from_html(response):
# Display the main chatbot page
@app.get("/", response_class=HTMLResponse)
async def index(request: Request):
return templates.TemplateResponse("index.html", {"request": request})
return templates.TemplateResponse(request, "index.html")

# Serve static socket.io.js
@app.get("/socket.io.js")
Expand Down

0 comments on commit 7415a68

Please sign in to comment.