Wiki Jokes: daily LLM jokes from Wikipedia featured article
- FastAPI + APScheduler + SQLite, single container - Daily generation at 06:00 Europe/Copenhagen + cold-start generation - Retry with backoff (3 attempts/15 min), stale fallback with banner - OpenAI-compatible endpoint via env (OPENAI_BASE_URL/MODEL/API_KEY) - docker-compose with named volume for joke persistence
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# Copy to .env and adjust. docker compose reads this automatically.
|
||||
|
||||
# Any OpenAI-compatible endpoint (llamaswap example below)
|
||||
OPENAI_BASE_URL=http://swap.obahan.xyz/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
|
||||
MAX_ATTEMPTS=3
|
||||
RETRY_MINUTES=15
|
||||
|
||||
# Wikipedia language for the featured-article feed
|
||||
WIKIPEDIA_LANG=en
|
||||
Reference in New Issue
Block a user