7 Commits

Author SHA1 Message Date
faber
4d8136bceb docs: make privacy and feature claims source-accurate 2026-07-15 10:07:38 -04:00
faber
affe3d80bc fix: handle Venice error format + expand error classifier
Venice returns {"error": "string"} while OpenRouter returns
{"error": {"message": "..."}}. All three error parse sites
(index.html queryModel, backend queryModel, frontend Venice helper)
now handle both shapes.

Error classifier now catches Venice-specific auth strings:
- "Authentication failed" (Venice bad key)
- "User not found." (OpenRouter bad key)

Diagnostic messages updated to reference both providers.

Verified 7/7 against real API error strings from smoke tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-10 19:00:32 -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
0a7ffabdb4 Add files via upload 2026-03-25 10:44:35 -07:00