initTurnStileWithRetry 初始化 turnstile,当 paid token 返回 401 时自动禁用并轮询下一个
(client **bogdanfinn.TlsClient, secret **tokens.Secret, proxyUrl string)
| 50 | |
| 51 | // initTurnStileWithRetry 初始化 turnstile,当 paid token 返回 401 时自动禁用并轮询下一个 |
| 52 | func (h *Handler) initTurnStileWithRetry(client **bogdanfinn.TlsClient, secret **tokens.Secret, proxyUrl string) (*chatgpt.TurnStile, int, error) { |
| 53 | return h.initTurnStileWithRetryState(client, secret, proxyUrl, nil) |
| 54 | } |
| 55 | |
| 56 | func (h *Handler) initTurnStileWithRetryState(client **bogdanfinn.TlsClient, secret **tokens.Secret, proxyUrl string, state *chatgpt.ChatClientState) (*chatgpt.TurnStile, int, error) { |
| 57 | for { |
no test coverage detected