fix(tui): model/provider arg parsing

This commit is contained in:
adamdottv 2025-07-08 14:11:48 -05:00
parent 21fbf21cb6
commit c659496b96
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -220,7 +220,8 @@ func (a *App) InitializeProvider() tea.Cmd {
if provider.ID == splits[0] {
initialProvider = &provider
for _, model := range provider.Models {
if model.ID == splits[1] {
modelID := strings.Join(splits[1:], "/")
if model.ID == modelID {
initialModel = &model
}
}