Fix all commands and cleanup

This commit is contained in:
BillSchumacher
2023-04-19 18:17:04 -05:00
parent 23c650ca10
commit d7679d755f
16 changed files with 63 additions and 83 deletions

View File

@@ -11,7 +11,7 @@ from autogpt.config import Config
CFG = Config()
@command("google", "Google Search", '"query": "<search>"', not CFG.google_api_key)
@command("google", "Google Search", '"query": "<query>"', not CFG.google_api_key)
def google_search(query: str, num_results: int = 8) -> str:
"""Return the results of a Google search
@@ -40,7 +40,7 @@ def google_search(query: str, num_results: int = 8) -> str:
@command(
"google",
"Google Search",
'"query": "<search>"',
'"query": "<query>"',
bool(CFG.google_api_key),
"Configure google_api_key.",
)