Update workflow test cases and refine web search toggle labels
This commit is contained in:
@@ -61,6 +61,12 @@ class RouterAndBuiltinTests(unittest.IsolatedAsyncioTestCase):
|
||||
)
|
||||
self.assertEqual(result["workflow_slug"], "web-answer")
|
||||
|
||||
result = await select_workflow(
|
||||
db, message="hello", recent_messages=[], attachments=[],
|
||||
library_slug="notes", router_model=None, chat_model="model", web_search_enabled=True,
|
||||
)
|
||||
self.assertEqual(result["workflow_slug"], "knowledge-web-answer")
|
||||
|
||||
result = await select_workflow(
|
||||
db, message="hello", recent_messages=[], attachments=[],
|
||||
library_slug=None, router_model=None, chat_model="model", web_search_enabled=False,
|
||||
|
||||
@@ -2069,7 +2069,8 @@ async function createNewChat() {
|
||||
type="button"
|
||||
className={"websearch-toggle" + (webSearchEnabled ? " active" : "")}
|
||||
onClick={toggleWebSearch}
|
||||
title="Toggle web search"
|
||||
title={webSearchEnabled ? "Web search forced" : "Web search automatic"}
|
||||
aria-label={webSearchEnabled ? "Web search forced" : "Web search automatic"}
|
||||
aria-pressed={webSearchEnabled}
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"
|
||||
|
||||
Reference in New Issue
Block a user