feat: add admin permissions voice input analytics and feedback

This commit is contained in:
2026-08-11 17:17:59 +08:00
parent 3b9215cc3d
commit fd2da26d10
46 changed files with 1836 additions and 192 deletions

View File

@@ -81,6 +81,11 @@ const groupBlueprints: Record<string, SettingGroupBlueprint[]> = {
"chat_active_lease_seconds",
],
},
{
title: "语音输入",
description: "控制用户端麦克风入口和单次录音上限。",
keys: ["voice_input_enabled", "voice_max_duration_seconds"],
},
],
外部服务: [
{
@@ -175,6 +180,13 @@ const statusItems = computed(() => [
value: `${props.values.chat_max_active_requests || 0} 并发`,
tone: "neutral",
},
{
label: "语音输入",
value: props.values.voice_input_enabled
? `已开启 · ${props.values.voice_max_duration_seconds || 60}`
: "已关闭",
tone: props.values.voice_input_enabled ? "success" : "neutral",
},
]);
function updateSetting(key: string, value: unknown) {