(c *CreateLocalModelPackage)
| 107 | } |
| 108 | |
| 109 | func (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 | |
| 120 | func (i *imlLocalModelPackageService) updateHandler(e *ai.LocalModelPackage, c *EditLocalModelPackage) { |
| 121 | if c.Size != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected