From d31dcc4dad5463e437a2ffe6e5b228c405b3b68c Mon Sep 17 00:00:00 2001 From: Alisson Date: Fri, 20 Oct 2023 16:15:21 -0300 Subject: [PATCH] content ia max_length email --- .../organization/content_ia_max_length.html | 27 +++++++++++++++++++ .../organization/content_ia_max_length.txt | 9 +++++++ connect/urls.py | 10 +++++++ 3 files changed, 46 insertions(+) create mode 100644 connect/common/templates/common/emails/organization/content_ia_max_length.html create mode 100644 connect/common/templates/common/emails/organization/content_ia_max_length.txt diff --git a/connect/common/templates/common/emails/organization/content_ia_max_length.html b/connect/common/templates/common/emails/organization/content_ia_max_length.html new file mode 100644 index 00000000..2512b50b --- /dev/null +++ b/connect/common/templates/common/emails/organization/content_ia_max_length.html @@ -0,0 +1,27 @@ +{% extends 'authentication/emails/base.html' %} +{% load static i18n %} + +{% block main-content %} +
+
+ {% trans "Hi" %}, + + {{ user_name }} + +
+ +
+ Sua base de conhecimento ultrapassou o limite de caracteres! +
+ +
+ A base de conhecimento da inteligĂȘncia {{ ai_name }} ultrapassou o limite de caracteres. + Ajuste para o limite permitido pelo chatGPT de 25000 caracteres para que ela funcione corretamente. + +

Total de caracteres permitidos: 25000
Total de caracteres da base de conhecimento: 89000

+ +

+

+
+
+{% endblock %} \ No newline at end of file diff --git a/connect/common/templates/common/emails/organization/content_ia_max_length.txt b/connect/common/templates/common/emails/organization/content_ia_max_length.txt new file mode 100644 index 00000000..34199b7a --- /dev/null +++ b/connect/common/templates/common/emails/organization/content_ia_max_length.txt @@ -0,0 +1,9 @@ +{% load i18n %} + +

Oi, {{ user_name }}

+Sua base de conhecimento ultrapassou o limite de caracteres! + +

A base de conhecimento da inteligĂȘncia {{ ai_name }} ultrapassou o limite de caracteres.

+

Ajuste para o limite permitido pelo chatGPT de 25000 caracteres para que ela funcione corretamente.

+ +

Total de caracteres permitidos: 25000
Total de caracteres da base de conhecimento: 89000

diff --git a/connect/urls.py b/connect/urls.py index 82f3c2c9..5d527ccb 100644 --- a/connect/urls.py +++ b/connect/urls.py @@ -221,6 +221,16 @@ def wrapper(request): project_name="TestProject", ) ), + path( + "content-ia", + render_template( + "common/emails/organization/content_ia_max_length.html", + base_url=settings.BASE_URL, + webapp_base_url=settings.WEBAPP_BASE_URL, + ai_name="Teste", + user_name="Alisson" + ) + ), ] ), )