-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: add brain prompt overwriting from chat #1012
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
97d0dd7
to
fa753cd
Compare
Risk Level 2 - /home/runner/work/quivr/quivr/backend/llm/openai.py The code changes seem to be safe and follow the SOLID principles. However, there is a potential issue with the Example: if self.prompt_id is not None:
# use prompt_id Risk Level 2 - /home/runner/work/quivr/quivr/backend/routes/chat_routes.py
try:
supabase_db.delete_chat_history(chat_id)
except Exception as e:
logger.error(f'Failed to delete chat history for chat_id {chat_id}: {e}')
raise
Risk Level 3 - /home/runner/work/quivr/quivr/backend/llm/qa_base.py
Example: if self.prompt_id is not None:
# use prompt_id
Example: try:
uuid_obj = UUID(self.brain_id)
except ValueError:
# handle invalid UUID 🔍🐛🔄 Powered by Code Review GPT |
fa753cd
to
def6941
Compare
def6941
to
c4dcdd2
Compare
Description