MCPcopy Create free account
hub / github.com/LunaSource/Luna / SaveGlobalApiKey

Function SaveGlobalApiKey

config/config.go:71–75  ·  view source on GitHub ↗
(apiKey string)

Source from the content-addressed store, hash-verified

69 return projectCfg
70}
71
72func SaveGlobalApiKey(apiKey string) error {
73 globalCfg := LoadGlobalConfig()
74 globalCfg.ApiKey = apiKey
75 return SaveGlobalConfig(globalCfg)
76}
77
78func SaveGlobalModel(model string) error {

Callers 1

apikey.goFile · 0.92

Calls 2

LoadGlobalConfigFunction · 0.85
SaveGlobalConfigFunction · 0.85

Tested by

no test coverage detected