quivr/frontend/lib/helpers/getChatNameFromQuestion.ts

3 lines
114 B
TypeScript

export const getChatNameFromQuestion = (question: string): string =>
question.split(" ").slice(0, 3).join(" ");