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

Method createEntityHandler

service/ai-local/iml.go:109–118  ·  view source on GitHub ↗
(c *CreateLocalModelPackage)

Source from the content-addressed store, hash-verified

107}
108
109func (i *imlLocalModelPackageService) createEntityHandler(c *CreateLocalModelPackage) *ai.LocalModelPackage {
110 return &ai.LocalModelPackage{
111 Uuid: c.Id,
112 Name: c.Name,
113 Size: c.Size,
114 Hash: c.Hash,
115 Description: c.Description,
116 IsPopular: c.Popular,
117 }
118}
119
120func (i *imlLocalModelPackageService) updateHandler(e *ai.LocalModelPackage, c *EditLocalModelPackage) {
121 if c.Size != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected