KV lock removed — KV is eventually consistent and can't do atomic CAS.
Concurrent flushes may produce duplicate JSONL files on HF, which is
harmless (extra telemetry rows, not data loss or corruption).
Added GET /api/telemetry?flush=force so an external cron can trigger
guaranteed periodic flushes regardless of traffic volume.
Added .gitignore (repo had none).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Streaming path now returns diagnostic message (not blank) when all models fail
- All models_queried/models_total counts include Venice entries
- KV flush uses a 60s lock to prevent concurrent flush races
- TTL increased from 24h to 7 days (low-volume batches won't expire)
- Restored all previously-existing telemetry ALLOWED_FIELDS (winner_combo,
stream, fast_stream, has_image, liquid_upgrades, encoding, etc.)
- Replaced AbortSignal.any with compatible signal forwarding pattern
- wrangler.toml no longer has fake namespace ID (commented out for local dev)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Addresses #50#51#52 — queryModel() now has a 25s per-model timeout
so a single hanging model can't stall the entire race, and retries
up to 2x on 429 with exponential backoff (respects retry-after header).
Same retry logic added to the standard chat streaming path.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cross-referenced all 100 Venice API models against the OpenRouter
ULTRAPLINIAN tiers. Venice list now has 44 models (up from 17) with
near-complete overlap where both providers carry the same model, plus
Venice-exclusive additions (deepseek-v4-flash, nemotron-3-ultra-550b,
grok-4-20, gemma-4-31b, sol-pro/terra-pro/luna-pro variants, kimi-k2-6).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Update ULTRAPLINIAN model registry: remove 12 dead OpenRouter models, add frontier models (grok-4.5, glm-5.2, qwen3.7-max, claude-opus-4.8, gpt-5.5/5.6, etc.)
- Add Venice API as a second provider: race Venice models alongside OpenRouter in ULTRAPLINIAN mode when a Venice key is configured
- Replace generic "All models failed" with specific diagnostics (auth, credits, not_found, rate_limit)
- Buffer telemetry in Cloudflare KV and flush as bulk commits to prevent HF commit explosion
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>