Merge pull request #1064 from KYUUUW/patch-1

[docs]Fix runtime error README.md example
This commit is contained in:
Nuno Campos
2024-07-22 08:42:34 -07:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ def search(query: str):
"""Call to surf the web."""
# This is a placeholder, but don't tell the LLM that...
if "sf" in query.lower() or "san francisco" in query.lower():
return ["It's 60 degrees and foggy."]
return ["It's 90 degrees and sunny."]
return "It's 60 degrees and foggy."
return "It's 90 degrees and sunny."
tools = [search]
+2 -2
View File
@@ -73,8 +73,8 @@ def search(query: str):
"""Call to surf the web."""
# This is a placeholder, but don't tell the LLM that...
if "sf" in query.lower() or "san francisco" in query.lower():
return ["It's 60 degrees and foggy."]
return ["It's 90 degrees and sunny."]
return "It's 60 degrees and foggy."
return "It's 90 degrees and sunny."
tools = [search]