mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 22:42:05 +00:00
Make serpapi base url configurable via env (#4402)
Fixes #4328 Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ It is broken into two parts: installation and setup, and then references to the
|
||||
## Installation and Setup
|
||||
- Install requirements with `pip install google-search-results`
|
||||
- Get a SerpAPI api key and either set it as an environment variable (`SERPAPI_API_KEY`)
|
||||
- Optional, if you are using a proxy, set environment variable (`SERPAPI_BASE_URL`) or pass it to the LLM constructor to your proxy url.
|
||||
|
||||
## Wrappers
|
||||
|
||||
|
@@ -30,6 +30,7 @@ The following use cases require specific installs and api keys:
|
||||
- _SerpAPI_:
|
||||
- Install requirements with `pip install google-search-results`
|
||||
- Get a SerpAPI api key and either set it as an environment variable (`SERPAPI_API_KEY`) or pass it to the LLM constructor as `serpapi_api_key`.
|
||||
- Optional, if you are using a proxy, set environment variable (`SERPAPI_BASE_URL`) or pass it to the LLM constructor to your proxy url.
|
||||
- _GoogleSearchAPI_:
|
||||
- Install requirements with `pip install google-api-python-client`
|
||||
- Get a Google api key and either set it as an environment variable (`GOOGLE_API_KEY`) or pass it to the LLM constructor as `google_api_key`. You will also need to set the `GOOGLE_CSE_ID` environment variable to your custom search engine id. You can pass it to the LLM constructor as `google_cse_id` as well.
|
||||
|
Reference in New Issue
Block a user