From 03faf809027aa324ceadbec230128e448313d2f4 Mon Sep 17 00:00:00 2001 From: masao Date: Sat, 7 Oct 2023 13:53:00 +0900 Subject: [PATCH] Revert "fix(question): fixed with user_settings (#1349)" This reverts commit b5c01efb780b122dc4cf2f25bb2bd279c6058259. --- backend/routes/chat_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/chat_routes.py b/backend/routes/chat_routes.py index 4f2970a5a960..7430422ec7d6 100644 --- a/backend/routes/chat_routes.py +++ b/backend/routes/chat_routes.py @@ -209,7 +209,7 @@ async def create_question_handler( openai_api_key=current_user.openai_api_key, ) userSettings = userDailyUsage.get_user_settings() - is_model_ok = (brain_details or chat_question).model in userSettings.get("models", ["gpt-3.5-turbo"]) # type: ignore + is_model_ok = (brain_details or chat_question).model in userSettings.models # type: ignore if not current_user.openai_api_key and brain_id: brain_details = get_brain_details(brain_id)