Skip to content

Commit

Permalink
fix: question prompt (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
peppescg authored Jan 2, 2025
1 parent 2bece61 commit ae49f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function sanitizeQuestionPrompt({
// Adding the length of "Query:" to the index to start after it
return question.substring(index + "Query:".length).trim();
}
return answer;
return question;
} catch (error) {
// Log the error and return the original question as a fallback
console.error("Error processing the question:", error);
Expand Down

0 comments on commit ae49f64

Please sign in to comment.