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

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
linweiyuan committed Jul 7, 2023
1 parent fe6e761 commit 60de6b5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions api/chatgpt/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ import (

//goland:noinspection SpellCheckingInspection
var (

arkoseTokenUrl string
puid string
bx string
//arkoseValidatePattern = "sup=1|rid="

)

//goland:noinspection SpellCheckingInspection
Expand Down Expand Up @@ -66,11 +63,6 @@ func CreateConversation(c *gin.Context) {
return
}

//if !strings.Contains(arkoseToken, arkoseValidatePattern) {
// c.AbortWithStatusJSON(http.StatusInternalServerError, api.ReturnMessage(builtInArkoseTokenIllegalMessage))
// return
//}

request.ArkoseToken = arkoseToken
} else {
req, _ := http.NewRequest(http.MethodGet, arkoseTokenUrl, nil)
Expand All @@ -84,10 +76,6 @@ func CreateConversation(c *gin.Context) {
responseMap := make(map[string]interface{})
json.NewDecoder(resp.Body).Decode(&responseMap)
arkoseToken := responseMap["token"].(string)
//if !strings.Contains(arkoseToken, arkoseValidatePattern) {
// c.AbortWithStatusJSON(http.StatusInternalServerError, api.ReturnMessage(ArkoseTokenIllegalMessage+arkoseTokenUrl))
// return
//}
request.ArkoseToken = arkoseToken
}
}
Expand Down

0 comments on commit 60de6b5

Please sign in to comment.