Fix to pick up LLM api keys using python-dotenv
This commit is contained in:
parent
4218f5f209
commit
7bd73dabfe
|
|
@ -6,3 +6,4 @@ src/
|
|||
eval_results/
|
||||
eval_data/
|
||||
*.egg-info/
|
||||
.env
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -24,3 +24,4 @@ rich
|
|||
questionary
|
||||
langchain_anthropic
|
||||
langchain-google-genai
|
||||
python-dotenv
|
||||
|
|
|
|||
Loading…
Reference in New Issue