Adicionar app/config.py

This commit is contained in:
2026-08-19 20:21:43 -03:00
parent af85d5a7c4
commit 162587c071
+24
View File
@@ -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",
}