-
-
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: the good user management #1158
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/brains-management/[brainId]/components/BrainManagementTabs/components/SettingsTab/hooks/useSettingsTab.ts The code seems to be well written and follows good practices. However, there are a few areas that could be improved for better readability and maintainability:
const MODEL_UPDATE_DELAY = 50;
setTimeout(() => {
if (brain.model !== undefined) {
setValue(\"model\", brain.model);
}
}, MODEL_UPDATE_DELAY);
Risk Level 5 - /home/runner/work/quivr/quivr/backend/routes/upload_routes.py The userDailyUsage = UserUsage(
id=current_user.id,
email=current_user.email,
openai_api_key=current_user.openai_api_key, # This should be encrypted and stored securely
) if openai_api_key is None:
openai_api_key = get_user_identity(current_user.id).openai_api_key # This should be encrypted and stored securely message = await filter_file(
file=file,
enable_summarization=enable_summarization,
brain_id=brain_id,
openai_api_key=openai_api_key, # This should be encrypted and stored securely
) Risk Level 5 - /home/runner/work/quivr/quivr/backend/routes/user_routes.py The userDailyUsage = UserUsage(
id=current_user.id,
email=current_user.email,
openai_api_key=current_user.openai_api_key, # This should be encrypted and stored securely
) 📚🔒🚫 Powered by Code Review GPT |
Screen.Recording.2023-09-13.at.13.20.32.mp4