passing initial tests

This commit is contained in:
2026-02-12 18:53:05 -07:00
parent 577d390e7b
commit 1c8d30dc0f
2 changed files with 10 additions and 4 deletions
+9 -1
View File
@@ -1,5 +1,9 @@
from pathlib import Path
from pydantic_settings import BaseSettings
PROJECT_ROOT = Path(__file__).parent.parent
class Settings(BaseSettings):
anthropic_api_key: str
@@ -7,4 +11,8 @@ class Settings(BaseSettings):
safedir: str = "./workspace"
max_tokens: int = 500
model_config = {"env_file": ".env"}
model_config = {"env_file": PROJECT_ROOT / ".env"}
# create singleton instance, causes validation
settings = Settings()