From cc919eab10fd02273549fc3566a314ee66abd28a Mon Sep 17 00:00:00 2001 From: Aitor Algorta Date: Mon, 8 Jan 2024 16:54:58 +0100 Subject: [PATCH] some fixes --- .../src/pages/LLMConsumers/LLMConsumerItem/index.tsx | 1 - .../control-center/src/pages/LLMConsumers/index.tsx | 4 +++- frontend/control-center/src/pages/LLMs/index.tsx | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/control-center/src/pages/LLMConsumers/LLMConsumerItem/index.tsx b/frontend/control-center/src/pages/LLMConsumers/LLMConsumerItem/index.tsx index f8f7cfebf..b59ce205b 100644 --- a/frontend/control-center/src/pages/LLMConsumers/LLMConsumerItem/index.tsx +++ b/frontend/control-center/src/pages/LLMConsumers/LLMConsumerItem/index.tsx @@ -4,7 +4,6 @@ import {useTranslation} from 'react-i18next'; import {HttpClientInstance} from '../../../httpClient'; import styles from './index.module.scss'; import {NotificationModel} from 'model'; -import {set} from 'lodash-es'; type EmptyStateProps = { item: {name: string; topic: string; status: string; lag: number}; diff --git a/frontend/control-center/src/pages/LLMConsumers/index.tsx b/frontend/control-center/src/pages/LLMConsumers/index.tsx index 9d830c3d1..d4d86eed5 100644 --- a/frontend/control-center/src/pages/LLMConsumers/index.tsx +++ b/frontend/control-center/src/pages/LLMConsumers/index.tsx @@ -193,7 +193,9 @@ const LLMConsumers = (props: LLMConsumersProps) => {
{consumers && - consumers.map((consumer: any) => )} + consumers.map((consumer: any) => ( + + ))}
{notification?.show && ( ; - const mapDispatchToProps = {}; const connector = connect(null, mapDispatchToProps); -const LLMs = (props: LLMsProps) => { +const LLMs = () => { const [llms, setLlms] = useState([]); const [embeddings, setEmbeddings] = useState(0); const [notification, setNotification] = useState(null); @@ -50,7 +48,9 @@ const LLMs = (props: LLMsProps) => { setNotification({show: show, successful: false, text: t('errorOccurred')}); }; - const createNewLLM = () => {}; + const createNewLLM = () => { + console.log('create new LLM'); + }; return ( <> @@ -71,7 +71,7 @@ const LLMs = (props: LLMsProps) => {

Vector Database

Model

-
{llms && llms.map((llm: any) => )}
+
{llms && llms.map((llm: any) => )}
Embeddings: {embeddings}
{notification?.show && (