feat: add providers without a default model

The add-provider form asked for a model even though the room owns that choice. It now asks for a name, kind, base URL, and key. New providers store no default, and New room requires a model before it can submit.

Existing providers keep their model as an optional default. The model picker hides the Provider default row when there is none, and a room with no usable model gets a clear error instead of an empty model reaching the provider.
This commit is contained in:
vhaudiquet committed 2026-11-28 17:31:52 +01:00
1 parent 2216f37422
commit 369075a842
10 files changed
+48 -33

No files matched your search

+3 -2
View File
@@ -102,8 +102,9 @@ issue certificates.
## First room
1. **Settings → Providers.** Add a provider kind, model, and key. Keys
are sealed with the server's master key before they touch SQLite.
1. **Settings → Providers.** Add a provider kind and key. The key is
sealed with the server's master key before it touches SQLite. A new
provider stores no model; the room picks one.
2. **Settings → Sandboxes.** Add a target. Leave the private key empty
and the server generates an ed25519 pair and shows the public key.
Append that line to `~/.ssh/authorized_keys` on the target. Set the