MCPcopy Index your code
hub / github.com/coder/coder / modelConfigSnapshot

Method modelConfigSnapshot

coderd/x/chatd/configcache.go:263–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261}
262
263func (c *chatConfigCache) modelConfigSnapshot() modelConfigSnapshot {
264 c.mu.RLock()
265 snap := modelConfigSnapshot{epoch: c.modelTopologyEpoch}
266 c.mu.RUnlock()
267 return snap
268}
269
270func (c *chatConfigCache) storeModelConfig(snap modelConfigSnapshot, config database.ChatModelConfig) {
271 c.mu.Lock()

Callers 1

ModelConfigByIDMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected