Skip to content

Commit

Permalink
Include the image count and index int the description
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed Apr 10, 2024
1 parent 5c105de commit fc467dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/ChatModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ export const ChatModel = types
userPrompt = message.content
}

message.imageUrls.forEach(imageUrl => {
message.imageUrls.forEach((imageUrl, index) => {
lightBoxSources.push({
description: userPrompt,
description: userPrompt + ` (${index + 1}/${message.imageUrls.length})`,
src: imageUrl,
uniqId: message.uniqId,
})
Expand Down

0 comments on commit fc467dc

Please sign in to comment.