diff --git a/packages/frontend/src/app/pages/info-components/legal/legal.page.html b/packages/frontend/src/app/pages/info-components/legal/legal.page.html index 59a759825..d294a9bed 100644 --- a/packages/frontend/src/app/pages/info-components/legal/legal.page.html +++ b/packages/frontend/src/app/pages/info-components/legal/legal.page.html @@ -157,6 +157,15 @@

RecipeSage Privacy Policy

understanding that we may be unable to provide you with some of your desired services.

+ Use of the cooking assistant relies on the APIs provided by OpenAI and + therefore any interactions that use the cooking assistant or related + functionality is also by proxy subject to their terms of service. +

+ The contributor-only feature that specifies "unlimited" messages is subject + to protections against abuse. Currently, we consider more than 1440 messages + per day as abuse. (there are 1440 minutes in a day, allowing for an + effective rate of 1 message per minute). +

Your continued use of our website will be regarded as acceptance of our practices around privacy and personal information. If you have any questions about how we handle user data and personal information, feel free to contact @@ -206,6 +215,6 @@

RecipeSage Refund Policy



- These terms last updated and effective as of the 20th of January 2024. + These terms last updated and effective as of the 13th of October 2024.

diff --git a/packages/frontend/src/app/pages/messaging-components/assistant/assistant.page.html b/packages/frontend/src/app/pages/messaging-components/assistant/assistant.page.html index e45e55d1d..4a61fd3b2 100644 --- a/packages/frontend/src/app/pages/messaging-components/assistant/assistant.page.html +++ b/packages/frontend/src/app/pages/messaging-components/assistant/assistant.page.html @@ -31,6 +31,7 @@

{{ 'pages.assistant.welcome.1' | translate }}

{{ 'pages.assistant.welcome.2' | translate }}
{{ 'pages.assistant.welcome.3' | translate }}
+ {{ 'pages.assistant.welcome.4' | translate }}
= FREE_MESSAGE_CAP) || + todayMessageCount >= ABUSE_MESSAGE_CAP; + const useLowQualityModel = + moreMessages && todayMessageCount >= CONTRIB_MESSAGE_CAP; - const isOverLimit = todayMessageCount >= messageLimit; - - return isOverLimit; + return { + isOverLimit, + useLowQualityModel, + }; } - async sendChat(content: string, userId: string): Promise { + async sendChat( + content: string, + userId: string, + useLowQualityModel: boolean, + ): Promise { const assistantUser = await prisma.user.findUniqueOrThrow({ where: { email: "assistant@recipesage.com", @@ -172,7 +183,9 @@ export class Assistant { const recipes: Prisma.RecipeUncheckedCreateInput[] = []; const response = await this.openAiHelper.getChatResponseWithTools( - SupportedGPTModel.GPT4O, + useLowQualityModel + ? SupportedGPTModel.GPT4OMini + : SupportedGPTModel.GPT4O, context, [initBuildRecipe(assistantUser.id, recipes)], );