diff --git a/package-lock.json b/package-lock.json
index 83a07c00..e7db8fc3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -44,7 +44,7 @@
"web-vitals": "^2.1.4"
},
"devDependencies": {
- "@tauri-apps/cli": "^1.2.3",
+ "@tauri-apps/cli": "^1.5.9",
"@types/highlight.js": "^10.1.0",
"@types/markdown-it": "^12.2.3",
"@types/markdown-it-link-attributes": "^3.0.1",
@@ -4045,11 +4045,10 @@
}
},
"node_modules/@tauri-apps/cli": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-1.2.3.tgz",
- "integrity": "sha512-erxtXuPhMEGJPBtnhPILD4AjuT81GZsraqpFvXAmEJZ2p8P6t7MVBifCL8LznRknznM3jn90D3M8RNBP3wcXTw==",
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-1.5.9.tgz",
+ "integrity": "sha512-knSt/9AvCTeyfC6wkyeouF9hBW/0Mzuw+5vBKEvzaGPQsfFJo1ZCp5FkdiZpGBBfnm09BhugasGRTGofzatfqQ==",
"dev": true,
- "license": "Apache-2.0 OR MIT",
"bin": {
"tauri": "tauri.js"
},
@@ -4061,26 +4060,42 @@
"url": "https://opencollective.com/tauri"
},
"optionalDependencies": {
- "@tauri-apps/cli-darwin-arm64": "1.2.3",
- "@tauri-apps/cli-darwin-x64": "1.2.3",
- "@tauri-apps/cli-linux-arm-gnueabihf": "1.2.3",
- "@tauri-apps/cli-linux-arm64-gnu": "1.2.3",
- "@tauri-apps/cli-linux-arm64-musl": "1.2.3",
- "@tauri-apps/cli-linux-x64-gnu": "1.2.3",
- "@tauri-apps/cli-linux-x64-musl": "1.2.3",
- "@tauri-apps/cli-win32-ia32-msvc": "1.2.3",
- "@tauri-apps/cli-win32-x64-msvc": "1.2.3"
+ "@tauri-apps/cli-darwin-arm64": "1.5.9",
+ "@tauri-apps/cli-darwin-x64": "1.5.9",
+ "@tauri-apps/cli-linux-arm-gnueabihf": "1.5.9",
+ "@tauri-apps/cli-linux-arm64-gnu": "1.5.9",
+ "@tauri-apps/cli-linux-arm64-musl": "1.5.9",
+ "@tauri-apps/cli-linux-x64-gnu": "1.5.9",
+ "@tauri-apps/cli-linux-x64-musl": "1.5.9",
+ "@tauri-apps/cli-win32-arm64-msvc": "1.5.9",
+ "@tauri-apps/cli-win32-ia32-msvc": "1.5.9",
+ "@tauri-apps/cli-win32-x64-msvc": "1.5.9"
+ }
+ },
+ "node_modules/@tauri-apps/cli-darwin-arm64": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-1.5.9.tgz",
+ "integrity": "sha512-7C2Jf8f0gzv778mLYb7Eszqqv1bm9Wzews81MRTqKrUIcC+eZEtDXLex+JaEkEzFEUrgIafdOvMBVEavF030IA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
}
},
"node_modules/@tauri-apps/cli-darwin-x64": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-1.2.3.tgz",
- "integrity": "sha512-jFZ/y6z8z6v4yliIbXKBXA7BJgtZVMsITmEXSuD6s5+eCOpDhQxbRkr6CA+FFfr+/r96rWSDSgDenDQuSvPAKw==",
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-1.5.9.tgz",
+ "integrity": "sha512-LHKytpkofPYgH8RShWvwDa3hD1ws131x7g7zNasJPfOiCWLqYVQFUuQVmjEUt8+dpHe/P/err5h4z+YZru2d0A==",
"cpu": [
"x64"
],
"dev": true,
- "license": "MIT",
"optional": true,
"os": [
"darwin"
@@ -4089,6 +4104,134 @@
"node": ">= 10"
}
},
+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-1.5.9.tgz",
+ "integrity": "sha512-teGK20IYKx+dVn8wFq/Lg57Q9ce7foq1KHSfyHi464LVt1T0V1rsmULSgZpQPPj/NYPF5BG78PcWYv64yH86jw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-1.5.9.tgz",
+ "integrity": "sha512-onJ/DW5Crw38qVx+wquY4uBbfCxVhzhdJmlCYqnYyXsZZmSiPUfSyhV58y+5TYB0q1hG8eYdB5x8VAwzByhGzw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.5.9.tgz",
+ "integrity": "sha512-23AYoLD3acakLp9NtheKQDJl8F66eTOflxoPzdJNRy13hUSxb+W9qpz4rRA+CIzkjICFvO2i3UWjeV9QwDVpsQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-1.5.9.tgz",
+ "integrity": "sha512-9PQA1rE7gh41W2ylyKd5qOGOds55ymaYPml9KOpM0g+cxmCXa+8Wf9K5NKvACnJldJJ6cekWzIyB4eN6o5T+yQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-musl": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-1.5.9.tgz",
+ "integrity": "sha512-5hdbNFeDsrJ/pXZ4cSQV4bJwUXPPxXxN3/pAtNUqIph7q+vLcBXOXIMoS64iuyaluJC59lhEwlWZFz+EPv0Hqg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-1.5.9.tgz",
+ "integrity": "sha512-O18JufjSB3hSJYu5WWByONouGeX7DraLAtXLErsG1r/VS3zHd/zyuzycrVUaObNXk5bfGlIP0Ypt+RvZJILN2w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-1.5.9.tgz",
+ "integrity": "sha512-FQxtxTZu0JVBihfd/lmpxo7jyMOesjWQehfyVUqtgMfm5+Pvvw0Y+ZioeDi1TZkFVrT3QDYy8R4LqDLSZVMQRA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {
+ "version": "1.5.9",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-1.5.9.tgz",
+ "integrity": "sha512-EeI1+L518cIBLKw0qUFwnLIySBeSmPQjPLIlNwSukHSro4tAQPHycEVGgKrdToiCWgaZJBA0e5aRSds0Du2TWg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/@testing-library/dom": {
"version": "8.20.0",
"resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.0.tgz",
diff --git a/package.json b/package.json
index eb132502..ec9891dd 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
},
"license": "GPL-3.0 license",
"devDependencies": {
- "@tauri-apps/cli": "^1.2.3",
+ "@tauri-apps/cli": "^1.5.9",
"@types/highlight.js": "^10.1.0",
"@types/markdown-it": "^12.2.3",
"@types/markdown-it-link-attributes": "^3.0.1",
diff --git a/src/dialogs/SettingDialog.tsx b/src/dialogs/SettingDialog.tsx
index efe84b7f..0444fc70 100644
--- a/src/dialogs/SettingDialog.tsx
+++ b/src/dialogs/SettingDialog.tsx
@@ -34,7 +34,7 @@ import PlaylistAddCheckCircleIcon from '@mui/icons-material/PlaylistAddCheckCirc
import LightbulbCircleIcon from '@mui/icons-material/LightbulbCircle'
const { useEffect } = React
-const models: string[] = ['gpt-3.5-turbo', 'gpt-3.5-turbo-0301', 'gpt-4', 'gpt-4-0314', 'gpt-4-32k', 'gpt-4-32k-0314']
+const models: string[] = ['gpt-3.5-turbo', 'gpt-3.5-turbo-0301', 'gpt-4', 'gpt-4-turbo-preview', 'gpt-4-0125-preview']
const languages: string[] = ['en', 'zh-Hans', 'zh-Hant', 'jp']
const languageMap: { [key: string]: string } = {
en: 'English',
@@ -60,7 +60,7 @@ export default function SettingDialog(props: Props) {
}
}
const handleMaxContextSliderChange = (event: Event, newValue: number | number[], activeThumb: number) => {
- if (newValue === 8192) {
+ if (newValue === 128000) {
setSettingsEdit({ ...settingsEdit, maxContextSize: 'inf' })
} else {
setSettingsEdit({ ...settingsEdit, maxContextSize: newValue.toString() })
@@ -95,7 +95,7 @@ export default function SettingDialog(props: Props) {
} else {
const numValue = Number(value)
if (!isNaN(numValue) && numValue >= 0) {
- if (numValue > 8192) {
+ if (numValue > 128000) {
setSettingsEdit({ ...settingsEdit, maxContextSize: 'inf' })
return
}
@@ -327,7 +327,7 @@ export default function SettingDialog(props: Props) {
=7.21.4":
version "8.20.0"