mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
fix(tui): model/provider arg parsing
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user