MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / providerInputFromDTO

Function providerInputFromDTO

internal/desktop/provider_service.go:163–178  ·  view source on GitHub ↗
(input ProviderInput)

Source from the content-addressed store, hash-verified

161}
162
163func 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
180func providerPatchFromDTO(input ProviderInput) appapi.ProviderPatch {
181 patch := appapi.ProviderPatch{

Callers 1

AddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected