Files
wiki-jokes/.env.example
T
hermes 7dc32a50e2 Raise LLM read timeout to 300s; prefer LAN endpoint in env example
Midnight failures were read timeouts against the public URL — hairpin NAT
and/or the request queuing behind other traffic on the shared model.
LAN endpoint + longer timeout covers both.
2026-09-30 08:06:18 +00:00

22 lines
710 B
Bash

# Copy to .env and adjust. docker compose reads this automatically.
# Any OpenAI-compatible endpoint. Use the LAN address from the minisforum —
# the public URL hairpins through the router and can stall.
OPENAI_BASE_URL=http://minisforum:65000/v1
OPENAI_MODEL=halogen-qwen3.8-flash-next
OPENAI_API_KEY=***
# Daily generation time (in TZ below)
GENERATE_HOUR=6
GENERATE_MINUTE=0
# Failure handling: retry every RETRY_MINUTES, up to MAX_ATTEMPTS per day.
# After that, retries pause for SLOW_RETRY_MINUTES, then resume (so a cold
# LLM endpoint at 06:00 doesn't kill the whole day).
MAX_ATTEMPTS=3
RETRY_MINUTES=15
SLOW_RETRY_MINUTES=60
# Wikipedia language for the featured-article feed
WIKIPEDIA_LANG=en