| 161 | } |
| 162 | |
| 163 | func providerInputFromDTO(input ProviderInput) appapi.ProviderInput { |
| 164 | return appapi.ProviderInput{ |
| 165 | Name: input.Name, |
| 166 | Endpoint: input.Endpoint, |
| 167 | APIKey: input.APIKey, |
| 168 | APIKeyEnv: input.APIKeyEnv, |
| 169 | SupportedClient: input.SupportedClient, |
| 170 | Clients: input.Clients, |
| 171 | Models: input.Models, |
| 172 | ListModelsCmd: input.ListModelsCmd, |
| 173 | KeepProxyConfig: input.KeepProxyConfig, |
| 174 | UseProxy: input.UseProxy, |
| 175 | Enabled: input.Enabled, |
| 176 | Description: input.Description, |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | func providerPatchFromDTO(input ProviderInput) appapi.ProviderPatch { |
| 181 | patch := appapi.ProviderPatch{ |