-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: track prompt and brain changes #1058
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/frontend/lib/context/BrainProvider/hooks/useBrainProvider.ts The code seems to be well written and follows good practices. However, there are a few points that could be improved:
try {
const brains = await getBrains();
setAllBrains(brains);
} catch (error) {
// handle error properly
}
const setActiveBrain = useCallback(
({ id, name }: { id: UUID; name: string }) => {
const newActiveBrain = { id, name };
saveBrainInLocalStorage(newActiveBrain);
setCurrentBrainId(id);
},
[saveBrainInLocalStorage, setCurrentBrainId]
); Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/chat/[chatId]/components/ActionsBar/components/ChatInput/components/ChatBar/components/MentionInput/hooks/useMentionInput.tsx The code seems to be well written and follows good practices. However, there are a few points that could be improved:
analytics?.track(\"CHANGE_PROMPT\").catch(error => console.error(error));
setCurrentPromptId(mention.id as UUID ?? someDefaultValue); 🚫🐞🔍 Powered by Code Review GPT |
79937b7
to
55f0c59
Compare
No description provided.