Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deanxv committed Aug 31, 2024
1 parent eb46ddb commit e699f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package common
import "time"

var StartTime = time.Now().Unix() // unit: second
var Version = "v1.1.0" // this hard coding will be replaced automatically when building, no need to manually change
var Version = "v1.1.1" // this hard coding will be replaced automatically when building, no need to manually change
2 changes: 1 addition & 1 deletion utils/openai.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func OpenaiAudit[T model.GetUserContent](c *gin.Context, t T) (model.AuditRespon
if openaiResp.Results[0].Flagged {
for _, label := range labels {
openailabel := strings.Replace(label, "-", "/", 1)
if openaiResp.Results[0].Categories[openailabel] {
if openaiResp.Results[0].Categories[openailabel] || openaiResp.Results[0].Categories[label] {
resultRes := &model.AuditResultResponse{
//MessageIndex: i,
Context: content,
Expand Down

0 comments on commit e699f05

Please sign in to comment.