fix: layout styles

This commit is contained in:
Yidadaa
2023-03-15 01:56:39 +08:00
parent 1fae774bb2
commit 7a1bcac8bf
2 changed files with 16 additions and 8 deletions

View File

@@ -258,13 +258,14 @@ export const useChatStore = create<ChatStore>()(
if (session.topic === DEFAULT_TOPIC) {
// should summarize topic
requestWithPrompt(session.messages, "返回这句话的简要主题").then(
(res) => {
get().updateCurrentSession(
(session) => (session.topic = trimTopic(res))
);
}
);
requestWithPrompt(
session.messages,
"直接返回这句话的简要主题,不要解释"
).then((res) => {
get().updateCurrentSession(
(session) => (session.topic = trimTopic(res))
);
});
}
},