Error
- 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.
- langchain load_tools() throws KeyError for requests
langchain load_tools() throws KeyError for ‘requests’ Yesterday I was wiring up a quick agent and called: from langchain.agents import load_tools tools = load_tools(["requests"]) The import blew up with: File ".../langchain/agents/load_tools.py", line 78, in load_tools tool = TOOL_NAME_TO_CLASS[name] KeyError: 'requests' Python 3.11, langchain 0.0.259, running on Windows 11 PowerShell.
- OpenAI API returns 429 despite backoff
OpenAI API returns 429 despite backoff Yesterday I was trying to run a batch job through the completions endpoint using text-davinci-003. Got this back immediately: { "error": { "message": "You exceeded your current quota, please check your plan and billing details.", "type": "insufficient_quota", "param": null, "code": "insufficient_quota" } } No Retry-After header. First request failed. Slowing down didn’t help.