From e1f0644deb885b5207a5025e59ee694c4df380e8 Mon Sep 17 00:00:00 2001 From: balibabu Date: Wed, 29 May 2024 16:48:52 +0800 Subject: [PATCH] feat: add jina (#967) ### What problem does this PR solve? feat: add jina #650 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/assets/svg/llm/jina.svg | 228 ++++++++++++++++++ .../chat/chat-configuration-modal/index.tsx | 4 +- .../prompt-engine.tsx | 4 +- .../user-setting/setting-model/index.tsx | 9 +- 4 files changed, 238 insertions(+), 7 deletions(-) create mode 100644 web/src/assets/svg/llm/jina.svg diff --git a/web/src/assets/svg/llm/jina.svg b/web/src/assets/svg/llm/jina.svg new file mode 100644 index 000000000..333d60ca7 --- /dev/null +++ b/web/src/assets/svg/llm/jina.svg @@ -0,0 +1,228 @@ + + + + diff --git a/web/src/pages/chat/chat-configuration-modal/index.tsx b/web/src/pages/chat/chat-configuration-modal/index.tsx index fbce78f4a..ce8451f7c 100644 --- a/web/src/pages/chat/chat-configuration-modal/index.tsx +++ b/web/src/pages/chat/chat-configuration-modal/index.tsx @@ -22,8 +22,8 @@ import { useTranslate } from '@/hooks/commonHooks'; import styles from './index.less'; const layout = { - labelCol: { span: 7 }, - wrapperCol: { span: 17 }, + labelCol: { span: 9 }, + wrapperCol: { span: 15 }, }; const validateMessages = { diff --git a/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx b/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx index 4f1b89312..f49faa4bf 100644 --- a/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx +++ b/web/src/pages/chat/chat-configuration-modal/prompt-engine.tsx @@ -176,7 +176,7 @@ const PromptEngine = (
- + - + diff --git a/web/src/pages/user-setting/setting-model/index.tsx b/web/src/pages/user-setting/setting-model/index.tsx index bffbc0386..fce32876c 100644 --- a/web/src/pages/user-setting/setting-model/index.tsx +++ b/web/src/pages/user-setting/setting-model/index.tsx @@ -37,13 +37,13 @@ import { useSelectModelProvidersLoading, useSubmitApiKey, useSubmitOllama, - useSubmitVolcEngine, useSubmitSystemModelSetting, + useSubmitVolcEngine, } from './hooks'; import styles from './index.less'; import OllamaModal from './ollama-modal'; -import VolcEngineModal from "./volcengine-model"; import SystemModelSettingModal from './system-model-setting-modal'; +import VolcEngineModal from './volcengine-model'; const IconMap = { 'Tongyi-Qianwen': 'tongyi', @@ -56,6 +56,7 @@ const IconMap = { DeepSeek: 'deepseek', VolcEngine: 'volc_engine', BaiChuan: 'baichuan', + Jina: 'jina', }; const LlmIcon = ({ name }: { name: string }) => { @@ -103,7 +104,9 @@ const ModelCard = ({ item, clickApiKey }: IModelCardProps) => {