Fix to pick up LLM api keys using python-dotenv

This commit is contained in:
sdk451 2025-07-23 09:43:00 +10:00
parent 4218f5f209
commit 7bd73dabfe
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ src/
eval_results/
eval_data/
*.egg-info/
.env

View File

@ -1,3 +1,10 @@
import os
# Load environment variables from .env if present
try:
from dotenv import load_dotenv
load_dotenv()
except ImportError:
pass
from typing import Optional
import datetime
import typer

View File

@ -24,3 +24,4 @@ rich
questionary
langchain_anthropic
langchain-google-genai
python-dotenv