mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-25 21:11:11 +08:00
21 lines
651 B
Python
21 lines
651 B
Python
"""
|
|
Gemini module configuration
|
|
"""
|
|
from langchain_google_genai import ChatGoogleGenerativeAI
|
|
|
|
|
|
class Gemini(ChatGoogleGenerativeAI):
|
|
"""Class for wrapping gemini module"""
|
|
|
|
def __init__(self, llm_config: dict):
|
|
"""
|
|
A wrapper for the Gemini class that provides default configuration
|
|
and could be extended with additional methods if needed.
|
|
|
|
Args:
|
|
llm_config (dict): Configuration parameters for the language model.
|
|
such as model="gemini-pro" and api_key
|
|
"""
|
|
# Initialize the superclass (ChatOpenAI) with provided config parameters
|
|
super().__init__(**llm_config)
|