Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
fix failed to get arkose token with proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
linweiyuan committed Sep 11, 2023
1 parent 8cf09fb commit 0a485e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/chatgpt/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func GetArkoseToken() (string, error) {
}

req, _ := http.NewRequest(http.MethodGet, arkoseTokenUrl, nil)
resp, err := api.Client.Do(req)
resp, err := api.ArkoseClient.Do(req)
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion api/imitate/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func GetOpenAIToken() (string, error) {
}
} else {
req, _ := http.NewRequest(http.MethodGet, arkoseTokenUrl, nil)
resp, err := api.Client.Do(req)
resp, err := api.ArkoseClient.Do(req)
if err != nil || resp.StatusCode != http.StatusOK {
return "", err
}
Expand Down

0 comments on commit 0a485e8

Please sign in to comment.