Skip to content

Commit

Permalink
Merge branch 'main' into test_au
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhou26 authored Apr 4, 2024
2 parents 411bc10 + 93052be commit 134ca9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions httpclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func NewStdClient() *RestyClient {
client.Client.SetRetryCount(3)
client.Client.SetRetryWaitTime(5 * time.Second)
client.Client.SetRetryMaxWaitTime(20 * time.Second)

client.Client.SetTimeout(600 * time.Second)
client.Client.SetHeader("user-agent", browser.Random()).
SetHeader("accept", "*/*").
Expand Down
2 changes: 1 addition & 1 deletion internal/chatgpt/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/aurorax-neo/go-logger"
"io"
"net/http"
"net/url"
Expand Down Expand Up @@ -754,7 +755,6 @@ func GETTokenForRefreshToken(refresh_token string, proxy string) (interface{}, i
}

req, _ := fhttp.NewRequest("POST", url, bytes.NewBuffer(reqBody))

req.Header.Set("authority", "auth0.openai.com")
req.Header.Add("Accept-Language", "en-US,en;q=0.9")
req.Header.Set("Content-Type", "application/json")
Expand Down

0 comments on commit 134ca9c

Please sign in to comment.