fix: chat history with memory

This commit is contained in:
Yifei Zhang
2023-03-19 16:09:30 +00:00
parent c133cae04b
commit 4d97c269ff
4 changed files with 59 additions and 50 deletions

View File

@@ -26,8 +26,8 @@ export function Settings(props: { closeSettings: () => void }) {
return (
<>
<div className={styles["window-header"]}>
<div>
<div className={styles["window-header-title"]}></div>
<div className={styles["window-header-title"]}>
<div className={styles["window-header-main-title"]}></div>
<div className={styles["window-header-sub-title"]}></div>
</div>
<div className={styles["window-actions"]}>
@@ -140,14 +140,14 @@ export function Settings(props: { closeSettings: () => void }) {
</List>
<List>
<ListItem>
<div className={styles["settings-title"]}></div>
<div className={styles["settings-title"]}></div>
<input
type="range"
title={config.historyMessageCount.toString()}
value={config.historyMessageCount}
min="5"
max="20"
step="5"
min="2"
max="25"
step="2"
onChange={(e) =>
updateConfig(
(config) =>
@@ -157,7 +157,6 @@ export function Settings(props: { closeSettings: () => void }) {
></input>
</ListItem>
<ListItem>
<div className={styles["settings-title"]}>