Skip to content

Commit

Permalink
hotfix RAG
Browse files Browse the repository at this point in the history
  • Loading branch information
RostyslavManko authored Feb 28, 2024
1 parent 6642984 commit d89cb0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/api/hackergptstream/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ export const HackerGPTStream = async (
cleanedMessages.length > 0 &&
cleanedMessages[cleanedMessages.length - 1].role === 'user' &&
cleanedMessages[cleanedMessages.length - 1].content.length >
llmConfig.pinecone.messageLength.min
llmConfig.pinecone.messageLength.min &&
cleanedMessages[cleanedMessages.length - 1].content.length <
llmConfig.pinecone.messageLength.max
) {
let latestUserMessage = cleanedMessages[cleanedMessages.length - 1].content;

Expand Down

0 comments on commit d89cb0c

Please sign in to comment.