()
| 182 | } |
| 183 | |
| 184 | func (c *chatConfigCache) providersGeneration() uint64 { |
| 185 | c.mu.RLock() |
| 186 | generation := c.providerGeneration |
| 187 | c.mu.RUnlock() |
| 188 | return generation |
| 189 | } |
| 190 | |
| 191 | func (c *chatConfigCache) storeProviders(generation uint64, providers []database.AIProvider) { |
| 192 | c.mu.Lock() |