mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 10:13:55 +08:00
update:优化页面显示
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
package xiaozhi.modules.agent.dto;
|
package xiaozhi.modules.agent.dto;
|
||||||
|
|
||||||
import java.io.Serial;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -54,7 +53,8 @@ public class AgentUpdateDTO implements Serializable {
|
|||||||
@Schema(description = "角色设定参数", example = "你是一个专业的客服助手,负责回答用户问题并提供帮助", nullable = true)
|
@Schema(description = "角色设定参数", example = "你是一个专业的客服助手,负责回答用户问题并提供帮助", nullable = true)
|
||||||
private String systemPrompt;
|
private String systemPrompt;
|
||||||
|
|
||||||
@Schema(description = "总结记忆", example = "构建可生长的动态记忆网络,在有限空间内保留关键信息的同时,智能维护信息演变轨迹\n" + "根据对话记录,总结user的重要信息,以便在未来的对话中提供更个性化的服务", nullable = true)
|
@Schema(description = "总结记忆", example = "构建可生长的动态记忆网络,在有限空间内保留关键信息的同时,智能维护信息演变轨迹\n"
|
||||||
|
+ "根据对话记录,总结user的重要信息,以便在未来的对话中提供更个性化的服务", nullable = true)
|
||||||
private String summaryMemory;
|
private String summaryMemory;
|
||||||
|
|
||||||
@Schema(description = "聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)", example = "3", nullable = true)
|
@Schema(description = "聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)", example = "3", nullable = true)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ START TRANSACTION;
|
|||||||
update `ai_model_provider` set fields = '[{"key":"llm","label":"LLM模型","type":"string"}]' where id = 'SYSTEM_Intent_intent_llm';
|
update `ai_model_provider` set fields = '[{"key":"llm","label":"LLM模型","type":"string"}]' where id = 'SYSTEM_Intent_intent_llm';
|
||||||
update `ai_model_provider` set fields = '[]' where id = 'SYSTEM_Intent_function_call';
|
update `ai_model_provider` set fields = '[]' where id = 'SYSTEM_Intent_function_call';
|
||||||
update `ai_model_config` set config_json = '{\"type\": \"intent_llm\", \"llm\": \"LLM_ChatGLMLLM\"}' where id = 'Intent_intent_llm';
|
update `ai_model_config` set config_json = '{\"type\": \"intent_llm\", \"llm\": \"LLM_ChatGLMLLM\"}' where id = 'Intent_intent_llm';
|
||||||
UPDATE `ai_model_config` SET config_json = '{}' WHERE id = 'Intent_function_call';
|
UPDATE `ai_model_config` SET config_json = '{\"type\": \"function_call\"}' WHERE id = 'Intent_function_call';
|
||||||
|
|
||||||
|
|
||||||
delete from ai_model_provider where model_type = 'Plugin';
|
delete from ai_model_provider where model_type = 'Plugin';
|
||||||
|
|||||||
@@ -64,10 +64,13 @@
|
|||||||
<div v-if="currentFunction" class="params-container">
|
<div v-if="currentFunction" class="params-container">
|
||||||
<el-form :model="currentFunction" size="mini" class="param-form">
|
<el-form :model="currentFunction" size="mini" class="param-form">
|
||||||
<!-- 遍历 fieldsMeta,而不是 params 的 keys -->
|
<!-- 遍历 fieldsMeta,而不是 params 的 keys -->
|
||||||
|
<div v-if="currentFunction.fieldsMeta.length == 0">
|
||||||
|
<el-empty :description="currentFunction.name + ' 无需配置参数'" />
|
||||||
|
</div>
|
||||||
<el-form-item v-for="field in currentFunction.fieldsMeta" :key="field.key" :label="field.label"
|
<el-form-item v-for="field in currentFunction.fieldsMeta" :key="field.key" :label="field.label"
|
||||||
class="param-item">
|
class="param-item">
|
||||||
<template #label>
|
<template #label>
|
||||||
<span style="font-size: 16px; margin-right: 6px;">{{ field.key }}</span>
|
<span style="font-size: 16px; margin-right: 6px;">{{ field.label }}</span>
|
||||||
<el-tooltip effect="dark" :content="fieldRemark(field)" placement="top">
|
<el-tooltip effect="dark" :content="fieldRemark(field)" placement="top">
|
||||||
<img src="@/assets/home/info.png" alt="" class="info-icon">
|
<img src="@/assets/home/info.png" alt="" class="info-icon">
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user