mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-24 11:52:45 +03:00
feat(notificatins): higher refresh rate (#1184)
* fix * feat(notificatins): higher refresh rate
This commit is contained in:
parent
4fb8c34efd
commit
f362269600
@ -307,8 +307,10 @@ async def create_stream_question_handler(
|
||||
check_user_requests_limit(current_user)
|
||||
gpt_answer_generator: HeadlessQA | OpenAIBrainPicking
|
||||
# TODO check if model is in the list of models available for the user
|
||||
|
||||
print(userSettings.get("models", ["gpt-3.5-turbo"])) # type: ignore
|
||||
is_model_ok = (brain_details or chat_question).model in userSettings.get("models", ["gpt-3.5-turbo"]) # type: ignore
|
||||
|
||||
if brain_id:
|
||||
gpt_answer_generator = OpenAIBrainPicking(
|
||||
chat_id=str(chat_id),
|
||||
|
@ -40,7 +40,7 @@ export const useSelectedChatPage = () => {
|
||||
|
||||
if (hasAPendingNotification) {
|
||||
//30 seconds
|
||||
return 30_000;
|
||||
return 2_000;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user