feat: support knwoledge base (#23)

* feat: support knwoledge base

* feat: support knwoledge base
This commit is contained in:
Joby
2024-09-25 19:53:26 -07:00
committed by GitHub
parent d7a7e3174c
commit 21f6c6d468
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ export default function InteractiveAvatar() {
const res = await avatar.current.createStartAvatar({ const res = await avatar.current.createStartAvatar({
quality: AvatarQuality.Low, quality: AvatarQuality.Low,
avatarName: avatarId, avatarName: avatarId,
knowledgeId: knowledgeId, knowledgeId: knowledgeId, // Or use a custom `knowledgeBase`.
voice: { voice: {
rate: 1.5, // 0.5 ~ 1.5 rate: 1.5, // 0.5 ~ 1.5
emotion: VoiceEmotion.EXCITED, emotion: VoiceEmotion.EXCITED,

View File

@@ -10,7 +10,7 @@
}, },
"dependencies": { "dependencies": {
"@ai-sdk/openai": "^0.0.34", "@ai-sdk/openai": "^0.0.34",
"@heygen/streaming-avatar": "^2.0.2", "@heygen/streaming-avatar": "^2.0.3",
"@nextui-org/button": "2.0.34", "@nextui-org/button": "2.0.34",
"@nextui-org/chip": "^2.0.32", "@nextui-org/chip": "^2.0.32",
"@nextui-org/code": "2.0.29", "@nextui-org/code": "2.0.29",