File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<h1 align =" center " >LM的Web会话管理方案<span style =" color : #2454ff ;" >THChatUI</span >
2- <span style =" font-size : 10px ;" >v3.0.1 </span ></h1 >
2+ <span style =" font-size : 10px ;" >v3.0.2 </span ></h1 >
33
44<div align =" center " >
55
Original file line number Diff line number Diff line change 11{
22 "name" : " THChatUI" ,
3- "version" : " 3.0.1 " ,
3+ "version" : " 3.0.2 " ,
44 "author" : " Unagi-cq <baiwen_88@qq.com>" ,
55 "description" : " THChatUI 是一个基于 Vue2 + ElementUI 的LLM WebUI。" ,
66 "private" : true ,
1111 "electron" : " electron ." ,
1212 "electron:dev" : " npm run build && electron ." ,
1313 "electron:pack" : " electron-builder --dir" ,
14- "electron:dist" : " electron-builder"
14+ "electron:dist" : " npm run build && electron-builder"
1515 },
1616 "dependencies" : {
1717 "@element-plus/icons-vue" : " ^2.3.1" ,
Original file line number Diff line number Diff line change @@ -92,13 +92,14 @@ module.exports = {
9292 { label : "模型类型" , key : "type" , options : [ "llm" ] } ,
9393 { label : "API-KEY" , key : "api_key" } ,
9494 { label : "Base-URL" , key : "base_url" } ,
95- { label : "应用名称" , key : "version" }
95+ { label : "应用名称" , key : "version" , tooltip : "自己起一个名字,方便在THChatUI平台展示" }
9696 ] ,
9797 rules : {
9898 type : [ { required : true , message : '请选择模型类型' } ] ,
9999 api_key : [ { required : true , message : '请输入API-KEY' } ] ,
100100 base_url : [ { required : true , message : '请输入Base-URL' } ]
101- }
101+ } ,
102+ meto : "目前只支持Dify平台【聊天助手】【Agent】【Chatflow】三个模式的引入,即仅支持/chat-messages接口,不支持【工作流】。"
102103 }
103104 } ,
104105 "Google_AI" : {
Original file line number Diff line number Diff line change 11<template >
22 <div class =" api-key-form" >
33 <el-form :model =" formData" label-width =" 120px" >
4- <el-form-item v-for =" (value, key) in filteredFormData" :key =" key" :label =" formatLabel(key)" >
4+ <el-form-item v-for =" (value, key) in filteredFormData" :key =" key" :label =" formatLabel(key)" label-position = " left " >
55 <el-input v-if =" key === 'api_key'" v-model =" formData[key]" :type =" showKey ? 'text' : 'password'" >
66 <template #suffix >
77 <el-icon class =" cursor-pointer" @click =" showKey = !showKey" >
Original file line number Diff line number Diff line change 11<template >
22 <div class =" add-model-form" >
3- <el-form :model =" formData" :rules =" rules" ref =" modelForm" label-width =" 120px" >
3+ <div class =" meto-tip" v-if =" meto" >{{ meto }}</div >
4+ <el-form :model =" formData" :rules =" rules" ref =" modelForm" label-width =" 120px" label-position =" left" >
45 <el-form-item v-for =" item in formItems" :key =" item.key" :prop =" item.key" >
56 <template #label >
67 {{ item.label }}
@@ -57,7 +58,8 @@ export default {
5758 return {
5859 formData: {},
5960 formItems: [],
60- rules: {}
61+ rules: {},
62+ meto: " "
6163 }
6264 },
6365 watch: {
@@ -72,6 +74,7 @@ export default {
7274 this .rules = platformConfig .model_config .rules || {}
7375 // 初始化表单数据
7476 this .formData = { " series" : platformConfig .avatar }
77+ this .meto = platformConfig .model_config .meto
7578 }
7679 },
7780 deep: true ,
@@ -116,6 +119,20 @@ export default {
116119 }
117120}
118121
122+ .meto-tip {
123+ background : #f4f8fb ;
124+ color : #409eff ;
125+ border-left : 4px solid #409eff ;
126+ border-radius : 6px ;
127+ padding : 10px 16px ;
128+ margin-bottom : 18px ;
129+ font-size : 12px ;
130+ line-height : 1.6 ;
131+ word-break : break-all ;
132+ box-shadow : 0 2px 8px rgba (64 ,158 ,255 ,0.06 );
133+ transition : background 0.3s ;
134+ }
135+
119136.dialog-footer {
120137 display : flex ;
121138 flex-direction : column ;
Original file line number Diff line number Diff line change 33 <div class =" title-section" >
44 <img :src =" logoSrc" class =" logo" alt =" logo" />
55
6- <span class =" title" >THChatUI<span style =" font-size : 12px ; color : #999 ;" >v3.0.1 </span ></span >
6+ <span class =" title" >THChatUI<span style =" font-size : 12px ; color : #999 ;" >v3.0.2 </span ></span >
77 <p class =" subtitle" >欢迎使用<span >THChatUI</span >,一个基于<span >Vue</span >和<span >Element Plus</span >的Web对话管理WebUI。目前支持以下平台:<b >Web PC端、Web 移动端、Wins桌面端。</b ></p >
88
99 <p >
3030 <div class =" changelog-section" >
3131 <h2 >更新日志</h2 >
3232
33+ <div class =" version-block" >
34+ <h3 >v3.0.2 - 2025.05.07</h3 >
35+ <ul >
36+ <li >[add] 新增了Dify平台的支持</li >
37+ </ul >
38+ </div >
39+
3340 <div class =" version-block" >
3441 <h3 >v3.0.1 - 2025.05.05</h3 >
3542 <ul >
You can’t perform that action at this time.
0 commit comments