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

Method defaultModelConfigSnapshot

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

Source from the content-addressed store, hash-verified

327}
328
329func (c *chatConfigCache) defaultModelConfigSnapshot() modelConfigSnapshot {
330 c.mu.RLock()
331 snap := modelConfigSnapshot{
332 epoch: c.modelTopologyEpoch,
333 generation: c.defaultModelConfigGeneration,
334 }
335 c.mu.RUnlock()
336 return snap
337}
338
339func (c *chatConfigCache) storeDefaultModelConfig(snap modelConfigSnapshot, config database.ChatModelConfig) {
340 c.mu.Lock()

Callers 1

DefaultModelConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected