Serpapi
- langchain.tools.SerpAPIWrapper throws Invalid API Key despite valid key
langchain.tools.SerpAPIWrapper throws Invalid API Key despite valid key Spotted this today while wiring a quick search tool. from langchain.tools import SerpAPIWrapper tool = SerpAPIWrapper() print(tool.run("Sydney weather")) Console spat back: SerpApiError: Invalid API key Key worked in curl. Quota fine. Python 3.11, langchain 0.1.12, serpapi 0.6.2. Environment variable SERPAPI_API_KEY was set.