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

Method updateHandler

service/ai-local/iml.go:61–67  ·  view source on GitHub ↗
(e *ai.LocalModel, c *EditLocalModel)

Source from the content-addressed store, hash-verified

59}
60
61func (i *imlLocalModelService) updateHandler(e *ai.LocalModel, c *EditLocalModel) {
62 if c.State != nil {
63 e.State = *c.State
64 }
65 e.UpdateAt = time.Now()
66
67}
68
69func (i *imlLocalModelService) fromEntity(e *ai.LocalModel) *LocalModel {
70 return &LocalModel{

Callers 1

SaveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected