package modelstore import "sync" // Store keeps the globally selected AI model in memory. type Store struct { mu sync.RWMutex selected string } // New constructs an empty in-memory model store. func New() *Store { return &Store{} } // Get returns the currently selected model, or empty for default behavior. func (s *Store) Get() string { s.mu.RLock() defer s.mu.RUnlock() return s.selected } // Set updates the currently selected model. func (s *Store) Set(model string) { s.mu.Lock() defer s.mu.Unlock() s.selected = model }