fix whisper join
This commit is contained in:
@@ -525,14 +525,15 @@ export default function ChatBOX(props: {
|
||||
}
|
||||
|
||||
// build prompt
|
||||
const prompt =
|
||||
const prompt = [chatStore.systemMessageContent]
|
||||
.concat(
|
||||
chatStore.history
|
||||
.filter(({ hide }) => !hide)
|
||||
.slice(chatStore.postBeginIndex)
|
||||
.map(({ content }) => content)
|
||||
.join(" ") +
|
||||
" " +
|
||||
inputMsg;
|
||||
)
|
||||
.concat([inputMsg])
|
||||
.join(" ");
|
||||
console.log({ prompt });
|
||||
|
||||
setIsRecording("Recording");
|
||||
|
||||
Reference in New Issue
Block a user