on main help sign in
fix: address panic when deciding which model to use
commit0b9532082732424c7d92b8a2bd157b72b50d2fd0 authorAndrey Nering <andreynering@users.noreply.github.com> dateMon 14 Jul 2025, 17:59 (1 year ago) parentf2b9ed0
1 file changed+1
internal/config/load.go+1
internal/config/load.go+1
@@ -301,6 +301,7 @@ func (cfg *Config) defaultModelSelection(knownProviders []provider.Provider) (la
301301 defaultSmallModel := cfg.GetModel(string(p.ID), p.DefaultSmallModelID)
302302 if defaultSmallModel == nil {
303303 err = fmt.Errorf("default small model %s not found for provider %s", p.DefaultSmallModelID, p.ID)
304+ return
304305 }
305306 smallModel = SelectedModel{
306307 Provider: string(p.ID),