(provider appapi.Provider)
| 565 | } |
| 566 | |
| 567 | func providerEndpointFromAPI(provider appapi.Provider) providers.Endpoint { |
| 568 | enabled := provider.Enabled |
| 569 | return providers.Endpoint{ |
| 570 | Endpoint: provider.Endpoint, |
| 571 | APIKey: provider.APIKey, |
| 572 | APIKeyEnv: provider.APIKeyEnv, |
| 573 | SupportedClient: provider.SupportedClient, |
| 574 | ListModelsCmd: provider.ListModelsCmd, |
| 575 | Models: append([]string(nil), provider.Models...), |
| 576 | KeepProxyConfig: provider.KeepProxyConfig, |
| 577 | UseProxy: provider.UseProxy, |
| 578 | Enabled: &enabled, |
| 579 | Description: provider.Description, |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | func providerInputFromEndpoint(name string, endpoint providers.Endpoint) appapi.ProviderInput { |
| 584 | return appapi.ProviderInput{ |
no outgoing calls
no test coverage detected