mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-02 03:42:38 +02:00
preselect the first model as default in chat ui
This commit is contained in:
parent
4f95ca91a6
commit
cfc69ebacb
1 changed files with 2 additions and 3 deletions
|
|
@ -246,9 +246,8 @@ function ChatInputInner({
|
|||
return 0
|
||||
})
|
||||
setConfiguredModels(models)
|
||||
if (defaultKey) {
|
||||
setActiveModelKey(defaultKey)
|
||||
}
|
||||
const activeKey = defaultKey || (models[0] ? `${models[0].flavor}/${models[0].model}` : '')
|
||||
if (activeKey) setActiveModelKey(activeKey)
|
||||
}
|
||||
} catch {
|
||||
// No config yet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue