Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jun 25, 2023
1 parent 1c7f48d commit 0fc49d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions arkose.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@ type arkose_response struct {
}

func get_arkose_token() (string, error) {
resp, err := client.Get("https://ai.fakeopen.com/api/arkose/params")
resp, err := client.Get("http://127.0.0.1:3000/api/arkose")
if err != nil {
return "", err
}
defer resp.Body.Close()
payload, _ := io.ReadAll(resp.Body)
// println(string(payload))
url := "https://tcr9i.chat.openai.com/fc/gt2/public_key/35536E1E-65B4-4D96-9D97-6ADB7EFF8147"
req, _ := http.NewRequest(http.MethodPost, url, bytes.NewReader(payload))
req.Header.Set("Host", "tcr9i.chat.openai.com")
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; rv:114.0) Gecko/20100101 Firefox/114.0")
req.Header.Set("Accept", "*/*")
req.Header.Set("Accept-Language", "en-US,en;q=0.5")
req.Header.Set("Accept-Encoding", "gzip, deflate, br")
req.Header.Set("Content-Type", "application/json")
// form
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
req.Header.Set("Origin", "https://tcr9i.chat.openai.com")
req.Header.Set("DNT", "1")
req.Header.Set("Connection", "keep-alive")
Expand Down
3 changes: 0 additions & 3 deletions unknown.go

This file was deleted.

0 comments on commit 0fc49d9

Please sign in to comment.