-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
32 lines (27 loc) · 865 Bytes
/
Copy pathconfig.py
File metadata and controls
32 lines (27 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import os
from pathlib import Path
try:
from dotenv import load_dotenv
# Try loading from global config first
global_env = Path.home() / ".config" / "lambda-agent" / "config.env"
if global_env.exists():
load_dotenv(dotenv_path=global_env)
# Allow local .env to override global configs
load_dotenv(override=True)
except ImportError:
print(
"Warning: python-dotenv not installed. If you are using a .env file, it will not be loaded."
)
API_KEY = os.getenv("API_KEY")
MODEL_NAME = os.getenv("MODEL_NAME", "gemini-3.1-pro-preview")
# Models available for /models switching
AVAILABLE_MODELS = [
"gemini-3.1-pro-preview",
"gemini-3-flash-preview",
"gemini-3.1-flash-lite-preview",
"gemini-2.5-pro",
"gemini-2.5-flash",
"gemini-2.5-flash-lite",
"gemma-4-26b-a4b-it",
"gemma-4-31b-it",
]