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

Commit

Permalink
update user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed May 1, 2023
1 parent b2a2bbd commit 13150ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/chatgpt/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func SendRequest(message typings.ChatGPTRequest, access_token string) (*http.Res
return &http.Response{}, err
}
request.Header.Set("Content-Type", "application/json")
request.Header.Set("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36")
request.Header.Set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36")
request.Header.Set("Accept", "*/*")
if access_token != "" {
request.Header.Set("Authorization", "Bearer "+access_token)
Expand Down

0 comments on commit 13150ef

Please sign in to comment.