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