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:
+1
-1
@@ -536,7 +536,7 @@ OLLAMA_MODEL=gemma3:4b
|
|||||||
OLLAMA_KEEP_ALIVE=0
|
OLLAMA_KEEP_ALIVE=0
|
||||||
|
|
||||||
# LLM Provider (OpenAI-kompatibel, z.B. Ionos)
|
# 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_API_KEY=...
|
||||||
LLM_MODEL=...
|
LLM_MODEL=...
|
||||||
LLM_TEMPERATURE=0
|
LLM_TEMPERATURE=0
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ OLLAMA_MODEL=gemma3:4b
|
|||||||
OLLAMA_KEEP_ALIVE=0
|
OLLAMA_KEEP_ALIVE=0
|
||||||
|
|
||||||
# LLM provider (Ionos)
|
# LLM provider (Ionos)
|
||||||
LLM_URL=https://openai.ionos.com/openai
|
LLM_URL=https://openai.inference.de-txl.ionos.com
|
||||||
LLM_API_KEY=
|
LLM_API_KEY=
|
||||||
LLM_MODEL=
|
LLM_MODEL=
|
||||||
LLM_TEMPERATURE=0
|
LLM_TEMPERATURE=0
|
||||||
|
|||||||
+9
-1
@@ -3,7 +3,7 @@ use std::sync::Arc;
|
|||||||
use tokio::net::TcpListener;
|
use tokio::net::TcpListener;
|
||||||
use tower_http::limit::RequestBodyLimitLayer;
|
use tower_http::limit::RequestBodyLimitLayer;
|
||||||
use tower_http::trace::TraceLayer;
|
use tower_http::trace::TraceLayer;
|
||||||
use tracing::info;
|
use tracing::{info, warn};
|
||||||
use tracing_subscriber::layer::SubscriberExt;
|
use tracing_subscriber::layer::SubscriberExt;
|
||||||
use tracing_subscriber::util::SubscriberInitExt;
|
use tracing_subscriber::util::SubscriberInitExt;
|
||||||
use tracing_subscriber::EnvFilter;
|
use tracing_subscriber::EnvFilter;
|
||||||
@@ -40,6 +40,14 @@ async fn main() {
|
|||||||
)
|
)
|
||||||
.init();
|
.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.
|
// Shared HTTP client for both downstream pipelines.
|
||||||
let http_client = reqwest::Client::builder()
|
let http_client = reqwest::Client::builder()
|
||||||
.build()
|
.build()
|
||||||
|
|||||||
Reference in New Issue
Block a user