Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
dc4642d
Update Text And ThemeColor layout.tsx
Igroshka Jun 6, 2024
4322779
Update globals.scss
Igroshka Jun 6, 2024
d5a383f
Update globals.scss Theme Color
Igroshka Jun 6, 2024
f9ac5a2
Update globals.scssColors
Igroshka Jun 6, 2024
698903b
Update globals.scss
Igroshka Jun 6, 2024
35c69a2
Update sidebar.tsx
Igroshka Jun 6, 2024
d1cf145
Update ru.ts
Igroshka Jun 6, 2024
7e2764d
Update settings.tsx CustomModel Disable
Igroshka Jun 6, 2024
8a0bd28
Update model-config.tsx Max Tokens 1,056,768
Igroshka Jun 6, 2024
1dfd496
Update sidebar.tsx
Igroshka Jun 6, 2024
66d8c83
Update api.ts
Igroshka Jun 6, 2024
5741fdb
Update sidebar.tsx
Igroshka Jun 6, 2024
2703a4a
Update api.ts
Igroshka Jun 6, 2024
0470a60
Update config.ts
Igroshka Jun 6, 2024
2ae03c0
Update config.ts
Igroshka Jun 6, 2024
4ea98dd
Update config.ts
Igroshka Jun 6, 2024
319fe74
Update config.ts
Igroshka Jun 6, 2024
64e7c7e
Update globals.scss
Igroshka Jun 7, 2024
1631ad1
Update home.module.scss
Igroshka Jun 7, 2024
d6e0e83
Update settings.tsx Version Cut
Igroshka Jun 7, 2024
e903866
Update settings.tsx VERSION IN SETTINGS DELETED
Igroshka Jun 7, 2024
5443eaf
Update settings.tsx
Igroshka Jun 7, 2024
6509438
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Jun 8, 2024
0690f9b
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Jun 25, 2024
a4e7aed
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Jun 27, 2024
56b5378
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Jul 2, 2024
6f31ec3
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Jul 4, 2024
91da288
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next…
actions-user Jul 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class ClientApi {
{
from: "human",
value:
"Share from [NextChat]: https://github.com/Yidadaa/ChatGPT-Next-Web",
"Поделились с [AiHubChat]: https://yufic.ru/a/aihubchat",
},
]);
// 敬告二开开发者们,为了开源大模型的发展,请不要修改上述消息,此消息用于后续数据清洗使用
Expand Down
2 changes: 1 addition & 1 deletion app/components/home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
.chat-item-info {
display: flex;
justify-content: space-between;
color: rgb(166, 166, 166);
color: #444444;
font-size: 12px;
margin-top: 8px;
animation: slide-in ease 0.3s;
Expand Down
2 changes: 1 addition & 1 deletion app/components/model-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function ModelConfigList(props: {
<input
type="number"
min={1024}
max={512000}
max={1056768}
value={props.modelConfig.max_tokens}
onChange={(e) =>
props.updateConfig(
Expand Down
55 changes: 3 additions & 52 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -567,20 +567,9 @@ export function Settings() {

const updateStore = useUpdateStore();
const [checkingUpdate, setCheckingUpdate] = useState(false);
const currentVersion = updateStore.formatVersion(updateStore.version);
const remoteId = updateStore.formatVersion(updateStore.remoteVersion);
const hasNewVersion = currentVersion !== remoteId;

const updateUrl = getClientConfig()?.isApp ? RELEASE_URL : UPDATE_URL;

function checkUpdate(force = false) {
setCheckingUpdate(true);
updateStore.getLatestVersion(force).then(() => {
setCheckingUpdate(false);
});

console.log("[Update] local version ", updateStore.version);
console.log("[Update] remote version ", updateStore.remoteVersion);
}

const accessStore = useAccessStore();
const shouldHideBalanceQuery = useMemo(() => {
Expand Down Expand Up @@ -627,7 +616,6 @@ export function Settings() {
const showUsage = accessStore.isAuthorized();
useEffect(() => {
// checks per minutes
checkUpdate();
showUsage && checkUsage();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
Expand Down Expand Up @@ -703,30 +691,7 @@ export function Settings() {
</Popover>
</ListItem>

<ListItem
title={Locale.Settings.Update.Version(currentVersion ?? "unknown")}
subTitle={
checkingUpdate
? Locale.Settings.Update.IsChecking
: hasNewVersion
? Locale.Settings.Update.FoundUpdate(remoteId ?? "ERROR")
: Locale.Settings.Update.IsLatest
}
>
{checkingUpdate ? (
<LoadingIcon />
) : hasNewVersion ? (
<Link href={updateUrl} target="_blank" className="link">
{Locale.Settings.Update.GoToUpdate}
</Link>
) : (
<IconButton
icon={<ResetIcon></ResetIcon>}
text={Locale.Settings.Update.CheckUpdate}
onClick={() => checkUpdate(true)}
/>
)}
</ListItem>


<ListItem title={Locale.Settings.SendKey}>
<Select
Expand Down Expand Up @@ -1218,21 +1183,7 @@ export function Settings() {
</ListItem>
) : null}

<ListItem
title={Locale.Settings.Access.CustomModel.Title}
subTitle={Locale.Settings.Access.CustomModel.SubTitle}
>
<input
type="text"
value={config.customModels}
placeholder="model1,model2,model3"
onChange={(e) =>
config.update(
(config) => (config.customModels = e.currentTarget.value),
)
}
></input>
</ListItem>

</List>

<List>
Expand Down
20 changes: 3 additions & 17 deletions app/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import styles from "./home.module.scss";

import { IconButton } from "./button";
import SettingsIcon from "../icons/settings.svg";
import GithubIcon from "../icons/github.svg";
import ChatGptIcon from "../icons/chatgpt.svg";
import AddIcon from "../icons/add.svg";
import CloseIcon from "../icons/close.svg";
import DeleteIcon from "../icons/delete.svg";
import MaskIcon from "../icons/mask.svg";
import PluginIcon from "../icons/plugin.svg";
import DragIcon from "../icons/drag.svg";

import Locale from "../locales";
Expand All @@ -23,7 +21,6 @@ import {
MIN_SIDEBAR_WIDTH,
NARROW_SIDEBAR_WIDTH,
Path,
REPO_URL,
} from "../constant";

import { Link, useNavigate } from "react-router-dom";
Expand Down Expand Up @@ -155,10 +152,10 @@ export function SideBar(props: { className?: string }) {
>
<div className={styles["sidebar-header"]} data-tauri-drag-region>
<div className={styles["sidebar-title"]} data-tauri-drag-region>
NextChat
AiHubChat
</div>
<div className={styles["sidebar-sub-title"]}>
Build your own AI assistant.
Чат с Искуственным Интелектом
</div>
<div className={styles["sidebar-logo"] + " no-dark"}>
<ChatGptIcon />
Expand All @@ -179,13 +176,6 @@ export function SideBar(props: { className?: string }) {
}}
shadow
/>
<IconButton
icon={<PluginIcon />}
text={shouldNarrow ? undefined : Locale.Plugin.Name}
className={styles["sidebar-bar-button"]}
onClick={() => showToast(Locale.WIP)}
shadow
/>
</div>

<div
Expand Down Expand Up @@ -216,11 +206,7 @@ export function SideBar(props: { className?: string }) {
<IconButton icon={<SettingsIcon />} shadow />
</Link>
</div>
<div className={styles["sidebar-action"]}>
<a href={REPO_URL} target="_blank" rel="noopener noreferrer">
<IconButton icon={<GithubIcon />} shadow />
</a>
</div>

</div>
<div>
<IconButton
Expand Down
10 changes: 5 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ import { GoogleTagManager } from "@next/third-parties/google";
const serverConfig = getServerSideConfig();

export const metadata: Metadata = {
title: "NextChat",
description: "Your personal ChatGPT Chat Bot.",
title: "AiHubChat",
description: "Чат с искуственным интелектом",
viewport: {
width: "device-width",
initialScale: 1,
maximumScale: 1,
},
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "#fafafa" },
{ media: "(prefers-color-scheme: dark)", color: "#151515" },
{ media: "(prefers-color-scheme: light)", color: "#bd91c7" },
{ media: "(prefers-color-scheme: dark)", color: "#54305c" },
],
appleWebApp: {
title: "NextChat",
title: "AiHubChat",
statusBarStyle: "default",
},
};
Expand Down
Loading