Configure embedding servers and add a Transcript Agent (#561)

* feat: configure embedding servers and transcript agents

* fix(agents): guide Transcript Agent setup

* fix(agents): require a configured embedding server URL

* docs: consolidate embedding and transcript changelog entry

* fix(webui): stabilize transcript menu interactions

* test(e2e): verify transcript scroll interruption by position

* test(webui): check transcript following without frame timing races
This commit is contained in:
Yiling-J
2026-12-05 10:17:36 +08:00
committed by GitHub
parent 72a7f68c92
commit 6c74413375
66 changed files with 2021 additions and 325 deletions
+20
View File
@@ -0,0 +1,20 @@
import type { AgentType } from '@shumai/dtos'
const systemAgentSettings = {
embedding: { envKey: 'ENABLE_EMBEDDING_AGENT', name: 'Embedding agent', avatar: 'avatar-1' },
transcription: {
envKey: 'ENABLE_TRANSCRIPTION_AGENT',
name: 'Transcript Agent',
avatar: 'avatar-2',
},
} as const
export function getSystemAgentSetting(type: AgentType) {
if (type !== 'embedding' && type !== 'transcription') return undefined
const { envKey, name, avatar } = systemAgentSettings[type]
const value = process.env[envKey]
if (value !== 'true' && value !== 'false') return undefined
return { name, avatar, enabled: value === 'true' }
}