From e0ff99ff6e7752190747ba8339449b9f4d1603c2 Mon Sep 17 00:00:00 2001 From: Christoph Proeschel Date: Mon, 24 Oct 2022 13:57:20 +0200 Subject: [PATCH 1/3] [#3836] Hotfix crashing whatsapp (#3876) --- VERSION | 2 +- backend/components/rasa/helm/BUILD | 29 +-------- .../co/airy/core/sources/whatsapp/Stores.java | 6 +- .../resources/application.properties | 0 .../whatsapp/helm/templates/deployments.yaml | 11 ++++ docs/docs/changelog.md | 65 ++++--------------- 6 files changed, 31 insertions(+), 82 deletions(-) rename backend/components/whatsapp/connector/src/main/{java => }/resources/application.properties (100%) diff --git a/VERSION b/VERSION index 564edf82dd..a3968efc37 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.50.0 +0.50.1 diff --git a/backend/components/rasa/helm/BUILD b/backend/components/rasa/helm/BUILD index 1f602ed4a8..45805d5f1c 100644 --- a/backend/components/rasa/helm/BUILD +++ b/backend/components/rasa/helm/BUILD @@ -1,28 +1,3 @@ -load("@rules_pkg//:pkg.bzl", "pkg_tar") -load("@com_github_airyhq_bazel_tools//helm:helm.bzl", "helm_template_test") -load("//tools/build:helm.bzl", "helm_push") +load("//tools/build:helm.bzl", "helm_ruleset_core_version") -filegroup( - name = "files", - srcs = glob( - ["**/*"], - exclude = ["BUILD"], - ), - visibility = ["//visibility:public"], -) - -pkg_tar( - name = "package", - srcs = [":files"], - extension = "tgz", - strip_prefix = "./", -) - -helm_template_test( - name = "template", - chart = ":package", -) - -helm_push( - chart = ":package", -) +helm_ruleset_core_version() diff --git a/backend/components/whatsapp/connector/src/main/java/co/airy/core/sources/whatsapp/Stores.java b/backend/components/whatsapp/connector/src/main/java/co/airy/core/sources/whatsapp/Stores.java index 439b046a10..cd0a15c0e8 100644 --- a/backend/components/whatsapp/connector/src/main/java/co/airy/core/sources/whatsapp/Stores.java +++ b/backend/components/whatsapp/connector/src/main/java/co/airy/core/sources/whatsapp/Stores.java @@ -75,17 +75,17 @@ public void onApplicationEvent(ApplicationStartedEvent applicationStartedEvent) // Foreign key join on channels so that we have channels information for marking messages read final KTable messagesWithChannel = messageStream.toTable().join(channelsTable, Message::getChannelId, - (message, channel) -> MessageWithChannel.builder().channel(channel).message(message).build()); + (message, channel) -> MessageWithChannel.builder().channel(channel).message(message).build()); // Contact messages table for marking them as read final KTable markMessageReadTable = metadataStream - .filter((id, metadata) -> metadata.getKey().equals(MetadataKeys.MessageKeys.Source.ID)) + .filter((id, metadata) -> metadata != null && metadata.getKey().equals(MetadataKeys.MessageKeys.Source.ID)) .groupBy((id, metadata) -> getSubject(metadata).getIdentifier()) .reduce((v1, v2) -> v2) .join(messagesWithChannel, (metadata, messageWithChannel) -> messageWithChannel.toBuilder().sourceMessageId(metadata.getValue()).build()); - metadataStream.filter((id, metadata) -> metadata.getKey().equals(MetadataKeys.MessageKeys.READ_BY_USER)) + metadataStream.filter((id, metadata) -> metadata != null && metadata.getKey().equals(MetadataKeys.MessageKeys.READ_BY_USER)) .selectKey((id, metadata) -> getSubject(metadata).getIdentifier()) .join(markMessageReadTable, (metadata, messageWithChannel) -> messageWithChannel) .peek((messageId, messageWithChannel) -> connector.markMessageRead(messageWithChannel)); diff --git a/backend/components/whatsapp/connector/src/main/java/resources/application.properties b/backend/components/whatsapp/connector/src/main/resources/application.properties similarity index 100% rename from backend/components/whatsapp/connector/src/main/java/resources/application.properties rename to backend/components/whatsapp/connector/src/main/resources/application.properties diff --git a/backend/components/whatsapp/helm/templates/deployments.yaml b/backend/components/whatsapp/helm/templates/deployments.yaml index a6289c8869..1fcbff4b11 100644 --- a/backend/components/whatsapp/helm/templates/deployments.yaml +++ b/backend/components/whatsapp/helm/templates/deployments.yaml @@ -37,6 +37,17 @@ spec: name: core-config - configMapRef: name: "{{ .Values.name }}" + env: + - name: REQUESTED_CPU + valueFrom: + resourceFieldRef: + containerName: app + resource: requests.cpu + - name: LIMIT_CPU + valueFrom: + resourceFieldRef: + containerName: app + resource: limits.cpu livenessProbe: httpGet: path: /actuator/health diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index e613e90412..7b638a7da7 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -3,6 +3,20 @@ title: Changelog sidebar_label: 📝 Changelog --- +## 0.50.1 + +#### Hotfix + +- [[#3868](https://github.com/airyhq/airy/issues/3868)] Fix Whatsapp component crash + +#### Airy CLI + +You can download the Airy CLI for your operating system from the following links: + +[MacOS](https://airy-core-binaries.s3.amazonaws.com/0.50.1/darwin/amd64/airy) +[Linux](https://airy-core-binaries.s3.amazonaws.com/0.50.1/linux/amd64/airy) +[Windows](https://airy-core-binaries.s3.amazonaws.com/0.50.1/windows/amd64/airy.exe) + ## 0.50.0 #### Changes @@ -1316,54 +1330,3 @@ You can download the Airy CLI for your operating system from the following links In the `airy.yaml` file, `host` is moved from the `kubernetes` section, into the `ingress` section. -## 0.30.0 - -#### 🚀 Features - -- [[#2274](https://github.com/airyhq/airy/issues/2274)] Introduce the source API [[#2327](https://github.com/airyhq/airy/pull/2327)] -- [[#2328](https://github.com/airyhq/airy/issues/2328)] Display any source in the inbox [[#2368](https://github.com/airyhq/airy/pull/2368)] -- [[#2227](https://github.com/airyhq/airy/issues/2227)] Instagram source show story reply in inbox UI [[#2367](https://github.com/airyhq/airy/pull/2367)] -- [[#2229](https://github.com/airyhq/airy/issues/2229)] Instagram source render story mention in inbox UI [[#2363](https://github.com/airyhq/airy/pull/2363)] - -#### 🐛 Bug Fixes - -- [[#2370](https://github.com/airyhq/airy/issues/2370)] Fix inbox counter bug when paginating [[#2371](https://github.com/airyhq/airy/pull/2371)] -- [[#2337](https://github.com/airyhq/airy/issues/2337)] Fix webhook publisher crash for deleted messages [[#2340](https://github.com/airyhq/airy/pull/2340)] -- [[#2275](https://github.com/airyhq/airy/issues/2275)] Fixing typos in webhook docs [[#2338](https://github.com/airyhq/airy/pull/2338)] - -#### 📚 Documentation - -- [[#2243](https://github.com/airyhq/airy/issues/2243)] Improve upgrade docs [[#2339](https://github.com/airyhq/airy/pull/2339)] -- [[#2335](https://github.com/airyhq/airy/issues/2335)] Update release process docs [[#2336](https://github.com/airyhq/airy/pull/2336)] - -#### 🧰 Maintenance - -- Bump sass from 1.38.2 to 1.39.0 [[#2377](https://github.com/airyhq/airy/pull/2377)] -- Bump react-router-dom from 5.2.1 to 5.3.0 [[#2373](https://github.com/airyhq/airy/pull/2373)] -- Bump core-js from 3.16.4 to 3.17.2 [[#2375](https://github.com/airyhq/airy/pull/2375)] -- Bump @babel/preset-env from 7.15.0 to 7.15.4 [[#2372](https://github.com/airyhq/airy/pull/2372)] -- Bump immer from 9.0.3 to 9.0.6 [[#2369](https://github.com/airyhq/airy/pull/2369)] -- Bump terser-webpack-plugin from 5.1.4 to 5.2.0 [[#2364](https://github.com/airyhq/airy/pull/2364)] -- Bump @typescript-eslint/eslint-plugin from 4.29.2 to 4.30.0 [[#2356](https://github.com/airyhq/airy/pull/2356)] -- Bump react-markdown from 7.0.0 to 7.0.1 [[#2365](https://github.com/airyhq/airy/pull/2365)] -- Bump @typescript-eslint/parser from 4.29.3 to 4.30.0 [[#2361](https://github.com/airyhq/airy/pull/2361)] -- Bump @types/node from 16.7.1 to 16.7.10 [[#2362](https://github.com/airyhq/airy/pull/2362)] -- Bump tar from 6.1.4 to 6.1.11 in /docs [[#2359](https://github.com/airyhq/airy/pull/2359)] -- Bump @types/react-window-infinite-loader from 1.0.4 to 1.0.5 [[#2348](https://github.com/airyhq/airy/pull/2348)] -- Bump core-js from 3.16.2 to 3.16.4 [[#2357](https://github.com/airyhq/airy/pull/2357)] -- Bump @typescript-eslint/parser from 4.29.2 to 4.29.3 [[#2350](https://github.com/airyhq/airy/pull/2350)] -- Bump eslint-plugin-react from 7.24.0 to 7.25.1 [[#2343](https://github.com/airyhq/airy/pull/2343)] -- Bump cypress from 8.3.0 to 8.3.1 [[#2344](https://github.com/airyhq/airy/pull/2344)] -- Bump @stomp/stompjs from 6.1.0 to 6.1.1 [[#2347](https://github.com/airyhq/airy/pull/2347)] -- Bump react-router-dom from 5.2.0 to 5.2.1 [[#2346](https://github.com/airyhq/airy/pull/2346)] -- Bump sass from 1.38.0 to 1.38.2 [[#2342](https://github.com/airyhq/airy/pull/2342)] -- Bump @typescript-eslint/eslint-plugin from 4.29.1 to 4.29.2 [[#2296](https://github.com/airyhq/airy/pull/2296)] - -#### Airy CLI - -You can download the Airy CLI for your operating system from the following links: - -[MacOS](https://airy-core-binaries.s3.amazonaws.com/0.30.0/darwin/amd64/airy) -[Linux](https://airy-core-binaries.s3.amazonaws.com/0.30.0/linux/amd64/airy) -[Windows](https://airy-core-binaries.s3.amazonaws.com/0.30.0/windows/amd64/airy.exe) - From 6535d361d26036765b7086c545422c006b601b6d Mon Sep 17 00:00:00 2001 From: Bilge Date: Mon, 31 Oct 2022 10:19:06 +0100 Subject: [PATCH 2/3] Update changelog # --- docs/docs/changelog.md | 96 ++++++++++++++++++++++++------------------ 1 file changed, 54 insertions(+), 42 deletions(-) diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index 7b638a7da7..3c3957ab63 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -3,6 +3,60 @@ title: Changelog sidebar_label: 📝 Changelog --- +## 0.51.0 + +#### 🚀 Features + +- [[#3881](https://github.com/airyhq/airy/issues/3881)] Increase timeout for helm job +- [[#3864](https://github.com/airyhq/airy/issues/3864)] Improved configure connectors container [[#3865](https://github.com/airyhq/airy/pull/3865)] +- [[#3642](https://github.com/airyhq/airy/issues/3642)] Added tooltips channel connectors [[#3859](https://github.com/airyhq/airy/pull/3859)] +- [[#3719](https://github.com/airyhq/airy/issues/3719)] Updating all Source Connector [[#3849](https://github.com/airyhq/airy/pull/3849)] +- [[#3825](https://github.com/airyhq/airy/issues/3825)] Support Cognigy AI non text flow nodes [[#3826](https://github.com/airyhq/airy/pull/3826)] +- [[#3839](https://github.com/airyhq/airy/issues/3839)] Adapted connectors useSelector according components.get +- [[#3822](https://github.com/airyhq/airy/issues/3822)] Added Notification Configurations [[#3834](https://github.com/airyhq/airy/pull/3834)] +- [[#3693](https://github.com/airyhq/airy/issues/3693)] API components installer [[#3761](https://github.com/airyhq/airy/pull/3761)] +- [[#3762](https://github.com/airyhq/airy/issues/3762)] Cognigy connector [[#3778](https://github.com/airyhq/airy/pull/3778)] + +#### 🐛 Bug Fixes + +- [[#3862](https://github.com/airyhq/airy/issues/3862)] Fixed icons and improved animations [[#3863](https://github.com/airyhq/airy/pull/3863)] +- [[#3835](https://github.com/airyhq/airy/issues/3835)] Fix unread counter crash [[#3836](https://github.com/airyhq/airy/pull/3836)] +- [[#3820](https://github.com/airyhq/airy/issues/3820)] Fixes for Cognigy AI on Control Center [[#3821](https://github.com/airyhq/airy/pull/3821)] +- [[#3813](https://github.com/airyhq/airy/issues/3813)] Fixes to SearchBar on the Control Center UI [[#3818](https://github.com/airyhq/airy/pull/3818)] +- [[#3804](https://github.com/airyhq/airy/issues/3804)] Fix using existing subnets for AWS [[#3812](https://github.com/airyhq/airy/pull/3812)] +- [[#3800](https://github.com/airyhq/airy/issues/3800)] Minor fixes [[#3803](https://github.com/airyhq/airy/pull/3803)] + +#### 📚 Documentation + +- [[#3801](https://github.com/airyhq/airy/issues/3801)] Cognigy AI docs [[#3807](https://github.com/airyhq/airy/pull/3807)] + +#### 🧰 Maintenance + +- Bump @types/node from 18.8.2 to 18.11.4 [[#3872](https://github.com/airyhq/airy/pull/3872)] +- Bump react-redux from 8.0.2 to 8.0.4 [[#3772](https://github.com/airyhq/airy/pull/3772)] +- Bump @testing-library/dom from 8.18.1 to 8.19.0 [[#3846](https://github.com/airyhq/airy/pull/3846)] +- Bump i18next from 21.9.2 to 21.10.0 [[#3847](https://github.com/airyhq/airy/pull/3847)] +- Bump @babel/preset-env from 7.19.3 to 7.19.4 [[#3848](https://github.com/airyhq/airy/pull/3848)] +- Bump @pmmmwh/react-refresh-webpack-plugin from 0.5.7 to 0.5.8 [[#3843](https://github.com/airyhq/airy/pull/3843)] +- Bump @svgr/webpack from 6.4.0 to 6.5.0 [[#3845](https://github.com/airyhq/airy/pull/3845)] +- Bump babel-jest from 29.1.2 to 29.2.0 [[#3842](https://github.com/airyhq/airy/pull/3842)] +- Bump cypress from 10.9.0 to 10.10.0 [[#3844](https://github.com/airyhq/airy/pull/3844)] +- Bump @babel/plugin-proposal-object-rest-spread from 7.18.9 to 7.19.4 [[#3837](https://github.com/airyhq/airy/pull/3837)] +- Bump @svgr/plugin-svgo from 6.3.1 to 6.5.0 [[#3831](https://github.com/airyhq/airy/pull/3831)] +- Bump jest-environment-jsdom from 29.1.2 to 29.2.0 [[#3832](https://github.com/airyhq/airy/pull/3832)] +- Bump minimist from 1.2.6 to 1.2.7 [[#3833](https://github.com/airyhq/airy/pull/3833)] +- Bump eslint-plugin-react from 7.31.8 to 7.31.10 [[#3828](https://github.com/airyhq/airy/pull/3828)] +- Bump @reduxjs/toolkit from 1.8.5 to 1.8.6 [[#3808](https://github.com/airyhq/airy/pull/3808)] +- Bump preact from 10.11.0 to 10.11.2 [[#3829](https://github.com/airyhq/airy/pull/3829)] + +#### Airy CLI + +You can download the Airy CLI for your operating system from the following links: + +[MacOS](https://airy-core-binaries.s3.amazonaws.com/0.51.0/darwin/amd64/airy) +[Linux](https://airy-core-binaries.s3.amazonaws.com/0.51.0/linux/amd64/airy) +[Windows](https://airy-core-binaries.s3.amazonaws.com/0.51.0/windows/amd64/airy.exe) + ## 0.50.1 #### Hotfix @@ -1288,45 +1342,3 @@ You can download the Airy CLI for your operating system from the following links [Linux](https://airy-core-binaries.s3.amazonaws.com/0.31.1/linux/amd64/airy) [Windows](https://airy-core-binaries.s3.amazonaws.com/0.31.1/windows/amd64/airy.exe) -## 0.31.0 - -#### 🚀 Features - -- [[#628](https://github.com/airyhq/airy/issues/628)] Make library compatible with node.js [[#2426](https://github.com/airyhq/airy/pull/2426)] -- [[#2405](https://github.com/airyhq/airy/issues/2405)] Icons for Rendering/Sending File Attachments [[#2420](https://github.com/airyhq/airy/pull/2420)] -- [[#2406](https://github.com/airyhq/airy/issues/2406)] Instagram Source: Render Messages with Media & Share in Inbox UI [[#2419](https://github.com/airyhq/airy/pull/2419)] -- [[#2109](https://github.com/airyhq/airy/issues/2109)] Render send file attachments via facebook messenger [[#2404](https://github.com/airyhq/airy/pull/2404)] -- [[#2257](https://github.com/airyhq/airy/issues/2257)] Add analytics demo [[#2325](https://github.com/airyhq/airy/pull/2325)] - -#### 🐛 Bug Fixes - -- [[#2390](https://github.com/airyhq/airy/issues/2390)] Add ingress class for ngrok [[#2408](https://github.com/airyhq/airy/pull/2408)] -- [[#2390](https://github.com/airyhq/airy/issues/2390)] Switch to nginx ingress controller [[#2402](https://github.com/airyhq/airy/pull/2402)] -- [[#2394](https://github.com/airyhq/airy/issues/2394)] Fixes source api ingress typo [[#2395](https://github.com/airyhq/airy/pull/2395)] - -#### 📚 Documentation - -- [[#2401](https://github.com/airyhq/airy/issues/2401)] Improve AWS docs [[#2409](https://github.com/airyhq/airy/pull/2409)] -- [[#2257](https://github.com/airyhq/airy/issues/2257)] Rename files [[#2412](https://github.com/airyhq/airy/pull/2412)] -- [[#2390](https://github.com/airyhq/airy/issues/2390)] Document supported Minikube versions [[#2391](https://github.com/airyhq/airy/pull/2391)] - -#### 🧰 Maintenance - -- Bump cypress from 8.3.1 to 8.4.1 [[#2418](https://github.com/airyhq/airy/pull/2418)] -- Bump @babel/preset-env from 7.15.4 to 7.15.6 [[#2417](https://github.com/airyhq/airy/pull/2417)] -- Bump axios from 0.21.1 to 0.21.4 in /docs [[#2410](https://github.com/airyhq/airy/pull/2410)] -- Bump @types/node from 16.7.13 to 16.9.4 [[#2415](https://github.com/airyhq/airy/pull/2415)] -- Bump terser-webpack-plugin from 5.2.3 to 5.2.4 [[#2398](https://github.com/airyhq/airy/pull/2398)] - -#### Airy CLI - -You can download the Airy CLI for your operating system from the following links: - -[MacOS](https://airy-core-binaries.s3.amazonaws.com/0.31.0/darwin/amd64/airy) -[Linux](https://airy-core-binaries.s3.amazonaws.com/0.31.0/linux/amd64/airy) -[Windows](https://airy-core-binaries.s3.amazonaws.com/0.31.0/windows/amd64/airy.exe) - -#### Upgrade notes - -In the `airy.yaml` file, `host` is moved from the `kubernetes` section, into the `ingress` section. - From 8911af6f5541562a1bf5fb2e8873038f8ef2980a Mon Sep 17 00:00:00 2001 From: Aitor Algorta Date: Tue, 25 Jun 2024 10:23:42 +0200 Subject: [PATCH 3/3] small improvements --- .../src/actions/streams/index.ts | 1 - .../src/components/ChannelAvatar/index.tsx | 31 +++++--- .../SetConfigInputs.module.scss | 12 +++ .../SetConfigInputs/SetConfigInputs.tsx | 60 +++++++++------ .../EnrichedSchemaSection/index.tsx | 1 - .../assets/images/icons/anthropic.svg | 15 ++++ lib/typescript/assets/images/icons/aws.svg | 5 ++ .../assets/images/icons/google-ai.svg | 1 + lib/typescript/assets/images/icons/groq.svg | 38 ++++++++++ .../assets/images/icons/mistral-ai.svg | 32 ++++++++ lib/typescript/translations/translations.ts | 75 ++++++++++++++++++- 11 files changed, 234 insertions(+), 37 deletions(-) create mode 100644 lib/typescript/assets/images/icons/anthropic.svg create mode 100644 lib/typescript/assets/images/icons/aws.svg create mode 100644 lib/typescript/assets/images/icons/google-ai.svg create mode 100644 lib/typescript/assets/images/icons/groq.svg create mode 100644 lib/typescript/assets/images/icons/mistral-ai.svg diff --git a/frontend/control-center/src/actions/streams/index.ts b/frontend/control-center/src/actions/streams/index.ts index 2813ef3e8d..20f6e4d350 100644 --- a/frontend/control-center/src/actions/streams/index.ts +++ b/frontend/control-center/src/actions/streams/index.ts @@ -70,7 +70,6 @@ export const getTopicInfo = (topicName: string) => async (dispatch: Dispatch async (dispatch: Dispatch) => { return getData('schemas.list').then(response => { - console.log(response); dispatch(setTopicSchemasAction(response)); return Promise.resolve(true); }); diff --git a/frontend/control-center/src/components/ChannelAvatar/index.tsx b/frontend/control-center/src/components/ChannelAvatar/index.tsx index 6894e2c241..5e2c45464c 100644 --- a/frontend/control-center/src/components/ChannelAvatar/index.tsx +++ b/frontend/control-center/src/components/ChannelAvatar/index.tsx @@ -23,11 +23,15 @@ import {ReactComponent as MetaAvatar} from 'assets/images/icons/meta.svg'; import {ReactComponent as OpenaiAvatar} from 'assets/images/icons/openai.svg'; import {ReactComponent as PineconeAvatar} from 'assets/images/icons/pinecone.svg'; import {ReactComponent as ChromaAvatar} from 'assets/images/icons/chroma.svg'; -import {ReactComponent as MosaicAvatar} from 'assets/images/icons/mosaic.svg'; import {ReactComponent as WeaviateAvatar} from 'assets/images/icons/weaviate.svg'; import {ReactComponent as GmailAvatar} from 'assets/images/icons/gmail.svg'; import {ReactComponent as SlackAvatar} from 'assets/images/icons/slack.svg'; import {ReactComponent as FlinkAvatar} from 'assets/images/icons/flink.svg'; +import {ReactComponent as AnthropicAvatar} from 'assets/images/icons/anthropic.svg'; +import {ReactComponent as MistralAvatar} from 'assets/images/icons/mistral-ai.svg'; +import {ReactComponent as GoogleAIAvatar} from 'assets/images/icons/google-ai.svg'; +import {ReactComponent as GroqAvatar} from 'assets/images/icons/groq.svg'; +import {ReactComponent as AWSBedrockAvatar} from 'assets/images/icons/aws.svg'; import {Channel, Source} from 'model'; import styles from './index.module.scss'; @@ -114,30 +118,37 @@ export const getChannelAvatar = (source: string) => { case 'FAISS connector': return ; case Source.llama2: - case 'LLama2': + case 'Llama2': return ; case Source.openaiConnector: - case 'OpenAI connector': + case 'OpenAI': return ; case Source.pineconeConnector: - case 'Pinecone connector': + case 'Pinecone': return ; case Source.chroma: case 'Chroma': return ; - case Source.mosaic: - case 'Mosaic': - return ; case Source.weaviate: case 'Weaviate': return ; case Source.gmail: - case 'GMail connector': + case 'Gmail': return ; - case 'Slack connector': + case 'Slack': return ; - case 'Flink connector': + case 'Flink': return ; + case 'Anthropic': + return ; + case 'Mistral AI': + return ; + case 'Google AI Studio': + return ; + case 'groq': + return ; + case 'AWS Bedrock': + return ; default: return ; diff --git a/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.module.scss b/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.module.scss index 6edffe1583..ab1ed99112 100644 --- a/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.module.scss +++ b/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.module.scss @@ -14,3 +14,15 @@ height: 80px; margin-right: 24px; } + +.dropdownTitle { + font-family: 'Lato', sans-serif; + font-size: 14px; + font-weight: bold; + display: flex; + color: var(--color-text-contrast); + height: 20px; + display: flex; + align-items: center; + margin-bottom: 4px; +} diff --git a/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.tsx b/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.tsx index 697c299254..fb8e01f473 100644 --- a/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.tsx +++ b/frontend/control-center/src/pages/Connectors/ConfigureConnector/SetConfigInputs/SetConfigInputs.tsx @@ -1,4 +1,4 @@ -import {Input} from 'components'; +import {Dropdown, Input} from 'components'; import {Source} from 'model'; import React, {Dispatch, SetStateAction, useEffect, useState} from 'react'; import {useTranslation} from 'react-i18next'; @@ -59,26 +59,44 @@ export const SetConfigInputs = (props: SetConfigInputsProps) => { const sensitive = label.includes('Token') || label.includes('Password') || label.includes('Secret'); const placeholder = source === 'rasa' ? t(`rasaPlaceholder`) : hasSteps ? stepPlaceholder : defaultPlaceholder; - inputArr.push( -
- ) => setInput({...input, [keyTyped]: e.target.value})} - label={label} - placeholder={placeholder} - showLabelIcon - tooltipText={t(`inputTooltip${capitalSource}${toolTip}`)} - required={valueTyped !== 'optionalString'} - height={32} - fontClass="font-base" - /> -
- ); + if (configurationValues[key].split('/')[0] === 'dropdown') { + const dropdownOptions = configurationValues[key].replace('dropdown/', '').split('/'); + const [option, setOption] = useState(dropdownOptions[0]); + inputArr.push( +
+
{key}
+ { + setOption(option); + }} + /> +
+ ); + } else { + inputArr.push( +
+ ) => setInput({...input, [keyTyped]: e.target.value})} + label={label} + placeholder={placeholder} + showLabelIcon + tooltipText={t(`inputTooltip${capitalSource}${toolTip}`)} + required={valueTyped !== 'optionalString'} + height={32} + fontClass="font-base" + /> +
+ ); + } }); return ( diff --git a/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/EnrichedSchemaSection/index.tsx b/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/EnrichedSchemaSection/index.tsx index 7811f24b5c..119562d275 100644 --- a/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/EnrichedSchemaSection/index.tsx +++ b/frontend/control-center/src/pages/Schemas/SchemaItem/SchemaDescription/EnrichedSchemaSection/index.tsx @@ -114,7 +114,6 @@ const EnrichedSchemaSection = (props: EnrichedSchemaSectionProps) => { // Use map to create an array of promises const promises = (enrichedCode.fields || []).map(async field => { - console.log(typeof field.type); if (typeof field.type === 'object' && !Array.isArray(field.type)) { if (!field.type.doc) { const doc = await generateDocForField(field); diff --git a/lib/typescript/assets/images/icons/anthropic.svg b/lib/typescript/assets/images/icons/anthropic.svg new file mode 100644 index 0000000000..7b39cc4316 --- /dev/null +++ b/lib/typescript/assets/images/icons/anthropic.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/typescript/assets/images/icons/aws.svg b/lib/typescript/assets/images/icons/aws.svg new file mode 100644 index 0000000000..48c3fb20c9 --- /dev/null +++ b/lib/typescript/assets/images/icons/aws.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/lib/typescript/assets/images/icons/google-ai.svg b/lib/typescript/assets/images/icons/google-ai.svg new file mode 100644 index 0000000000..161b07526c --- /dev/null +++ b/lib/typescript/assets/images/icons/google-ai.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/typescript/assets/images/icons/groq.svg b/lib/typescript/assets/images/icons/groq.svg new file mode 100644 index 0000000000..205fb3bc40 --- /dev/null +++ b/lib/typescript/assets/images/icons/groq.svg @@ -0,0 +1,38 @@ + + + groq_logo + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/typescript/assets/images/icons/mistral-ai.svg b/lib/typescript/assets/images/icons/mistral-ai.svg new file mode 100644 index 0000000000..3e2d053f4c --- /dev/null +++ b/lib/typescript/assets/images/icons/mistral-ai.svg @@ -0,0 +1,32 @@ + + + Mistral AI + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/typescript/translations/translations.ts b/lib/typescript/translations/translations.ts index 938f8780d1..4448ff5f04 100644 --- a/lib/typescript/translations/translations.ts +++ b/lib/typescript/translations/translations.ts @@ -18,7 +18,23 @@ const resources = { 'Weaviate is an open-source vector database that allows storing object and vector embeddings from various ML-models.', openaiDescription: 'The OpenAI connector is a bidirectional connector that connects Airy to the OpenAI LLM.', gmailDescription: - 'The GMail connector is a bidirectional connector for sending and receiving e-mail messages through the Google Mail API.', + 'The Gmail connector is a bidirectional connector for sending and receiving e-mail messages through the Google Mail API.', + slackDescription: 'Slack is a messaging app for business that connects people to the information they need.', + anthropicDescription: + 'Anthropic is known for developing AI systems and large language models with a focus on safe, steerable, and reliable solutions.', + 'aws-bedrockDescription': + 'Amazon Bedrock is a fully managed service that offers a choice of high-performing foundation models (FMs) from leading AI companies.', + 'faiss-connectorDescription': + 'FAISS is a vector database that allows developers to quickly group and search embeddings of documents that are similar to each other.', + googleaiDescription: + 'Google AI Studio is the fastest way to start building with Gemini, our next generation multimodal generative AI model.', + groqDescription: + 'The LPU™ Inference Engine by Groq is a hardware and software platform that delivers exceptional compute speed, quality, and energy efficiency.', + mistralaiDescription: + 'Mistral AI is a French company specializing in artificial intelligence products. Founded in April 2023 by former employees of Meta Platforms and Google DeepMind, the company has quickly risen to prominence in the AI sector.', + flinkDescription: + 'Apache Flink is a framework and distributed processing engine for stateful computations over unbounded and bounded data streams.', + 'llm-controllerDescription': 'Choose your prefered LLM with the LLM Connector.', //Input Component fieldCannotBeEmpty: 'This field cannot be empty.', @@ -638,7 +654,24 @@ const resources = { openaiDescription: 'Der OpenAI-Connector ist ein bidirektionaler Connector, der Airy mit dem OpenAI LLM verbindet.', gmailDescription: - 'Der GMail-Connector ist ein bidirektionaler Connector zum Senden und Empfangen von E-Mail-Nachrichten über die Google Mail-API.', + 'Der Gmail-Connector ist ein bidirektionaler Connector zum Senden und Empfangen von E-Mail-Nachrichten über die Google Mail-API.', + slackDescription: + 'Slack ist eine Messaging-App für Unternehmen, die Menschen mit den Informationen verbindet, die sie benötigen.', + anthropicDescription: + 'Anthropic ist bekannt für die Entwicklung von KI-Systemen und großen Sprachmodellen mit Fokus auf sichere, lenkbare und zuverlässige Lösungen.', + 'aws-bedrockDescription': + 'Amazon Bedrock ist ein vollständig verwalteter Service, der eine Auswahl an leistungsstarken Grundmodellen (FMs) von führenden KI-Unternehmen bietet.', + 'faiss-connectorDescription': + 'FAISS ist eine Vektordatenbank, die es Entwicklern ermöglicht, Einbettungen von ähnlichen Dokumenten schnell zu gruppieren und zu durchsuchen.', + googleaiDescription: + 'Google AI Studio ist der schnellste Weg, um mit Gemini, unserem nächsten multimodalen generativen KI-Modell, zu arbeiten.', + groqDescription: + 'Die LPU™ Inference Engine von Groq ist eine Hardware- und Softwareplattform, die außergewöhnliche Rechengeschwindigkeit, Qualität und Energieeffizienz bietet.', + mistralaiDescription: + 'Mistral AI ist ein französisches Unternehmen, das sich auf Produkte der künstlichen Intelligenz spezialisiert hat. Gegründet im April 2023 von ehemaligen Mitarbeitern von Meta Platforms und Google DeepMind, hat sich das Unternehmen schnell einen Namen im KI-Sektor gemacht.', + flinkDescription: + 'Apache Flink ist ein Framework und eine verteilte Verarbeitungseinheit für zustandsbehaftete Berechnungen über unbeschränkte und beschränkte Datenströme.', + 'llm-controllerDescription': 'Wählen Sie Ihr bevorzugtes LLM mit dem LLM-Connector.', //Input Component fieldCannotBeEmpty: 'Dieses Feld kann nicht leer sein.', @@ -1268,7 +1301,24 @@ const resources = { "Weaviate est une base de données vectorielles open source qui permet de stocker des intégrations d'objets et de vecteurs à partir de divers modèles ML.", openaiDescription: 'Le connecteur OpenAI est un connecteur bidirectionnel qui connecte Airy au OpenAI LLM.', gmailDescription: - "Le connecteur GMail est un connecteur bidirectionnel permettant d'envoyer et de recevoir des messages électroniques via l'API Google Mail.", + "Le connecteur Gmail est un connecteur bidirectionnel permettant d'envoyer et de recevoir des messages électroniques via l'API Google Mail.", + slackDescription: + 'Slack est une application de messagerie pour les entreprises qui connecte les gens aux informations dont ils ont besoin.', + anthropicDescription: + "Anthropic est connu pour développer des systèmes d'IA et des grands modèles de langage avec un accent sur des solutions sûres, contrôlables et fiables.", + 'aws-bedrockDescription': + "Amazon Bedrock est un service entièrement géré qui offre un choix de modèles de fondation performants (FM) provenant des principales entreprises d'IA.", + 'faiss-connectorDescription': + 'FAISS est une base de données vectorielle qui permet aux développeurs de regrouper rapidement et de rechercher des embeddings de documents similaires entre eux.', + googleaiDescription: + "Google AI Studio est le moyen le plus rapide de commencer à construire avec Gemini, notre modèle d'IA générative multimodale de nouvelle génération.", + groqDescription: + "Le moteur d'inférence LPU™ de Groq est une plateforme matérielle et logicielle qui offre une vitesse de calcul exceptionnelle, une qualité et une efficacité énergétique.", + mistralaiDescription: + "Mistral AI est une entreprise française spécialisée dans les produits d'intelligence artificielle. Fondée en avril 2023 par d'anciens employés de Meta Platforms et Google DeepMind, l'entreprise s'est rapidement imposée dans le secteur de l'IA.", + flinkDescription: + 'Apache Flink est un framework et un moteur de traitement distribué pour les calculs avec état sur des flux de données bornés et non bornés.', + 'llm-controllerDescription': 'Choisissez votre LLM préféré avec le connecteur LLM.', //Input Component fieldCannotBeEmpty: 'Ce champ ne peut pas être vide.', @@ -1892,7 +1942,24 @@ const resources = { 'Weaviate es una base de datos vectorial de código abierto que permite almacenar incrustaciones de objetos y vectores de varios modelos ML.', openaiDescription: 'El conector OpenAI es un conector bidireccional que conecta Airy con OpenAI LLM.', gmailDescription: - 'El conector GMail es un conector bidireccional para enviar y recibir mensajes de correo electrónico a través de la API de Google Mail.', + 'El conector Gmail es un conector bidireccional para enviar y recibir mensajes de correo electrónico a través de la API de Google Mail.', + slackDescription: + 'Slack es una aplicación de mensajería para empresas que conecta a las personas con la información que necesitan.', + anthropicDescription: + 'Anthropic es conocido por desarrollar sistemas de IA y grandes modelos de lenguaje con un enfoque en soluciones seguras, controlables y confiables.', + 'aws-bedrockDescription': + 'Amazon Bedrock es un servicio completamente gestionado que ofrece una selección de modelos base de alto rendimiento (FM) de las principales empresas de IA.', + 'faiss-connectorDescription': + 'FAISS es una base de datos vectorial que permite a los desarrolladores agrupar rápidamente y buscar incrustaciones de documentos que son similares entre sí.', + googleaiDescription: + 'Google AI Studio es la forma más rápida de empezar a construir con Gemini, nuestro modelo de IA generativa multimodal de próxima generación.', + groqDescription: + 'El motor de inferencia LPU™ de Groq es una plataforma de hardware y software que ofrece una velocidad de cálculo, calidad y eficiencia energética excepcionales.', + mistralaiDescription: + 'Mistral AI es una empresa francesa especializada en productos de inteligencia artificial. Fundada en abril de 2023 por ex empleados de Meta Platforms y Google DeepMind, la empresa ha ganado rápidamente prominencia en el sector de la IA.', + flinkDescription: + 'Apache Flink es un marco de trabajo y motor de procesamiento distribuido para cálculos con estado sobre flujos de datos acotados y no acotados.', + 'llm-controllerDescription': 'Elija su LLM preferido con el conector LLM.', //Input Component fieldCannotBeEmpty: 'El campo de texto no puede estar vacío.',