fix(tui): model/provider arg parsing
This commit is contained in:
parent
21fbf21cb6
commit
c659496b96
1 changed files with 2 additions and 1 deletions
|
|
@ -220,7 +220,8 @@ func (a *App) InitializeProvider() tea.Cmd {
|
||||||
if provider.ID == splits[0] {
|
if provider.ID == splits[0] {
|
||||||
initialProvider = &provider
|
initialProvider = &provider
|
||||||
for _, model := range provider.Models {
|
for _, model := range provider.Models {
|
||||||
if model.ID == splits[1] {
|
modelID := strings.Join(splits[1:], "/")
|
||||||
|
if model.ID == modelID {
|
||||||
initialModel = &model
|
initialModel = &model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue