Compare commits

...

5 Commits

Author SHA1 Message Date
fishshi
ac47eadcec Merge 485c3c7509 into 11b37c15bd 2025-04-17 13:03:20 +08:00
RiverRay
11b37c15bd Merge pull request #6450 from stephen-zeng/main
Some checks failed
Run Tests / test (push) Has been cancelled
Add gpt-4.1 family & gpt-4.5-preview support
2025-04-17 08:29:19 +08:00
QwQwQ
1d0038f17d add gpt-4.5-preview support 2025-04-16 22:10:47 +08:00
QwQwQ
619fa519c0 add gpt-4.1 family support 2025-04-16 22:02:35 +08:00
fishshi
485c3c7509 use i18n for theme setting 2025-01-22 23:02:04 +08:00
5 changed files with 34 additions and 2 deletions

View File

@@ -1574,7 +1574,7 @@ export function Settings() {
>
{Object.values(Theme).map((v) => (
<option value={v} key={v}>
{v}
{Locale.Settings.ThemeOptions[v]}
</option>
))}
</Select>

View File

@@ -417,6 +417,14 @@ export const KnowledgeCutOffDate: Record<string, string> = {
"gpt-4-turbo": "2023-12",
"gpt-4-turbo-2024-04-09": "2023-12",
"gpt-4-turbo-preview": "2023-12",
"gpt-4.1": "2024-06",
"gpt-4.1-2025-04-14": "2024-06",
"gpt-4.1-mini": "2024-06",
"gpt-4.1-mini-2025-04-14": "2024-06",
"gpt-4.1-nano": "2024-06",
"gpt-4.1-nano-2025-04-14": "2024-06",
"gpt-4.5-preview": "2023-10",
"gpt-4.5-preview-2025-02-27": "2023-10",
"gpt-4o": "2023-10",
"gpt-4o-2024-05-13": "2023-10",
"gpt-4o-2024-08-06": "2023-10",
@@ -458,6 +466,7 @@ export const DEFAULT_TTS_VOICES = [
export const VISION_MODEL_REGEXES = [
/vision/,
/gpt-4o/,
/gpt-4\.1/,
/claude-3/,
/gemini-1\.5/,
/gemini-exp/,
@@ -485,6 +494,14 @@ const openaiModels = [
"gpt-4-32k-0613",
"gpt-4-turbo",
"gpt-4-turbo-preview",
"gpt-4.1",
"gpt-4.1-2025-04-14",
"gpt-4.1-mini",
"gpt-4.1-mini-2025-04-14",
"gpt-4.1-nano",
"gpt-4.1-nano-2025-04-14",
"gpt-4.5-preview",
"gpt-4.5-preview-2025-02-27",
"gpt-4o",
"gpt-4o-2024-05-13",
"gpt-4o-2024-08-06",

View File

@@ -211,6 +211,11 @@ const cn = {
},
SendKey: "发送键",
Theme: "主题",
ThemeOptions: {
auto: "自动",
light: "亮色",
dark: "深色",
},
TightBorder: "无边框模式",
SendPreviewBubble: {
Title: "预览气泡",

View File

@@ -213,6 +213,11 @@ const en: LocaleType = {
},
SendKey: "Send Key",
Theme: "Theme",
ThemeOptions: {
auto: "Auto",
light: "Light",
dark: "Dark",
},
TightBorder: "Tight Border",
SendPreviewBubble: {
Title: "Send Preview Bubble",

View File

@@ -166,7 +166,7 @@ const tw = {
},
},
Lang: {
Name: "Language", // ATTENTION: if you wanna add a new translation, please do not translate this value, leave it as `Language`
Name: "Language", // 注意:如果您想添加新的翻譯,請不要翻譯此值,保持為 Language
All: "所有語言",
},
Avatar: "大頭貼",
@@ -198,6 +198,11 @@ const tw = {
},
SendKey: "傳送鍵",
Theme: "主題",
ThemeOptions: {
auto: "自動",
light: "亮色",
dark: "深色",
},
TightBorder: "緊湊邊框",
SendPreviewBubble: {
Title: "預覽氣泡",