Skip to content

Commit

Permalink
Bug fix handle_url_prompt()
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Feb 15, 2024
1 parent 0f90a35 commit 36b496d
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.12.3 - Extract from URL

* Bug fix for `handle_url_prompt()` to extract text from URL.

## 0.12.2 - Misc Improvements

* Speed up command functions using async, using `aiohttp`.
Expand Down
4 changes: 2 additions & 2 deletions chatbot/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
import aiohttp

# TinyLLM Version
VERSION = "v0.12.2"
VERSION = "v0.12.3"

# Set up logging
logging.basicConfig(level=logging.INFO,
Expand Down Expand Up @@ -704,7 +704,7 @@ async def handle_url_prompt(session_id, p):
url = p.strip()
client[session_id]["visible"] = False
client[session_id]["remember"] = True
website_text = extract_text_from_url(url)
website_text = await extract_text_from_url(url)
if website_text:
log(f"* Reading {len(website_text)} bytes {url}")
await sio.emit('update', {'update': '%s [Reading...]' % url, 'voice': 'user'}, room=session_id)
Expand Down

0 comments on commit 36b496d

Please sign in to comment.