mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
update:数据库增加聊天上报策略字段
This commit is contained in:
parent
bfb5420733
commit
add000d221
3 changed files with 20 additions and 14 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
-- 添加聊天记录配置字段
|
-- 添加聊天记录配置字段
|
||||||
ALTER TABLE `ai_agent`
|
ALTER TABLE `ai_agent`
|
||||||
ADD COLUMN `chat_history_conf` tinyint NOT NULL DEFAULT 2 COMMENT '聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)' AFTER `system_prompt`;
|
ADD COLUMN `chat_history_conf` tinyint NOT NULL DEFAULT 2 COMMENT '聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)' AFTER `system_prompt`;
|
||||||
|
|
||||||
|
ALTER TABLE `ai_agent_template`
|
||||||
|
ADD COLUMN `chat_history_conf` tinyint NOT NULL DEFAULT 2 COMMENT '聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)' AFTER `system_prompt`;
|
||||||
|
|
@ -114,3 +114,10 @@ databaseChangeLog:
|
||||||
- sqlFile:
|
- sqlFile:
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
path: classpath:db/changelog/202505091409.sql
|
path: classpath:db/changelog/202505091409.sql
|
||||||
|
- changeSet:
|
||||||
|
id: 202505111913
|
||||||
|
author: hrz
|
||||||
|
changes:
|
||||||
|
- sqlFile:
|
||||||
|
encoding: utf8
|
||||||
|
path: classpath:db/changelog/202505111913.sql
|
||||||
|
|
@ -73,8 +73,8 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="聊天记录配置">
|
<el-form-item label="聊天记录配置">
|
||||||
<el-select v-model="form.chatHistoryConf" placeholder="请选择" class="form-select">
|
<el-select v-model="form.chatHistoryConf" placeholder="请选择" class="form-select">
|
||||||
<el-option v-for="(item, index) in chatHistoryOptions" :key="`chatHistoryConf-${index}`" :label="item.label"
|
<el-option v-for="(item, index) in chatHistoryOptions" :key="`chatHistoryConf-${index}`"
|
||||||
:value="item.value" />
|
:label="item.label" :value="item.value" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -130,20 +130,16 @@ export default {
|
||||||
voiceOptions: [],
|
voiceOptions: [],
|
||||||
chatHistoryOptions: [
|
chatHistoryOptions: [
|
||||||
{
|
{
|
||||||
"value": 0,
|
"value": 0,
|
||||||
"label": "不记录"
|
"label": "不记录"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": 1,
|
"value": 1,
|
||||||
"label": "仅记录文本"
|
"label": "仅记录文本"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": 2,
|
"value": 2,
|
||||||
"label": "仅记录语音"
|
"label": "文本音频都记录"
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 3,
|
|
||||||
"label": "文本音频都记录"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
@ -538,7 +534,7 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-form-item__label {
|
::v-deep .el-form-item__label {
|
||||||
font-size: 10px !important;
|
font-size: 12px !important;
|
||||||
color: #3d4566 !important;
|
color: #3d4566 !important;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue