Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
W4ddl3 committed Jun 13, 2024
1 parent b6735bf commit 50432ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 71 deletions.
25 changes: 0 additions & 25 deletions app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -703,31 +703,6 @@ 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
value={config.submitKey}
Expand Down
46 changes: 2 additions & 44 deletions app/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ You are ChatGPT, a large language model trained by {{ServiceProvider}}.
Knowledge cutoff: {{cutoff}}
Current model: {{model}}
Current time: {{time}}
Latex inline: \\(x^2\\)
Latex inline: \\(x^2\\)
Latex block: $$e=mc^2$$
`;

Expand All @@ -138,34 +138,10 @@ export const KnowledgeCutOffDate: Record<string, string> = {

const openaiModels = [
"gpt-3.5-turbo",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-0125",
"gpt-4",
"gpt-4-0613",
"gpt-4-32k",
"gpt-4-32k-0613",
"gpt-4-turbo",
"gpt-4-turbo-preview",
"gpt-4o",
"gpt-4o-2024-05-13",
"gpt-4-vision-preview",
"gpt-4-turbo-2024-04-09",
];

const googleModels = [
"gemini-1.0-pro",
"gemini-1.5-pro-latest",
"gemini-1.5-flash-latest",
"gemini-pro-vision",
];

const anthropicModels = [
"claude-instant-1.2",
"claude-2.0",
"claude-2.1",
"claude-3-sonnet-20240229",
"claude-3-opus-20240229",
"claude-3-haiku-20240307",
"gpt-4o"
];

export const DEFAULT_MODELS = [
Expand All @@ -178,24 +154,6 @@ export const DEFAULT_MODELS = [
providerType: "openai",
},
})),
...googleModels.map((name) => ({
name,
available: true,
provider: {
id: "google",
providerName: "Google",
providerType: "google",
},
})),
...anthropicModels.map((name) => ({
name,
available: true,
provider: {
id: "anthropic",
providerName: "Anthropic",
providerType: "anthropic",
},
})),
] as const;

export const CHAT_PAGE_SIZE = 15;
Expand Down
2 changes: 1 addition & 1 deletion app/locales/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ const cn = {
},
Store: {
DefaultTopic: "新的聊天",
BotHello: "有什么可以帮你的吗",
BotHello: "使用前请先阅读[使用教程↗︎](https://docs.b3n.fun/nextchat)",
Error: "出错了,稍后重试吧",
Prompt: {
History: (content: string) => "这是历史聊天总结作为前情提要:" + content,
Expand Down
2 changes: 1 addition & 1 deletion app/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ const en: LocaleType = {
},
Store: {
DefaultTopic: "New Conversation",
BotHello: "Hello! How can I assist you today?",
BotHello: "Please read [Tutorial ︎](https://docs.b3n.fun/nextchat) before use",
Error: "Something went wrong, please try again later.",
Prompt: {
History: (content: string) =>
Expand Down

0 comments on commit 50432ce

Please sign in to comment.