From a11b3d0c4f3b3d393de64cb1e22c9a38eeb63c07 Mon Sep 17 00:00:00 2001 From: Kirk Lin Date: Sun, 25 Feb 2024 13:53:33 +0800 Subject: [PATCH] feat: add mock ai --- .../src/pages/chat/components/ChatLayout.vue | 1 - .../MessageInputArea/ChatInputAreaInner.vue | 2 +- .../languageModelAgent/azureOpenai/index.ts | 6 +- .../src/languageModelAgent/celeris/index.ts | 58 +++++++++++++++++++ .../src/languageModelAgent/openai/index.ts | 8 +-- .../utils/error/constants.ts | 1 + packages/ai/services/openai/agent/index.ts | 11 +++- 7 files changed, 75 insertions(+), 12 deletions(-) create mode 100644 packages/ai/core/src/languageModelAgent/celeris/index.ts diff --git a/apps/admin/src/pages/chat/components/ChatLayout.vue b/apps/admin/src/pages/chat/components/ChatLayout.vue index a5203ce8..28bdbe32 100644 --- a/apps/admin/src/pages/chat/components/ChatLayout.vue +++ b/apps/admin/src/pages/chat/components/ChatLayout.vue @@ -45,7 +45,6 @@ watchEffect(() => { :width="360" :native-scrollbar="true" show-trigger="arrow-circle" - bordered > diff --git a/apps/admin/src/pages/chat/components/ChatPanel/MessageInputArea/ChatInputAreaInner.vue b/apps/admin/src/pages/chat/components/ChatPanel/MessageInputArea/ChatInputAreaInner.vue index ca29ac02..5b836a81 100644 --- a/apps/admin/src/pages/chat/components/ChatPanel/MessageInputArea/ChatInputAreaInner.vue +++ b/apps/admin/src/pages/chat/components/ChatPanel/MessageInputArea/ChatInputAreaInner.vue @@ -3,7 +3,7 @@ defineModel();