fix whisper join

This commit is contained in:
2023-08-25 19:17:36 +08:00
parent e5d11cdb31
commit 47af34c061

View File

@@ -525,14 +525,15 @@ export default function ChatBOX(props: {
} }
// build prompt // build prompt
const prompt = const prompt = [chatStore.systemMessageContent]
.concat(
chatStore.history chatStore.history
.filter(({ hide }) => !hide) .filter(({ hide }) => !hide)
.slice(chatStore.postBeginIndex) .slice(chatStore.postBeginIndex)
.map(({ content }) => content) .map(({ content }) => content)
.join(" ") + )
" " + .concat([inputMsg])
inputMsg; .join(" ");
console.log({ prompt }); console.log({ prompt });
setIsRecording("Recording"); setIsRecording("Recording");