Introducerar yaml-baserad konfiguration för smidigare hantering

This commit is contained in:
Joakim Persson
2024-07-18 13:43:23 +02:00
parent 18dbee6cbb
commit cfb6b6a9bd
+23
View File
@@ -0,0 +1,23 @@
# Frontend Configuration
frontend:
url: "http://localhost:8000"
# Backend Configuration
backend:
url: "http://localhost:5005"
# Ollama Server Configuration
ollama:
url: "http://localhost:11434"
api_key: "${OLLAMA_API_KEY}" # Refer to environment variable
model: "ollama/Llama-2-7b" # Select a model supported by the Ollama server
# Additional Configuration Options (Optional)
logging:
level: DEBUG # Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
# Cache Settings (Optional)
cache:
enabled: true
timeout: 60 # Seconds