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

Method createEntityHandler

service/ai-local/iml.go:49–59  ·  view source on GitHub ↗
(c *CreateLocalModel)

Source from the content-addressed store, hash-verified

47 return []map[string]interface{}{{"uuid": c.Id}}
48}
49func (i *imlLocalModelService) createEntityHandler(c *CreateLocalModel) *ai.LocalModel {
50 now := time.Now()
51 return &ai.LocalModel{
52 Uuid: c.Id,
53 Name: c.Name,
54 Provider: c.Provider,
55 State: c.State,
56 CreateAt: now,
57 UpdateAt: now,
58 }
59}
60
61func (i *imlLocalModelService) updateHandler(e *ai.LocalModel, c *EditLocalModel) {
62 if c.State != nil {

Callers 2

CreateMethod · 0.45
CreateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected