.env 文件中的 SERPAPI_API_KEY 环境变量设置为您的 API 密钥。
自定义参数
您还可以使用任意参数自定义 SerpAPI 包装器。例如,在下面的示例中,我们将使用bing 而不是 google。
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.
使用 LangChain Python 与 SerpAPI 工具集成。
.env 文件中的 SERPAPI_API_KEY 环境变量设置为您的 API 密钥。
bing 而不是 google。