changed model to .env gemini-flash-2.0
Browse files- gemini_langchain_agent.py +1 -1
- gemini_report_generator.py +1 -1
- orchestrator_agent.py +1 -1
gemini_langchain_agent.py
CHANGED
|
@@ -16,7 +16,7 @@ import datetime as dt
|
|
| 16 |
matplotlib.use('Agg')
|
| 17 |
|
| 18 |
load_dotenv()
|
| 19 |
-
model_name =
|
| 20 |
google_api_keys = os.getenv("GEMINI_API_KEYS").split(",")
|
| 21 |
|
| 22 |
# Create pre-initialized LLM instances
|
|
|
|
| 16 |
matplotlib.use('Agg')
|
| 17 |
|
| 18 |
load_dotenv()
|
| 19 |
+
model_name = os.getenv("GEMINI_LLM_MODEL") # Specify the model name
|
| 20 |
google_api_keys = os.getenv("GEMINI_API_KEYS").split(",")
|
| 21 |
|
| 22 |
# Create pre-initialized LLM instances
|
gemini_report_generator.py
CHANGED
|
@@ -25,7 +25,7 @@ load_dotenv()
|
|
| 25 |
|
| 26 |
|
| 27 |
API_KEYS = os.getenv("GEMINI_API_KEYS", "").split(",")[::-1]
|
| 28 |
-
MODEL_NAME =
|
| 29 |
|
| 30 |
class FileProps(BaseModel):
|
| 31 |
fileName: str
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
API_KEYS = os.getenv("GEMINI_API_KEYS", "").split(",")[::-1]
|
| 28 |
+
MODEL_NAME = os.getenv("GEMINI_LLM_MODEL")
|
| 29 |
|
| 30 |
class FileProps(BaseModel):
|
| 31 |
fileName: str
|
orchestrator_agent.py
CHANGED
|
@@ -18,7 +18,7 @@ GEMINI_API_KEYS = os.getenv("GEMINI_API_KEYS", "").split(",") # Expecting a com
|
|
| 18 |
# Function to initialize the model with a specific API key
|
| 19 |
def initialize_model(api_key: str) -> GeminiModel:
|
| 20 |
return GeminiModel(
|
| 21 |
-
|
| 22 |
provider=GoogleGLAProvider(api_key=api_key)
|
| 23 |
)
|
| 24 |
|
|
|
|
| 18 |
# Function to initialize the model with a specific API key
|
| 19 |
def initialize_model(api_key: str) -> GeminiModel:
|
| 20 |
return GeminiModel(
|
| 21 |
+
os.getenv("GEMINI_LLM_MODEL"),
|
| 22 |
provider=GoogleGLAProvider(api_key=api_key)
|
| 23 |
)
|
| 24 |
|