mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-12 01:37:06 +02:00
18 lines
528 B
Python
18 lines
528 B
Python
"""Configuration de l'application, chargée depuis l'environnement."""
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
"""Réglages globaux de Loki (surchargés par variables d'environnement)."""
|
|
|
|
ollama_host: str = "http://host.docker.internal:11434"
|
|
default_model: str = "gemma4:12b"
|
|
workspace_dir: str = "/workspace"
|
|
data_dir: str = "/data"
|
|
port: int = 8080
|
|
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
|
|
settings = Settings()
|