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

Function createEntityHandler

service/ai/iml.go:108–121  ·  view source on GitHub ↗
(i *CreateProvider)

Source from the content-addressed store, hash-verified

106}
107
108func createEntityHandler(i *CreateProvider) *ai.Provider {
109 //cfg, _ := json.Marshal(i.Config)
110 now := time.Now()
111 return &ai.Provider{
112 UUID: i.Id,
113 Name: i.Name,
114 DefaultLLM: i.DefaultLLM,
115 Config: i.Config,
116 Status: i.Status,
117 Type: i.Type,
118 CreateAt: now,
119 UpdateAt: now,
120 }
121}
122
123func updateHandler(e *ai.Provider, i *SetProvider) {
124 if i.Name != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected