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

Function updateHandler

service/ai/iml.go:123–140  ·  view source on GitHub ↗
(e *ai.Provider, i *SetProvider)

Source from the content-addressed store, hash-verified

121}
122
123func updateHandler(e *ai.Provider, i *SetProvider) {
124 if i.Name != nil {
125 e.Name = *i.Name
126 }
127 if i.DefaultLLM != nil {
128 e.DefaultLLM = *i.DefaultLLM
129 }
130 if i.Config != nil {
131 e.Config = *i.Config
132 }
133 if i.Status != nil {
134 e.Status = *i.Status
135 }
136 if i.Priority != nil {
137 e.Priority = *i.Priority
138 }
139 e.UpdateAt = time.Now()
140}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected