diff --git a/app/config.py b/app/config.py new file mode 100644 index 0000000..637743f --- /dev/null +++ b/app/config.py @@ -0,0 +1,24 @@ +import os + +# All comments are in English. + +class Config: + """Base configuration for the Flask application.""" + + # Secret key for sessions and cookies. + SECRET_KEY = os.getenv("FLASK_SECRET_KEY", "change-this-secret") + + # Google OAuth configuration. + #GOOGLE_CLIENT_ID = os.getenv("GOOGLE_CLIENT_ID", "") + #GOOGLE_CLIENT_SECRET = os.getenv("GOOGLE_CLIENT_SECRET", "") + #GOOGLE_REDIRECT_URI = os.getenv("GOOGLE_REDIRECT_URI", "") + + # Ollama base URL (HTTP endpoint). + OLLAMA_BASE_URL = os.getenv("OLLAMA_BASE_URL", "http://host.docker.internal:11434") + + # Allowed models mapping (user-facing name -> Ollama model identifier). + MODEL_MAP = { + "llama3.2": "llama3.2", + "gemma4": "gemma4", + "qwen2.5": "qwen2.5", + }