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_results/
|
||||||
eval_data/
|
eval_data/
|
||||||
*.egg-info/
|
*.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
|
from typing import Optional
|
||||||
import datetime
|
import datetime
|
||||||
import typer
|
import typer
|
||||||
|
|
|
||||||
|
|
@ -24,3 +24,4 @@ rich
|
||||||
questionary
|
questionary
|
||||||
langchain_anthropic
|
langchain_anthropic
|
||||||
langchain-google-genai
|
langchain-google-genai
|
||||||
|
python-dotenv
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue