FreeModel personal BYOK chat support
- Add FreeModel to provider selection and environment/key imports.
- Support text chat and streaming with strict model-identity checks, empty-response protection, and normal HTTP/backoff failover.
- Track the provider's shared account quota without inventing a monthly balance from rate-limit headers.
- Preserve signed catalog delivery: Premium receives new entries immediately; Free receives them after the existing 30-day window. No new model seeds bypass this gate.
FreeModel requires your own API key and Telegram verification. Its advertised
1M-token monthly allowance is shared across models. Keep its wallet unfunded
for free-only use; funded wallets can be charged after the allowance. Review
the provider terms before shared or commercial gateway use; this integration
does not establish permission for resale or a competing service.
The separate catalog update adds 29 tested FreeModel routes and 2 Kenari
routes, disables 7 retired routes without deleting them, and increases the
enabled catalog by 24. Text and streaming passed on all 29 FreeModel routes
through the shipped adapter; tools and vision are not advertised without tests.
Verification
- 22 focused FreeModel adapter tests and provider key-form coverage.
- Full server, CLI, and client regression suites; build, lint, and migration round trip.
- Signed-catalog shape/import/idempotency checks; unchanged day-0/day-29/day-30 gate.
Provider integration: #1830