-
+
-
{{ generateTitle("模型调用流程") }}
+
{{ generateTitle('模型调用流程') }}
+
-
+
diff --git a/frontend/src/lang/en.ts b/frontend/src/lang/en.ts
index 96b2481..474ef27 100755
--- a/frontend/src/lang/en.ts
+++ b/frontend/src/lang/en.ts
@@ -1,31 +1,33 @@
export default {
- routers:{
- logOut:'Log Out',
- restore:'Restore data',
- '智能协作无界,材料创新无限':'Collaborative Intelligence, Revolutionary Materials',
- '问题设定':'Problem Setting',
- '模型名称':'Model Name',
- '新建对话':'Create New Conversation',
- '推理完成,如果希望了解更多可继续在下面框中提问或新建对话。':'The reasoning is complete. If you wish to learn more, you can continue to ask questions or create a new conversation in the box below.',
- '推理中':'In Reasoning',
- '角色':'Role',
- '模型调用流程':'Model Calling Process',
- '发送':'send',
- '您好,多智能体MARS为您服务':'Hello,multi-agent MARS is at your service',
- '推荐问题':'Recommended Questions',
- '在此输入您的问题或需求,有问必答,Shift+Enter换行':'Enter your question or requirement here, answer all questions, Shift+Enter line break',
- 'MARS多智能体材料创制系统':'MARS Model Creation System',
- '账号':'account',
- '密码':'password',
- '验证码':'code',
- '登录':'login',
- '请输入账号':'Please enter your account',
- '请输入密码':'Please enter your password',
- '请输入验证码':'Please enter your code',
- '验证码错误':'code error',
- '请输入问题':'Please enter the question',
- '回答输出中,暂不能再次提问':'Answer output, cannot be asked again temporarily',
+ routers: {
+ logOut: 'Log Out',
+ restore: 'Restore data',
+ '智能协作无界,材料创新无限': 'Collaborative Intelligence, Revolutionary Materials',
+ '问题设定': 'Problem Setting',
+ '模型名称': 'Model Name',
+ '新建对话': 'Create New Conversation',
+ '推理完成,如果希望了解更多可继续在下面框中提问或新建对话。': 'The reasoning is complete. If you wish to learn more, you can continue to ask questions or create a new conversation in the box below.',
+ '推理中': 'In Reasoning',
+ '角色': 'Role',
+ '模型调用流程': 'Agent Calling',
+ '发送': 'send',
+ '您好,多智能体MARS为您服务': 'Hello,multi-agent MARS is at your service',
+ '推荐问题': 'Recommended Questions',
+ '在此输入您的问题或需求,有问必答,Shift+Enter换行': 'Enter your question or requirement here, answer all questions, Shift+Enter line break',
+ 'MARS多智能体材料创制系统': 'MARS Model Creation System',
+ '账号': 'account',
+ '密码': 'password',
+ '验证码': 'code',
+ '登录': 'login',
+ '请输入账号': 'Please enter your account',
+ '请输入密码': 'Please enter your password',
+ '请输入验证码': 'Please enter your code',
+ '验证码错误': 'code error',
+ '请输入问题': 'Please enter the question',
+ '回答输出中,暂不能再次提问': 'Answer output, cannot be asked again temporarily',
+ '监控1': 'monitor one',
+ '监控2': 'monitor two',
}
}
diff --git a/frontend/src/lang/zh.ts b/frontend/src/lang/zh.ts
index ac43b9b..85aa63d 100755
--- a/frontend/src/lang/zh.ts
+++ b/frontend/src/lang/zh.ts
@@ -1,30 +1,32 @@
export default {
- routers:{
- logOut:'退出登录',
- restore:'还原数据',
- '智能协作无界,材料创新无限':'智能协作无界,材料创新无限',
- '问题设定':'问题设定',
- '模型名称':'模型名称',
- '新建对话':'新建对话',
- '推理完成,如果希望了解更多可继续在下面框中提问或新建对话。':'推理完成,如果希望了解更多可继续在下面框中提问或新建对话。',
- '推理中':'推理中',
- '角色':'角色',
- '模型调用流程':'模型调用流程',
- '发送':'发送',
- '您好,多智能体MARS为您服务':'您好,多智能体MARS为您服务',
- '推荐问题':'推荐问题',
- '在此输入您的问题或需求,有问必答,Shift+Enter换行':'在此输入您的问题或需求,有问必答,Shift+Enter换行',
- 'MARS多智能体材料创制系统':'MARS多智能体材料创制系统',
- '账号':'账号',
- '密码':'密码',
- '验证码':'验证码',
- '登录':'登录',
- '请输入账号':'请输入账号',
- '请输入密码':'请输入密码',
- '请输入验证码':'请输入验证码',
- '验证码错误':'验证码错误',
- '请输入问题':'请输入问题',
- '回答输出中,暂不能再次提问':'回答输出中,暂不能再次提问',
+ routers: {
+ logOut: '退出登录',
+ restore: '还原数据',
+ '智能协作无界,材料创新无限': '智能协作无界,材料创新无限',
+ '问题设定': '问题设定',
+ '模型名称': '模型名称',
+ '新建对话': '新建对话',
+ '推理完成,如果希望了解更多可继续在下面框中提问或新建对话。': '推理完成,如果希望了解更多可继续在下面框中提问或新建对话。',
+ '推理中': '推理中',
+ '角色': '角色',
+ '模型调用流程': '模型调用流程',
+ '发送': '发送',
+ '您好,多智能体MARS为您服务': '您好,多智能体MARS为您服务',
+ '推荐问题': '推荐问题',
+ '在此输入您的问题或需求,有问必答,Shift+Enter换行': '在此输入您的问题或需求,有问必答,Shift+Enter换行',
+ 'MARS多智能体材料创制系统': 'MARS多智能体材料创制系统',
+ '账号': '账号',
+ '密码': '密码',
+ '验证码': '验证码',
+ '登录': '登录',
+ '请输入账号': '请输入账号',
+ '请输入密码': '请输入密码',
+ '请输入验证码': '请输入验证码',
+ '验证码错误': '验证码错误',
+ '请输入问题': '请输入问题',
+ '回答输出中,暂不能再次提问': '回答输出中,暂不能再次提问',
+ '监控1': '监控1',
+ '监控2': '监控2',
}
}
diff --git a/frontend/src/utils/websocket.ts b/frontend/src/utils/websocket.ts
index 5ae2b84..53f2e1f 100755
--- a/frontend/src/utils/websocket.ts
+++ b/frontend/src/utils/websocket.ts
@@ -1,5 +1,5 @@
-function useWebsocket(handleMessage: any) {
- const ws = new WebSocket(import.meta.env.VITE_WB_BASE_URL)
+function useWebsocket(handleMessage: any,url: any) {
+ const ws = new WebSocket(url||import.meta.env.VITE_WB_BASE_URL)
const init = () => {
bindEvent();
}
diff --git a/frontend/src/view/home/index.less b/frontend/src/view/home/index.less
index 3972d01..beab9c8 100755
--- a/frontend/src/view/home/index.less
+++ b/frontend/src/view/home/index.less
@@ -74,7 +74,7 @@
display: flex;
align-items: center;
justify-content: center;
- text-align: justify;
+ text-align: left;
}
}
}
diff --git a/frontend/src/view/home/index.vue b/frontend/src/view/home/index.vue
index 997cd11..aa3cabe 100755
--- a/frontend/src/view/home/index.vue
+++ b/frontend/src/view/home/index.vue
@@ -40,13 +40,15 @@ const recommendList = ref
>([
const router = useRouter()
const submitFun = (e: any) => {
let data = {
- chat_id: new Date().getTime(),
- message: e
+ // chat_id: new Date().getTime(),
+ // message: e
+ content: e,
+ source: 'user'
}
- router.push('/reasoning?message=' + JSON.stringify(data))
+ router.push('/reasoning?content=' + JSON.stringify(data))
}
const reasoningFun = (e: any) => {
- router.push('/reasoning?message=' + e)
+ router.push('/reasoning?content=' + e)
}
onMounted(() => {})
diff --git a/frontend/src/view/reasoning/index.less b/frontend/src/view/reasoning/index.less
index 04fe772..ea0e9e0 100755
--- a/frontend/src/view/reasoning/index.less
+++ b/frontend/src/view/reasoning/index.less
@@ -27,7 +27,7 @@
}
}
- .message-box {
+ .content-box {
width: calc(100% - 48px);
padding-top: 30px;
@@ -71,4 +71,33 @@
}
}
+ .camera_dialog {
+ position: fixed;
+ top: 0;
+ left: 66px;
+ z-index: 99;
+ display: flex;
+ align-items: center;
+ column-gap: 12px;
+
+ .camera_item {
+ display: flex;
+ align-items: center;
+ flex-direction: column;
+ cursor: pointer;
+ width: 72px;
+
+ span {
+ font-size: 12px;
+ color: #fff;
+ }
+ }
+ }
+
+ .message_btn {
+ position: fixed;
+ top: 0;
+ left: 150px;
+ cursor: pointer;
+ }
}
\ No newline at end of file
diff --git a/frontend/src/view/reasoning/index.vue b/frontend/src/view/reasoning/index.vue
index b075a5d..959e07b 100755
--- a/frontend/src/view/reasoning/index.vue
+++ b/frontend/src/view/reasoning/index.vue
@@ -3,7 +3,7 @@
@@ -13,14 +13,14 @@
:reasoningList="reasoningList"
/>
-
+
- {{ generateTitle("新建对话") }}
+ {{ generateTitle('新建对话') }}
- {{ generateTitle("回答输出中,暂不能再次提问") }}
+ {{ generateTitle('回答输出中,暂不能再次提问') }}
@@ -31,28 +31,70 @@
:reasoningList="reasoningList"
@changeStatusFun="changeStatusFun"
/>
+
+
+
+ {{ generateTitle('监控1') }}
+
+
+
+ {{ generateTitle('监控2') }}
+
+
+
+
+ Hi, there!
+
+
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index a14cc32..1666705 100755
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -8,7 +8,7 @@ export default defineConfig({
host: '0.0.0.0',
proxy: {
'/matagent': {
- target: 'http://47.121.220.134:8000',
+ target: 'http://159.75.91.126:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/matagent/, '/matagent')
}
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..d3633a7
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "matagent",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}