diff --git a/RELEASE.md b/RELEASE.md index 45fabc7..3ead481 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -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`. diff --git a/chatbot/server.py b/chatbot/server.py index af1a501..14eea4c 100644 --- a/chatbot/server.py +++ b/chatbot/server.py @@ -75,7 +75,7 @@ import aiohttp # TinyLLM Version -VERSION = "v0.12.2" +VERSION = "v0.12.3" # Set up logging logging.basicConfig(level=logging.INFO, @@ -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)