feat(notificatins): higher refresh rate (#1184)

* fix

* feat(notificatins): higher refresh rate
This commit is contained in:
Stan Girard 2023-09-16 13:51:08 +02:00 committed by GitHub
parent 4fb8c34efd
commit f362269600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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),

View File

@ -40,7 +40,7 @@ export const useSelectedChatPage = () => {
if (hasAPendingNotification) {
//30 seconds
return 30_000;
return 2_000;
}
return false;