MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / updateHandler

Method updateHandler

service/ai-local/iml.go:195–209  ·  view source on GitHub ↗
(e *ai.LocalModelInstallState, c *EditLocalModelInstallState)

Source from the content-addressed store, hash-verified

193}
194
195func (i *imlLocalModelInstallStateService) updateHandler(e *ai.LocalModelInstallState, c *EditLocalModelInstallState) {
196 if c.Complete != nil {
197 e.Complete = *c.Complete
198 }
199 if c.Total != nil {
200 e.Total = *c.Total
201 }
202 if c.State != nil {
203 e.State = *c.State
204 }
205 if c.Msg != nil {
206 e.LastMsg = *c.Msg
207 }
208 e.UpdateAt = time.Now()
209}
210
211var _ ILocalModelCacheService = &imlLocalModelCacheService{}
212

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected