Improve web browsing train of thought status text shown on web app

This commit is contained in:
Debanjum
2025-11-10 18:30:49 -08:00
parent aab0653025
commit 2c54a2cd10
2 changed files with 4 additions and 4 deletions

View File

@@ -316,7 +316,7 @@ function chooseIconFromHeader(header: string, iconColor: string) {
return <Folder className={`${classNames}`} />;
}
if (compareHeader.includes("read")) {
if (compareHeader.includes("browsing")) {
return <Book className={`${classNames}`} />;
}

View File

@@ -126,7 +126,7 @@ async def search_online(
if send_status_func:
subqueries_str = "\n- " + "\n- ".join(subqueries)
async for event in send_status_func(f"**Searching the Internet for**: {subqueries_str}"):
async for event in send_status_func(f"**Searching the web for**: {subqueries_str}"):
yield {ChatEvent.STATUS: event}
response_dict = {}
@@ -169,7 +169,7 @@ async def search_online(
logger.info(f"Reading web pages at: {webpages.keys()}")
if send_status_func:
webpage_links_str = "\n- " + "\n- ".join(webpages.keys())
async for event in send_status_func(f"**Reading web pages**: {webpage_links_str}"):
async for event in send_status_func(f"**Browsing**: {webpage_links_str}"):
yield {ChatEvent.STATUS: event}
tasks = [
read_webpage_and_extract_content(
@@ -486,7 +486,7 @@ async def read_webpages_content(
logger.info(f"Reading web pages at: {urls}")
if send_status_func:
webpage_links_str = "\n- " + "\n- ".join(list(urls))
async for event in send_status_func(f"**Reading web pages**: {webpage_links_str}"):
async for event in send_status_func(f"**Browsing**: {webpage_links_str}"):
yield {ChatEvent.STATUS: event}
tasks = [read_webpage_and_extract_content({query}, url, user=user, agent=agent, tracer=tracer) for url in urls]
results = await asyncio.gather(*tasks)