MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / resolveCooldownStateAuthDir

Function resolveCooldownStateAuthDir

sdk/cliproxy/service.go:790–799  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

788}
789
790func resolveCooldownStateAuthDir(cfg *config.Config) (string, error) {
791 if cfg == nil {
792 return "", nil
793 }
794 authDir, errAuthDir := util.ResolveAuthDir(cfg.AuthDir)
795 if errAuthDir != nil {
796 return "", errAuthDir
797 }
798 return authDir, nil
799}
800
801func openAICompatInfoFromAuth(a *coreauth.Auth) (providerKey string, compatName string, ok bool) {
802 if a == nil {

Callers 1

Calls 1

ResolveAuthDirFunction · 0.92

Tested by

no test coverage detected