mirror of
https://github.com/bitbaum/kivvi.git
synced 2026-12-04 15:47:13 +01:00
The schema said `aiApiKey // encrypted`; the settings action wrote it as typed, and nothing checked it — a mistyped key saved fine and every chat then fell back to the shared models with nobody told why. - A new key is checked with its provider (ai-kit probeByokKey) before saving; a refused key, or a model the key cannot use, is reported in the provider's own words and nothing is stored. - The key is encrypted with the existing integration-secrets helper (same app secret, no new env); keys saved before this still read as-is. - Chat decrypts it; an undecryptable key behaves as no key. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>