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

Commit

Permalink
fix condition error (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
xqdoo00o authored Aug 16, 2023
1 parent 8ad4d90 commit 9a40630
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/chatgpt/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ func init() {
bx = os.Getenv("BX")
if bx != "" {
// to fix first time 403
funcaptcha.GetOpenAIToken("", "")
funcaptcha.GetOpenAITokenWithBx(bx, "", "")
} else {
bxUrl := os.Getenv("BX_URL")
if bxUrl != "" {
go getBX(bxUrl)
} else {
// to fix first time 403
funcaptcha.GetOpenAIToken("", "")
}
}

Expand Down

0 comments on commit 9a40630

Please sign in to comment.