mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
update block code
This commit is contained in:
@@ -574,6 +574,15 @@ class SearchToolkit(BaseToolkit):
|
||||
"long_description": long_description,
|
||||
"url": link,
|
||||
}
|
||||
# skip huggingface GAIA results
|
||||
if "huggingface" in link.lower() and "gaia" in link.lower():
|
||||
continue
|
||||
# skip GAIA paper results
|
||||
if "2311.12983" in link.lower():
|
||||
continue
|
||||
# skip GAIA benchmark results
|
||||
if "gaia" in snippet.lower() and "benchmark" in snippet.lower():
|
||||
continue
|
||||
responses.append(response)
|
||||
else:
|
||||
responses.append({"error": "google search failed."})
|
||||
|
||||
Reference in New Issue
Block a user