mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-30 11:39:03 +00:00
Harrison/errors (#1276)
Co-authored-by: Kevin Huo <5000881+kwhuo68@users.noreply.github.com>
This commit is contained in:
parent
8a0751dadd
commit
bb53d9722d
@ -86,7 +86,6 @@ class GoogleSearchAPIWrapper(BaseModel):
|
||||
service = build("customsearch", "v1", developerKey=google_api_key)
|
||||
values["search_engine"] = service
|
||||
|
||||
# TODO: Add error handling if keys are missing
|
||||
return values
|
||||
|
||||
def run(self, query: str) -> str:
|
||||
|
@ -43,10 +43,8 @@ class WolframAlphaAPIWrapper(BaseModel):
|
||||
"Please install it with `pip install wolframalpha`"
|
||||
)
|
||||
client = wolframalpha.Client(wolfram_alpha_appid)
|
||||
|
||||
values["wolfram_client"] = client
|
||||
|
||||
# TODO: Add error handling if keys are missing
|
||||
return values
|
||||
|
||||
def run(self, query: str) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user