summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-rw-r--r--config.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/config.py b/config.py
new file mode 100644
index 0000000..8472e66
--- /dev/null
+++ b/config.py
@@ -0,0 +1,16 @@
+from pydantic_settings import BaseSettings
+
+
+class Settings(BaseSettings):
+ ollama_host: str
+ model_name: str
+ database_url: str
+ ollama_timeout: int
+
+ class Config:
+ env_file = ".env"
+ env_file_encoding = "utf-8"
+ protected_namespaces = ("settings_",)
+
+
+settings = Settings()