Skip to content

Commit

Permalink
Revert "fix(question): fixed with user_settings (QuivrHQ#1349)"
Browse files Browse the repository at this point in the history
This reverts commit b5c01ef.
  • Loading branch information
classcat-air committed Oct 7, 2023
1 parent 7027e90 commit 03faf80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routes/chat_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03faf80

Please sign in to comment.