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

Method Rename

internal/desktop/provider_service.go:96–105  ·  view source on GitHub ↗
(oldName, newName string)

Source from the content-addressed store, hash-verified

94}
95
96func (s *ProviderService) Rename(oldName, newName string) (ProviderDTO, error) {
97 s.mu.Lock()
98 defer s.mu.Unlock()
99
100 provider, err := s.api().Rename(context.Background(), oldName, newName)
101 if err != nil {
102 return ProviderDTO{}, wrapError("PROVIDER_RENAME_FAILED", err)
103 }
104 return providerDTOFromAPI(provider), nil
105}
106
107func (s *ProviderService) ResolveModels(name string) ([]string, error) {
108 models, err := s.api().ResolveModels(context.Background(), name)

Callers 2

persistMethod · 0.45

Calls 3

apiMethod · 0.95
wrapErrorFunction · 0.85
providerDTOFromAPIFunction · 0.85

Tested by 1