fix: modernize dependency recovery guidance (#5282)

This commit is contained in:
chengyongru
2026-08-07 13:58:13 +08:00
committed by GitHub
parent 02a002a0e6
commit ff6deda178
15 changed files with 113 additions and 29 deletions
+4 -1
View File
@@ -458,7 +458,10 @@ class WebSearchTool(Tool):
Olostep_BaseError, # pyright: ignore[reportUnknownVariableType]
)
except ImportError:
return ToolResult.error("Error: olostep package not installed. Run: pip install olostep")
return ToolResult.error(
"Error: Olostep support is not installed. "
"Run `nanobot plugins enable olostep`."
)
async_olostep = cast(Any, AsyncOlostep)
olostep_base_error = cast(type[Exception], Olostep_BaseError)
api_key = self.config.api_key or os.environ.get("OLOSTEP_API_KEY", "")