fix: sync OpenAI plan type from usage limit errors

This commit is contained in:
XiaoYu994
2026-05-11 16:22:40 +08:00
parent dbc8ae658c
commit c3a1471775
4 changed files with 122 additions and 8 deletions
@@ -757,6 +757,8 @@ func (s *AccountTestService) reconcileOpenAI429State(ctx context.Context, accoun
return
}
persistOpenAI429PlanType(ctx, s.accountRepo, account, body)
var resetAt *time.Time
if calculated := calculateOpenAI429ResetTime(headers); calculated != nil {
resetAt = calculated