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

Method InitBasicConfigForChatGPT

initialize/handlers.go:156–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154}
155
156func (h *Handler) InitBasicConfigForChatGPT() {
157 proxy_url := h.proxy.GetProxyIP()
158 client := bogdanfinn.NewStdClient()
159 chatgpt.GetDpl(client, proxy_url)
160 //cfStr, err := chatgpt.GetCf(proxy_url)
161 //if err != nil {
162 // fmt.Println(err.Error())
163 //}
164 //chatgpt.BasicCookies = append(chatgpt.BasicCookies, &http.Cookie{Name: "cf_clearance", Value: cfStr, Domain: "https://chatgpt.com"})
165}
166
167func (h *Handler) session(c *gin.Context) {
168 var sessionToken officialtypes.OpenAISessionToken

Callers 1

RegisterRouterFunction · 0.80

Calls 2

NewStdClientFunction · 0.92
GetProxyIPMethod · 0.80

Tested by

no test coverage detected