mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2026-04-21 10:34:25 +08:00
Merge aa23458c6a into 0af04e0f2f
This commit is contained in:
@@ -116,6 +116,8 @@ import { ExportMessageModal } from "./exporter";
|
||||
import { getClientConfig } from "../config/client";
|
||||
import { useAllModels } from "../utils/hooks";
|
||||
import { MultimodalContent } from "../client/api";
|
||||
import { InputRange } from "./input-range";
|
||||
import { config } from "process";
|
||||
|
||||
import { ClientApi } from "../client/api";
|
||||
import { createTTSPlayer } from "../utils/audio";
|
||||
@@ -858,6 +860,31 @@ export function EditMessageModal(props: { onClose: () => void }) {
|
||||
}
|
||||
></input>
|
||||
</ListItem>
|
||||
<ListItem
|
||||
title={Locale.Settings.HistoryCount.Title}
|
||||
subTitle={Locale.Settings.HistoryCount.SubTitle}
|
||||
>
|
||||
<InputRange
|
||||
title={(
|
||||
session.overrideModelConfig?.historyMessageCount ??
|
||||
session.mask.modelConfig.historyMessageCount
|
||||
).toString()}
|
||||
value={
|
||||
session.overrideModelConfig?.historyMessageCount ??
|
||||
session.mask.modelConfig.historyMessageCount
|
||||
}
|
||||
min="0"
|
||||
max="64"
|
||||
step="1"
|
||||
onChange={(e) =>
|
||||
chatStore.updateCurrentSession(
|
||||
(session) =>
|
||||
((session.overrideModelConfig ??= {}).historyMessageCount =
|
||||
e.currentTarget.valueAsNumber),
|
||||
)
|
||||
}
|
||||
></InputRange>
|
||||
</ListItem>
|
||||
</List>
|
||||
<ContextPrompts
|
||||
context={messages}
|
||||
|
||||
Reference in New Issue
Block a user