(i *CreateProvider)
| 106 | } |
| 107 | |
| 108 | func 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 | |
| 123 | func updateHandler(e *ai.Provider, i *SetProvider) { |
| 124 | if i.Name != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected