Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
# In the Coder environment bootcamp keys (OPENAI_*, E2B_*, LANGFUSE_*) are injected
# into your shell environment — do NOT copy those into .env on Coder workspaces.
# Optional personal keys (e.g. FRED_API_KEY) still need to be set in .env.

# E2B Code Execution Service
E2B_API_KEY=your_e2b_api_key

# Vector LLM Proxy Service
OPENAI_BASE_URL=https://proxy.vectorinstitute.ai/v1
OPENAI_API_KEY=your_api_key

# Langfuse — required for trace logging in playground/news_search and misalignment_qa
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_HOST=https://us.cloud.langfuse.com

# Optional keys
FRED_API_KEY=your_fred_api_key # You need to request this from FRED if you want to use it
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"warnings.filterwarnings(\"ignore\")\n",
"\n",
"ROOT = Path.cwd().resolve().parents[1]\n",
"load_dotenv(ROOT / \".env\")\n",
"load_dotenv(ROOT / \".env\", override=False)\n",
"\n",
"from aieng.forecasting.evaluation import BacktestSpec, cached_backtest, describe_spec\n",
"from boc_rate_decisions.analysis import (\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"\n",
"warnings.filterwarnings(\"ignore\")\n",
"ROOT = Path.cwd().resolve().parents[1]\n",
"load_dotenv(ROOT / \".env\")\n",
"load_dotenv(ROOT / \".env\", override=False)\n",
"\n",
"from aieng.forecasting.evaluation import EvalSpec, evaluate\n",
"from boc_rate_decisions.data import DIRECTION_SERIES_ID, build_boc_service\n",
Expand Down
2 changes: 1 addition & 1 deletion implementations/boc_rate_decisions/99_starter_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"\n",
"# Repo root holds the .env with PROXY_* creds the agent needs.\n",
"ROOT = Path.cwd().resolve().parents[1]\n",
"load_dotenv(ROOT / \".env\")\n",
"load_dotenv(ROOT / \".env\", override=False)\n",
"\n",
"# ── Model selection ───────────────────────────────────\n",
"# Two project models: \"gemini-3.1-flash-lite-preview\" (lite/default) and\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"\n",
"# Repo root holds the .env with PROXY_* creds the agent needs.\n",
"ROOT = Path.cwd().resolve().parents[1]\n",
"load_dotenv(ROOT / \".env\")\n",
"load_dotenv(ROOT / \".env\", override=False)\n",
"\n",
"# ── Model selection ───────────────────────────────────\n",
"# Two project models: \"gemini-3.1-flash-lite-preview\" (lite/default) and\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"warnings.filterwarnings(\"ignore\")\n",
"\n",
"ROOT = Path.cwd().resolve().parents[1]\n",
"load_dotenv(ROOT / \".env\")\n",
"load_dotenv(ROOT / \".env\", override=False)\n",
"\n",
"import importlib\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"\n",
"# Repo root holds the .env with PROXY_* creds the agent needs.\n",
"ROOT = Path.cwd().resolve().parents[1]\n",
"load_dotenv(ROOT / \".env\")\n",
"load_dotenv(ROOT / \".env\", override=False)\n",
"\n",
"# ── Model selection ───────────────────────────────────\n",
"# Two project models: \"gemini-3.1-flash-lite-preview\" (lite/default) and\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"\n",
"\n",
"ROOT = _repo_root()\n",
"load_dotenv(ROOT / \".env\") # LLMP rows call the Vector proxy — need PROXY_* set\n",
"load_dotenv(ROOT / \".env\", override=False) # LLMP rows call the Vector proxy — need PROXY_* set\n",
"\n",
"from aieng.forecasting.evaluation import (\n",
" MultiTargetBacktestSpec,\n",
Expand Down
2 changes: 1 addition & 1 deletion implementations/sp500_forecasting/99_starter_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"\n",
"# Repo root holds the .env with PROXY_* creds the agent needs.\n",
"ROOT = Path.cwd().resolve().parents[1]\n",
"load_dotenv(ROOT / \".env\")\n",
"load_dotenv(ROOT / \".env\", override=False)\n",
"\n",
"# ── Model selection ───────────────────────────────────\n",
"# Two project models: \"gemini-3.1-flash-lite-preview\" (lite/default) and\n",
Expand Down
2 changes: 1 addition & 1 deletion implementations/sp500_forecasting/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _load_fred_dotenv() -> None:
root = _repo_root()
if root is None:
return
_load_dotenv(root / ".env")
_load_dotenv(root / ".env", override=False)


def _as_absolute_cache(path: Path | None) -> Path | None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
" if p not in sys.path:\n",
" sys.path.insert(0, p)\n",
"\n",
"load_dotenv(REPO_ROOT / \".env\")\n",
"load_dotenv(REPO_ROOT / \".env\", override=False)\n",
"\n",
"# ── Colour palette ────────────────────────────────────────────────────────\n",
"CLR_ACTUAL = \"#2171b5\" # blue — truth\n",
Expand Down
2 changes: 1 addition & 1 deletion playground/news_search/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def main() -> None:

# Load .env from repo root (two levels up from this file).
repo_root_env = Path(__file__).resolve().parents[2] / ".env"
load_dotenv(repo_root_env, verbose=False)
load_dotenv(repo_root_env, override=False, verbose=False)

config = _load_config(args.config, args.max_dates, args.stride)

Expand Down
2 changes: 1 addition & 1 deletion playground/proxy_tests/run_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
from dotenv import load_dotenv # noqa: E402


load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

OPENAI_BASE_URL = os.environ.get("OPENAI_BASE_URL", "https://proxy.vectorinstitute.ai/v1")
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY", "")
Expand Down
2 changes: 1 addition & 1 deletion playground/proxy_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from dotenv import load_dotenv # noqa: E402


load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

OPENAI_BASE_URL = "https://proxy.vectorinstitute.ai/v1"
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY", "")
Expand Down
2 changes: 1 addition & 1 deletion playground/proxy_tests/test_pdf_file_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from dotenv import load_dotenv


load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

from aieng.forecasting.models import ADVANCED_MODEL, LITE_MODEL

Expand Down
2 changes: 1 addition & 1 deletion playground/proxy_tests/test_pdf_native_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


REPO_ROOT = Path(__file__).resolve().parents[2]
load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

BASE = os.environ.get("OPENAI_BASE_URL", "https://proxy.vectorinstitute.ai/v1")
KEY = os.environ.get("OPENAI_API_KEY", "")
Expand Down
2 changes: 1 addition & 1 deletion playground/proxy_tests/test_pdf_raw_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


REPO_ROOT = Path(__file__).resolve().parents[2]
load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

BASE = os.environ.get("OPENAI_BASE_URL", "https://proxy.vectorinstitute.ai/v1")
KEY = os.environ.get("OPENAI_API_KEY", "")
Expand Down
2 changes: 1 addition & 1 deletion playground/proxy_tests/test_pdf_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


REPO_ROOT = Path(__file__).resolve().parents[2]
load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

BASE = os.environ.get("OPENAI_BASE_URL", "https://proxy.vectorinstitute.ai/v1")
KEY = os.environ.get("OPENAI_API_KEY", "")
Expand Down
2 changes: 1 addition & 1 deletion playground/proxy_tests/test_pdf_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from dotenv import load_dotenv


load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

# Bootstrap LiteLLM + Langfuse callbacks so each proxy call gets a span in the UI.
bootstrap_litellm()
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_e2b_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _repo_root() -> Path:

async def main() -> None:
# load E2B_API_KEY
dotenv.load_dotenv()
dotenv.load_dotenv(override=False)
# Fail hard if E2B_API_KEY is not set
if not dotenv.get_key(".env", "E2B_API_KEY"):
raise ValueError("E2B_API_KEY is not set")
Expand Down
2 changes: 1 addition & 1 deletion scripts/cache_wti_curriculum_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
try:
from dotenv import load_dotenv

load_dotenv(_REPO_ROOT / ".env")
load_dotenv(_REPO_ROOT / ".env", override=False)
except ImportError:
pass

Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch_boc.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from dotenv import load_dotenv


load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

from datetime import datetime, timezone

Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch_fred.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from dotenv import load_dotenv


load_dotenv(REPO_ROOT / ".env")
load_dotenv(REPO_ROOT / ".env", override=False)

from aieng.forecasting.data import DataService, SeriesMetadata
from aieng.forecasting.data.adapters import FREDAdapter
Expand Down
Loading