Skip to content

Commit

Permalink
Merge branch 'main' into test/e2e-chat
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard authored Oct 6, 2023
2 parents e59858d + d2fcb73 commit 8dc2f56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.models # type: ignore
is_model_ok = (brain_details or chat_question).model in userSettings.get("models", ["gpt-3.5-turbo"]) # type: ignore

if not current_user.openai_api_key and brain_id:
brain_details = get_brain_details(brain_id)
Expand Down
2 changes: 1 addition & 1 deletion scripts/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ CREATE TABLE IF NOT EXISTS onboardings (
onboarding_b2 BOOLEAN NOT NULL DEFAULT true,
onboarding_b3 BOOLEAN NOT NULL DEFAULT true,
PRIMARY KEY (user_id)
)
);

insert into
storage.buckets (id, name)
Expand Down

0 comments on commit 8dc2f56

Please sign in to comment.