Skip to content

Commit e2db0f7

Browse files
author
Rankin Zheng
committed
Add Step component import and update currentMessage
1 parent 957c317 commit e2db0f7

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/views/stores/ChatStore.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ChatContext } from "@/views/stores/InputStore";
44
import { features } from "process";
55
import { Slice } from "@tiptap/pm/model";
66
import yaml from "js-yaml";
7+
import { Step } from "@mantine/core";
78

89
interface Context {
910
content: string;
@@ -251,10 +252,16 @@ DevChat key is missing from your environment or settings. Kindly input your DevC
251252
${yaml.dump(values)}
252253
\`\`\`
253254
`;
254-
self.currentMessage = self.currentMessage + inputStr;
255+
self.currentMessage = `
256+
${self.currentMessage}
257+
${inputStr}
258+
\`\`\`Step
259+
Thinking...123
260+
\`\`\`
261+
`;
255262
messageUtil.sendMessage({
256263
command: "userInput",
257-
text: inputStr,
264+
text: inputStr
258265
});
259266
// goto bottom
260267
goScrollBottom();

0 commit comments

Comments
 (0)