fix whisper join
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user