Update LLM URL and warn if LLM not configured

Updates the `LLM_URL` in the project plan and `.env.example` to the
correct value.
Also, adds a warning in `main.rs` to inform the user if the LLM is not
configured, which effectively disables the 'Fall abschließen' feature.
This commit is contained in:
2026-04-15 21:12:22 +02:00
parent 0011569e1b
commit 1486c4db9e
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -536,7 +536,7 @@ OLLAMA_MODEL=gemma3:4b
OLLAMA_KEEP_ALIVE=0
# LLM Provider (OpenAI-kompatibel, z.B. Ionos)
LLM_URL=https://openai.ionos.com/openai
LLM_URL=https://openai.inference.de-txl.ionos.com
LLM_API_KEY=...
LLM_MODEL=...
LLM_TEMPERATURE=0
+1 -1
View File
@@ -24,7 +24,7 @@ OLLAMA_MODEL=gemma3:4b
OLLAMA_KEEP_ALIVE=0
# LLM provider (Ionos)
LLM_URL=https://openai.ionos.com/openai
LLM_URL=https://openai.inference.de-txl.ionos.com
LLM_API_KEY=
LLM_MODEL=
LLM_TEMPERATURE=0
+9 -1
View File
@@ -3,7 +3,7 @@ use std::sync::Arc;
use tokio::net::TcpListener;
use tower_http::limit::RequestBodyLimitLayer;
use tower_http::trace::TraceLayer;
use tracing::info;
use tracing::{info, warn};
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
use tracing_subscriber::EnvFilter;
@@ -40,6 +40,14 @@ async fn main() {
)
.init();
// Surface configuration gaps that silently disable features.
if !config.llm_configured() {
warn!(
"LLM not configured — 'Fall abschließen' is disabled. \
Set LLM_URL, LLM_API_KEY and LLM_MODEL in .env to enable."
);
}
// Shared HTTP client for both downstream pipelines.
let http_client = reqwest::Client::builder()
.build()