mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 05:28:16 +00:00
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] {
|
||||
initialProvider = &provider
|
||||
for _, model := range provider.Models {
|
||||
if model.ID == splits[1] {
|
||||
modelID := strings.Join(splits[1:], "/")
|
||||
if model.ID == modelID {
|
||||
initialModel = &model
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue