diff --git a/backend/app/core/config.py b/backend/app/core/config.py index 7a9df5b..8072e6a 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -1,27 +1,27 @@ -from pydantic_settings import BaseSettings +from pydantic_settings import BaseSettings, SettingsConfigDict class Settings(BaseSettings): - # Frontend Config - FRONTEND_URL: str + # Load environment variables from the local .env file + # so the backend can run correctly during local development. + model_config = SettingsConfigDict( + env_file=".env", + env_file_encoding="utf-8", + ) - # LLM Provider + FRONTEND_URL: str PROVIDER: str - - # Azure OpenAI Config AZURE_API_VERSION: str AZURE_ENDPOINT: str AZURE_API_KEY: str AZURE_DEPLOYMENT_NAME: str AZURE_EMBEDDING_DEPLOYMENT_NAME: str - - # Qdrant Config QDRANT_URL: str QDRANT_COLLECTION_NAME: str - - # Langfuse Config LANGFUSE_SECRET_KEY: str LANGFUSE_PUBLIC_KEY: str LANGFUSE_HOST: str -settings = Settings() + +# Create one shared settings object for the app +settings = Settings() \ No newline at end of file diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index ede5909..41ec79b 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -32,6 +32,7 @@ export default function LandingPage() { AI Explorer +