From 0c10489a5e2104b52ece5d379f1ac030aeb58e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ty=C5=84ski?= Date: Sun, 4 Oct 2026 02:52:45 +0200 Subject: [PATCH] chore(config): configure LLM provider and cost limits --- .env.example | 9 +++++++++ backend/appsettings.json | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.env.example b/.env.example index e7bde53..7e65a2c 100644 --- a/.env.example +++ b/.env.example @@ -24,6 +24,15 @@ SurrealDb__DataDirectory=data # LLM (F-8, matchmaking) — runtime secret only. # LLM__ApiKey= +# LLM provider/cost control (optional; disabled by default -> offline template rationales). +# Llm__Enabled=false +# Llm__Provider=openai +# Llm__BaseUrl=https://api.openai.com/v1 +# Llm__Model=gpt-4o-mini +# Llm__MaxTokens=256 +# Llm__MaxRequestsPerMinute=30 +# Llm__TimeoutSeconds=20 + # Observability (optional). # Logging__LogLevel__Default=Information # OTEL_EXPORTER_OTLP_ENDPOINT= diff --git a/backend/appsettings.json b/backend/appsettings.json index fa09370..89ceadf 100644 --- a/backend/appsettings.json +++ b/backend/appsettings.json @@ -11,6 +11,15 @@ "Audience": "tarninahub", "TokenLifetimeMinutes": 60 }, + "Llm": { + "Enabled": false, + "Provider": "openai", + "BaseUrl": "https://api.openai.com/v1", + "Model": "gpt-4o-mini", + "MaxTokens": 256, + "MaxRequestsPerMinute": 30, + "TimeoutSeconds": 20 + }, "SurrealDb": { "Namespace": "hubmi", "Database": "hubmi",