add server: FastAPI + Docker

Python 3.11 + FastAPI con tre endpoint (/health, /auth/test, /recipes/generate).
Autenticazione via header X-App-Password, validazione input Pydantic,
chiamata in streaming a NVIDIA NIM (nemotron-3-ultra-550b-a55b) con thinking.
Dockerizzato con docker-compose; configurazione tramite .env.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 00:08:07 +02:00
parent d5205ff8b6
commit 3d330655a6
10 changed files with 238 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# Obbligatorie
NVIDIA_API_KEY=your_nvidia_api_key_here
APP_PASSWORD=your_shared_password_here
# Opzionali — i default sono in app/config.py
# NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1
# NVIDIA_MODEL=nvidia/nemotron-3-ultra-550b-a55b
# NVIDIA_TIMEOUT_SECONDS=120
# NVIDIA_MAX_TOKENS=16384
# NVIDIA_TEMPERATURE=1.0
# NVIDIA_TOP_P=0.95
# NVIDIA_REASONING_BUDGET=2048