(cfg *config.Config)
| 788 | } |
| 789 | |
| 790 | func 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 | |
| 801 | func openAICompatInfoFromAuth(a *coreauth.Auth) (providerKey string, compatName string, ok bool) { |
| 802 | if a == nil { |
no test coverage detected