Add Step component import and update currentMessage

This commit is contained in:
Rankin Zheng 2023-12-22 04:17:07 +08:00
parent 957c31748d
commit e2db0f7bde

View File

@ -4,6 +4,7 @@ import { ChatContext } from "@/views/stores/InputStore";
import { features } from "process";
import { Slice } from "@tiptap/pm/model";
import yaml from "js-yaml";
import { Step } from "@mantine/core";
interface Context {
content: string;
@ -251,10 +252,16 @@ DevChat key is missing from your environment or settings. Kindly input your DevC
${yaml.dump(values)}
\`\`\`
`;
self.currentMessage = self.currentMessage + inputStr;
self.currentMessage = `
${self.currentMessage}
${inputStr}
\`\`\`Step
Thinking...123
\`\`\`
`;
messageUtil.sendMessage({
command: "userInput",
text: inputStr,
text: inputStr
});
// goto bottom
goScrollBottom();