Skip to content

Commit

Permalink
fix: Image
Browse files Browse the repository at this point in the history
  • Loading branch information
deanxv committed Jul 3, 2024
1 parent 75ae85c commit 8934f14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package common

var Version = "v4.5.5" // this hard coding will be replaced automatically when building, no need to manually change
var Version = "v4.5.6" // this hard coding will be replaced automatically when building, no need to manually change

const (
RequestIdKey = "X-Request-Id"
Expand Down
8 changes: 4 additions & 4 deletions discord/processmessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ func processMessageUpdateForOpenAIImage(m *discordgo.MessageUpdate) model.OpenAI
}
}

for i, match := range subMatches {
for _, match := range subMatches {
response.Data = append(response.Data, &model.OpenAIImagesGenerationDataResponse{
URL: match[i],
URL: match[1],
RevisedPrompt: m.Content,
})
}
Expand Down Expand Up @@ -231,9 +231,9 @@ func processMessageCreateForOpenAIImage(m *discordgo.MessageCreate) model.OpenAI
}
}

for i, match := range subMatches {
for _, match := range subMatches {
response.Data = append(response.Data, &model.OpenAIImagesGenerationDataResponse{
URL: match[i],
URL: match[1],
RevisedPrompt: m.Content,
})
}
Expand Down

0 comments on commit 8934f14

Please sign in to comment.