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]
chatStore.history .concat(
.filter(({ hide }) => !hide) chatStore.history
.slice(chatStore.postBeginIndex) .filter(({ hide }) => !hide)
.map(({ content }) => content) .slice(chatStore.postBeginIndex)
.join(" ") + .map(({ content }) => content)
" " + )
inputMsg; .concat([inputMsg])
.join(" ");
console.log({ prompt }); console.log({ prompt });
setIsRecording("Recording"); setIsRecording("Recording");