mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-25 21:11:11 +08:00
fix(llm): fixed gemini api_key
This commit is contained in:
parent
8c0b46eb40
commit
fd01b73b71
@ -15,4 +15,6 @@ class Gemini(ChatGoogleGenerativeAI):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, llm_config: dict):
|
def __init__(self, llm_config: dict):
|
||||||
|
# replace "api_key" to "google_api_key"
|
||||||
|
llm_config["google_api_key"] = llm_config.pop("api_key", None)
|
||||||
super().__init__(**llm_config)
|
super().__init__(**llm_config)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user