forked from vhaudiquet/rhema-together
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:
1 parent
2216f37422
commit
369075a842
10 files changed
+48
-33
No files matched your search
+1
-1
@@ -173,7 +173,7 @@ export interface ProviderModelsResponse {
|
||||
export interface CreateProviderBody {
|
||||
name: string
|
||||
kind: string
|
||||
model: string
|
||||
model?: string
|
||||
base_url?: string | null
|
||||
api_key?: string
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user