mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-11 09:22:21 +02:00
repair broad web research recovery
This commit is contained in:
@@ -3962,6 +3962,14 @@ def requested_capabilities(message: str, history: Iterable = (), *, active_docum
|
||||
# route to scheduled tasks). Keep the whole read-only web family so a
|
||||
# weak search can recover through fetch/browser without schema growth.
|
||||
return frozenset({"search_browser"})
|
||||
if (
|
||||
re.search(r"\b(?:latest|recent|current|today(?:'s)?)\b", text, re.I)
|
||||
and re.search(r"\b(?:info(?:rmation)?|news|nees|updates?)\b", text, re.I)
|
||||
):
|
||||
# Broad current-information requests still require live Web evidence.
|
||||
# Keep the common ``nees`` typo because a missed route leaves the model
|
||||
# with no way to answer and encourages it to ask unnecessary questions.
|
||||
return frozenset({"search_browser"})
|
||||
if (
|
||||
len(concrete_urls) >= 2
|
||||
and re.search(r"\b(?:open|fetch|read|retrieve|check|use)\b", text, re.I)
|
||||
|
||||
Reference in New Issue
Block a user