mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
Modifications
This commit is contained in:
parent
da2e2372aa
commit
b8b49fd0cc
1
.gitignore
vendored
1
.gitignore
vendored
@ -41,6 +41,7 @@ dev
|
|||||||
|
|
||||||
# docker-compose env files
|
# docker-compose env files
|
||||||
.env
|
.env
|
||||||
|
.env.local
|
||||||
|
|
||||||
*.key
|
*.key
|
||||||
*.key.pub
|
*.key.pub
|
@ -155,10 +155,10 @@ export function SideBar(props: { className?: string }) {
|
|||||||
>
|
>
|
||||||
<div className={styles["sidebar-header"]} data-tauri-drag-region>
|
<div className={styles["sidebar-header"]} data-tauri-drag-region>
|
||||||
<div className={styles["sidebar-title"]} data-tauri-drag-region>
|
<div className={styles["sidebar-title"]} data-tauri-drag-region>
|
||||||
NextChat
|
بسم الله الرحمن الرحيم
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["sidebar-sub-title"]}>
|
<div className={styles["sidebar-sub-title"]}>
|
||||||
Build your own AI assistant.
|
S'entraîner avec l'IA
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["sidebar-logo"] + " no-dark"}>
|
<div className={styles["sidebar-logo"] + " no-dark"}>
|
||||||
<ChatGptIcon />
|
<ChatGptIcon />
|
||||||
@ -179,13 +179,13 @@ export function SideBar(props: { className?: string }) {
|
|||||||
}}
|
}}
|
||||||
shadow
|
shadow
|
||||||
/>
|
/>
|
||||||
<IconButton
|
{/* <IconButton
|
||||||
icon={<PluginIcon />}
|
icon={<PluginIcon />}
|
||||||
text={shouldNarrow ? undefined : Locale.Plugin.Name}
|
text={shouldNarrow ? undefined : Locale.Plugin.Name}
|
||||||
className={styles["sidebar-bar-button"]}
|
className={styles["sidebar-bar-button"]}
|
||||||
onClick={() => showToast(Locale.WIP)}
|
onClick={() => showToast(Locale.WIP)}
|
||||||
shadow
|
shadow
|
||||||
/>
|
/> */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -67,8 +67,8 @@ export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown";
|
|||||||
|
|
||||||
export enum ServiceProvider {
|
export enum ServiceProvider {
|
||||||
OpenAI = "OpenAI",
|
OpenAI = "OpenAI",
|
||||||
Azure = "Azure",
|
// Azure = "Azure",
|
||||||
Google = "Google",
|
// Google = "Google",
|
||||||
Anthropic = "Anthropic",
|
Anthropic = "Anthropic",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,29 +138,29 @@ export const KnowledgeCutOffDate: Record<string, string> = {
|
|||||||
|
|
||||||
const openaiModels = [
|
const openaiModels = [
|
||||||
"gpt-3.5-turbo",
|
"gpt-3.5-turbo",
|
||||||
"gpt-3.5-turbo-1106",
|
// "gpt-3.5-turbo-1106",
|
||||||
"gpt-3.5-turbo-0125",
|
// "gpt-3.5-turbo-0125",
|
||||||
"gpt-4",
|
"gpt-4",
|
||||||
"gpt-4-0613",
|
// "gpt-4-0613",
|
||||||
"gpt-4-32k",
|
// "gpt-4-32k",
|
||||||
"gpt-4-32k-0613",
|
// "gpt-4-32k-0613",
|
||||||
"gpt-4-turbo",
|
"gpt-4-turbo",
|
||||||
"gpt-4-turbo-preview",
|
// "gpt-4-turbo-preview",
|
||||||
"gpt-4o",
|
"gpt-4o",
|
||||||
"gpt-4o-2024-05-13",
|
// "gpt-4o-2024-05-13",
|
||||||
"gpt-4-vision-preview",
|
// "gpt-4-vision-preview",
|
||||||
"gpt-4-turbo-2024-04-09"
|
// "gpt-4-turbo-2024-04-09"
|
||||||
];
|
];
|
||||||
|
|
||||||
const googleModels = [
|
// const googleModels = [
|
||||||
"gemini-1.0-pro",
|
// "gemini-1.0-pro",
|
||||||
"gemini-1.5-pro-latest",
|
// "gemini-1.5-pro-latest",
|
||||||
"gemini-1.5-flash-latest",
|
// "gemini-1.5-flash-latest",
|
||||||
"gemini-pro-vision",
|
// "gemini-pro-vision",
|
||||||
];
|
// ];
|
||||||
|
|
||||||
const anthropicModels = [
|
const anthropicModels = [
|
||||||
"claude-instant-1.2",
|
// "claude-instant-1.2",
|
||||||
"claude-2.0",
|
"claude-2.0",
|
||||||
"claude-2.1",
|
"claude-2.1",
|
||||||
"claude-3-sonnet-20240229",
|
"claude-3-sonnet-20240229",
|
||||||
@ -178,15 +178,15 @@ export const DEFAULT_MODELS = [
|
|||||||
providerType: "openai",
|
providerType: "openai",
|
||||||
},
|
},
|
||||||
})),
|
})),
|
||||||
...googleModels.map((name) => ({
|
// ...googleModels.map((name) => ({
|
||||||
name,
|
// name,
|
||||||
available: true,
|
// available: true,
|
||||||
provider: {
|
// provider: {
|
||||||
id: "google",
|
// id: "google",
|
||||||
providerName: "Google",
|
// providerName: "Google",
|
||||||
providerType: "google",
|
// providerType: "google",
|
||||||
},
|
// },
|
||||||
})),
|
// })),
|
||||||
...anthropicModels.map((name) => ({
|
...anthropicModels.map((name) => ({
|
||||||
name,
|
name,
|
||||||
available: true,
|
available: true,
|
||||||
|
@ -128,7 +128,7 @@ const fr: PartialLocaleType = {
|
|||||||
FoundUpdate: (x: string) => `Nouvelle version disponible : ${x}`,
|
FoundUpdate: (x: string) => `Nouvelle version disponible : ${x}`,
|
||||||
GoToUpdate: "Mise à jour",
|
GoToUpdate: "Mise à jour",
|
||||||
},
|
},
|
||||||
SendKey: "Clé d'envoi",
|
SendKey: "Touche pour envoyer le message",
|
||||||
Theme: "Thème",
|
Theme: "Thème",
|
||||||
TightBorder: "Bordure serrée",
|
TightBorder: "Bordure serrée",
|
||||||
SendPreviewBubble: {
|
SendPreviewBubble: {
|
||||||
@ -240,7 +240,7 @@ const fr: PartialLocaleType = {
|
|||||||
Sysmessage: "Eres un asistente que",
|
Sysmessage: "Eres un asistente que",
|
||||||
},
|
},
|
||||||
Mask: {
|
Mask: {
|
||||||
Name: "Masque",
|
Name: "Assistants",
|
||||||
Page: {
|
Page: {
|
||||||
Title: "Modèle de prompt",
|
Title: "Modèle de prompt",
|
||||||
SubTitle: (count: number) => `${count} modèles de prompts`,
|
SubTitle: (count: number) => `${count} modèles de prompts`,
|
||||||
|
Loading…
Reference in New Issue
Block a user