-
-
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(Unplug): chatting without brain streaming #970
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
eb7b984
to
cc8b086
Compare
Risk Level 2 - /home/runner/work/quivr/quivr/backend/core/routes/chat_routes.py
Example changes: import logging
logger = logging.getLogger(__name__)
# In delete_chat_from_db
except Exception as e:
logger.error(f'Error deleting chat history: {e}')
raise
# In check_user_limit
if int(user.requests_count) >= int(max_requests_number):
raise HTTPException(
status_code=429,
detail=\"You have reached the maximum number of requests for today.\"
)
# In create_question_handler
try:
check_user_limit(current_user)
LLMSettings()
except HTTPException as e:
raise e
# Replace print with logger
logger.info('streaming') Risk Level 5 - /home/runner/work/quivr/quivr/backend/core/llm/qa_headless.py The import os
self.openai_api_key = os.getenv('OPENAI_API_KEY') Also, the 🔒🐛🧹 Powered by Code Review GPT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comments
cc8b086
to
ea4d3ae
Compare
|
ea4d3ae
to
90c0bf1
Compare
from typing import AsyncIterable, Awaitable, List | ||
|
||
logger = get_logger(__name__) | ||
SYSTEM_MESSAGE = "Your name is Quivr. You're a helpful assistant. If you don't know the answer, just say that you don't know, don't try to make up an answer." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with only -> "Your name is Quivr. You're a helpful assistant."
* feat(Unplug): Adds new basic headless llm * feat(Unplug): adds chatting without brain option when no streaming * feat(Unplug): adds chatting without brain option when streaming
Description
Adds the possibility to chat with Quivr without selecting some brain