MCPcopy Create free account
hub / github.com/aurora-develop/aurora / initTurnStileWithRetry

Method initTurnStileWithRetry

initialize/handlers.go:52–54  ·  view source on GitHub ↗

initTurnStileWithRetry 初始化 turnstile,当 paid token 返回 401 时自动禁用并轮询下一个

(client **bogdanfinn.TlsClient, secret **tokens.Secret, proxyUrl string)

Source from the content-addressed store, hash-verified

50
51// initTurnStileWithRetry 初始化 turnstile,当 paid token 返回 401 时自动禁用并轮询下一个
52func (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
56func (h *Handler) initTurnStileWithRetryState(client **bogdanfinn.TlsClient, secret **tokens.Secret, proxyUrl string, state *chatgpt.ChatClientState) (*chatgpt.TurnStile, int, error) {
57 for {

Callers 3

imageGenerationsMethod · 0.95
runImageEditFlowMethod · 0.95
chatgptConversationMethod · 0.95

Calls 1

Tested by

no test coverage detected