fix search return type (#177)

This commit is contained in:
Harrison Chase
2022-11-23 13:13:00 -08:00
committed by GitHub
parent 09f301cd38
commit 736b6ee65c

View File

@@ -111,5 +111,5 @@ class SerpAPIChain(Chain, BaseModel):
elif "snippet" in res["organic_results"][0].keys():
toret = res["organic_results"][0]["snippet"]
else:
toret = None
toret = "No good search result found"
return {self.output_key: toret}