Retry OpenAI privacy opt-out after failed states

This commit is contained in:
weak-fox
2026-03-23 00:10:22 +08:00
parent bda7c39e55
commit ccd42c1d1a
4 changed files with 106 additions and 9 deletions

View File

@@ -2635,10 +2635,8 @@ func (s *adminServiceImpl) EnsureOpenAIPrivacy(ctx context.Context, account *Acc
if s.privacyClientFactory == nil {
return ""
}
if account.Extra != nil {
if _, ok := account.Extra["privacy_mode"]; ok {
return ""
}
if shouldSkipOpenAIPrivacyEnsure(account.Extra) {
return ""
}
token, _ := account.Credentials["access_token"].(string)