mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
修改最大限制
This commit is contained in:
parent
8fe96dbf0a
commit
007c004a44
@ -1340,7 +1340,7 @@ function _Chat() {
|
|||||||
title={
|
title={
|
||||||
<span style={{ color: "black" }}>
|
<span style={{ color: "black" }}>
|
||||||
{localStorage.getItem("current_day_token") ?? 0}{" "}
|
{localStorage.getItem("current_day_token") ?? 0}{" "}
|
||||||
<span style={{ color: "black" }}>/ 100000</span>
|
<span style={{ color: "black" }}>/ 200000</span>
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
color={"var(--second)"}
|
color={"var(--second)"}
|
||||||
@ -1350,7 +1350,7 @@ function _Chat() {
|
|||||||
<Progress
|
<Progress
|
||||||
percent={
|
percent={
|
||||||
(parseInt(localStorage.getItem("current_day_token") ?? "0") /
|
(parseInt(localStorage.getItem("current_day_token") ?? "0") /
|
||||||
100000) *
|
200000) *
|
||||||
100
|
100
|
||||||
}
|
}
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -519,7 +519,7 @@ export const useChatStore = createPersistStore(
|
|||||||
localStorage.getItem("current_day_token") ?? "0",
|
localStorage.getItem("current_day_token") ?? "0",
|
||||||
);
|
);
|
||||||
// console.log('---------', current_day_token)
|
// console.log('---------', current_day_token)
|
||||||
if (current_day_token >= 100000) {
|
if (current_day_token >= 200000) {
|
||||||
botMessage.content +=
|
botMessage.content +=
|
||||||
"\n\n" +
|
"\n\n" +
|
||||||
prettyObject({
|
prettyObject({
|
||||||
|
Loading…
Reference in New Issue
Block a user