Commit Graph

20 Commits

Author SHA1 Message Date
faber
cebc27cf4c fix: remove fake KV lock, add GET ?flush=force, add .gitignore
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>
2026-07-10 16:24:48 -04:00
faber
2a42b57cfb fix: address review blockers — streaming diagnostics, model counts, KV safety, telemetry schema
- 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>
2026-07-10 16:11:42 -04:00
faber
64170bf9a2 fix: add per-model timeout (25s) and 429 retry with backoff
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>
2026-07-10 15:50:43 -04:00
faber
9420624c03 feat: expand Venice model list to maximize OpenRouter overlap
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>
2026-07-10 15:07:09 -04:00
faber
598e067382 feat: model registry refresh, Venice API support, diagnostic errors, KV telemetry batching
- 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>
2026-07-10 14:57:00 -04:00
pliny
4d4b3e0606 Update README.md 2026-03-25 19:55:07 -07:00
pliny
7f5118743d Update index.html 2026-03-25 15:01:04 -07:00
pliny
75382eac7d Update README.md 2026-03-25 11:59:01 -07:00
pliny
b027ce261f Document Open Research Dataset feature in README
Added information about the Open Research Dataset feature and its implications for user data privacy.
2026-03-25 11:58:21 -07:00
pliny
0dfdbc137f Add files via upload 2026-03-25 11:52:38 -07:00
pliny
cc628128f8 Update README.md 2026-03-25 11:44:48 -07:00
pliny
2c811a19d6 Update README.md 2026-03-25 11:44:32 -07:00
pliny
04af980725 Update README.md 2026-03-25 11:44:18 -07:00
pliny
a6a667abbb Update link format for GODMOD3 website 2026-03-25 11:43:41 -07:00
pliny
f6f8ffb3f4 Update README.md 2026-03-25 11:42:46 -07:00
pliny
7d61fef529 Delete functions/api/gemini.ts 2026-03-25 11:05:43 -07:00
pliny
deb2977793 Update README.md 2026-03-25 10:59:48 -07:00
pliny
ff73ec6284 Update README.md 2026-03-25 10:58:47 -07:00
pliny
48fe778411 Add files via upload 2026-03-25 10:45:38 -07:00
pliny
0a7ffabdb4 Add files via upload 2026-03-25 10:44:35 -07:00