connect realtime model when open panel

This commit is contained in:
lloydzhou
2024-11-07 16:41:24 +08:00
parent 88cd3ac122
commit 7bdc45ed3e
2 changed files with 41 additions and 236 deletions

View File

@@ -2035,14 +2035,16 @@ function _Chat() {
[styles["chat-side-panel-show"]]: showChatSidePanel,
})}
>
<RealtimeChat
onClose={() => {
setShowChatSidePanel(false);
}}
onStartVoice={async () => {
console.log("start voice");
}}
/>
{showChatSidePanel && (
<RealtimeChat
onClose={() => {
setShowChatSidePanel(false);
}}
onStartVoice={async () => {
console.log("start voice");
}}
/>
)}
</div>
</div>
</div>