Skip to content

Commit

Permalink
Update indexer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 18, 2024
1 parent 00c82d5 commit 2e8169d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/src/libs/indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@ class Indexer {
return;
}
message.conversation = conversation;
if (message.role === `user`) {
if (
message.role === `user` &&
message.content &&
message.content.length > 0
) {
handleUserMessage(message, this.definition, pubSubClient, redisClient);
}
}
Expand Down

0 comments on commit 2e8169d

Please sign in to comment.