From 628ff209f1e36c6a9578d3454990b6e2f59a9bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Wed, 22 May 2024 14:10:18 -0300 Subject: [PATCH 1/9] adjusting placeholders customization --- src/locales/en.json | 8 ++++---- src/locales/es.json | 8 ++++---- src/locales/pt_br.json | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index dfec34f2d..3479aad90 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1438,10 +1438,10 @@ } }, "placeholders": { - "instruction": "Instruction", - "name": "Agent's name", - "occupation": "Agent's occupation", - "goal": "Agent's goal" + "instruction": "You're funny but you don't make jokes", + "name": "Tainá", + "occupation": "Llama expert", + "goal": "To answer questions and give information about llamas" }, "instructions": { "title": "General instructions", diff --git a/src/locales/es.json b/src/locales/es.json index 614489972..8900b14bf 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1417,10 +1417,10 @@ } }, "placeholders": { - "instruction": "Instrucción", - "name": "Nombre del agente", - "occupation": "Ocupación del agente", - "goal": "Objetivo del agente" + "instruction": "Eres gracioso pero no haces bromas", + "name": "Tainá", + "occupation": "Experto en llamas", + "goal": "Responder preguntas y dar información sobre llamas" }, "instructions": { "title": "Instrucciones generales", diff --git a/src/locales/pt_br.json b/src/locales/pt_br.json index 329168b88..ecfcdad54 100644 --- a/src/locales/pt_br.json +++ b/src/locales/pt_br.json @@ -1396,10 +1396,10 @@ } }, "placeholders": { - "instruction": "Instrução", - "name": "Nome do agente", - "occupation": "Ocupação do agente", - "goal": "Objetivo do agente" + "instruction": "Você é divertido mas não faz piadas", + "name": "Tainá", + "occupation": "Especialista em lhamas", + "goal": "Tirar dúvidas e dar informações sobre lhamas" }, "instructions": { "title": "Instruções gerais", From fa07444e9d24ead207e2129e0ea58b760085dfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Wed, 22 May 2024 14:38:50 -0300 Subject: [PATCH 2/9] adding select logic in customization --- .../content/router/RouterCustomization.vue | 72 ++++++++----------- 1 file changed, 31 insertions(+), 41 deletions(-) diff --git a/src/views/repository/content/router/RouterCustomization.vue b/src/views/repository/content/router/RouterCustomization.vue index 65fbf9476..5a1012ea9 100644 --- a/src/views/repository/content/router/RouterCustomization.vue +++ b/src/views/repository/content/router/RouterCustomization.vue @@ -17,6 +17,8 @@ :placeholder="$t('customization.placeholders.name')" /> + +
-
-
-
- + -
-
-

- {{ $t(`customization.fields.personalities.${item.label}`) }} -

-
-
-
+
value === e.value); + + return [personality]; + }, async removeInstruction() { try { this.removing = true; @@ -353,11 +348,6 @@ export default { this.saving = false; } }, - handlePersonalitySelect(personality) { - if (this.values.agent.personality === personality.value) { - this.values.agent.personality = ''; - } else this.values.agent.personality = personality.value; - }, }, }; From 9cc536b94d592bf7c07d7680c41c918e2657a5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Wed, 22 May 2024 14:40:28 -0300 Subject: [PATCH 3/9] changing label instruction --- src/locales/en.json | 2 +- src/locales/es.json | 2 +- src/locales/pt_br.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 3479aad90..a9f017651 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1445,7 +1445,7 @@ }, "instructions": { "title": "General instructions", - "sub_title": "How you want the agent to behave. Example: You're funny but you don't make jokes.", + "sub_title": "How you want the agent to behave.", "add_instruction_btn": "Add instruction", "modals": { "title": "Remove instruction", diff --git a/src/locales/es.json b/src/locales/es.json index 8900b14bf..2a1e3a321 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1424,7 +1424,7 @@ }, "instructions": { "title": "Instrucciones generales", - "sub_title": "Cómo quieres que se comporte el agente. Ejemplo: Eres gracioso pero no haces chistes", + "sub_title": "Cómo quieres que se comporte el agente.", "add_instruction_btn": "Añadir instrucción", "modals": { "title": "Quitar instrucción", diff --git a/src/locales/pt_br.json b/src/locales/pt_br.json index ecfcdad54..7c2d1fcf9 100644 --- a/src/locales/pt_br.json +++ b/src/locales/pt_br.json @@ -1403,7 +1403,7 @@ }, "instructions": { "title": "Instruções gerais", - "sub_title": "Como você quer que o agente se comporte. Exemplo: Você é divertido mas não faz piadas.", + "sub_title": "Como você quer que o agente se comporte.", "add_instruction_btn": "Adicionar instrução", "modals": { "title": "Remover instrução", From 6968cbe75be92f667c2ac427a8b453412da1a7b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Vin=C3=ADcius?= Date: Wed, 22 May 2024 15:02:16 -0300 Subject: [PATCH 4/9] adjusting order inputs and adding tooltip in routerTunings --- src/locales/en.json | 1 + src/locales/es.json | 1 + src/locales/pt_br.json | 1 + .../content/router/RouterTunings.vue | 59 +++++++++++++------ 4 files changed, 45 insertions(+), 17 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index a9f017651..252a3ffed 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -85,6 +85,7 @@ "fields": { "model": "Select model", "token": "Token", + "token_info": "Code required to access OpenAI services. Get your token by creating an OpenAI account and generating an API key in the control panel.", "version": "Version", "select-language": "Language", "language": "Select the default language", diff --git a/src/locales/es.json b/src/locales/es.json index 2a1e3a321..b31f82484 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -85,6 +85,7 @@ "fields": { "model": "Seleccionar modelo", "token": "Token", + "token_info": "Código necesario para acceder a los servicios de OpenAI. Obtén tu token creando una cuenta OpenAI y generando una clave API en el panel de control.", "version": "Versión", "version-gpt": "Versión", "select-language": "Idioma", diff --git a/src/locales/pt_br.json b/src/locales/pt_br.json index 7c2d1fcf9..0f87484a8 100644 --- a/src/locales/pt_br.json +++ b/src/locales/pt_br.json @@ -85,6 +85,7 @@ "fields": { "model": "Selecione o modelo", "token": "Token", + "token_info": "Código necessário para acessar os serviços da OpenAI. Obtenha o seu token criando uma conta na OpenAI e gerando uma chave de API no painel de controle.", "version": "Versão", "select-language": "Idioma", "language": "Selecione o idioma padrão", diff --git a/src/views/repository/content/router/RouterTunings.vue b/src/views/repository/content/router/RouterTunings.vue index a20674ecc..3bc770106 100644 --- a/src/views/repository/content/router/RouterTunings.vue +++ b/src/views/repository/content/router/RouterTunings.vue @@ -76,20 +76,45 @@ tag="div" height="46px" /> - - - + + {{ $t(`router.tunings.fields.${field.name}`) }} + + + + + + + Date: Wed, 22 May 2024 16:06:35 -0300 Subject: [PATCH 5/9] adjusting FilesItem to support error layout --- .../repository/content/BasesFormFilesItem.vue | 131 ++++++++++-------- 1 file changed, 71 insertions(+), 60 deletions(-) diff --git a/src/views/repository/content/BasesFormFilesItem.vue b/src/views/repository/content/BasesFormFilesItem.vue index d8be66c0c..fbbd31097 100644 --- a/src/views/repository/content/BasesFormFilesItem.vue +++ b/src/views/repository/content/BasesFormFilesItem.vue @@ -1,66 +1,77 @@