diff --git a/src/constants/serverConfig.ts b/src/constants/serverConfig.ts index 82035518f..59238d094 100644 --- a/src/constants/serverConfig.ts +++ b/src/constants/serverConfig.ts @@ -21,21 +21,6 @@ export interface ServerConfig extends FormItem { } export const WEB_ONLY_CONFIG_ITEMS: ServerConfig[] = [ - // We only need these settings in the web version. Desktop app manages them already. - { - id: 'listen', - name: 'Host: The IP address to listen on', - category: ['Network'], - type: 'text', - defaultValue: '127.0.0.1' - }, - { - id: 'port', - name: 'Port: The port to listen on', - category: ['Network'], - type: 'number', - defaultValue: 8188 - }, // Launch behavior { id: 'auto-launch', @@ -63,6 +48,21 @@ export const WEB_ONLY_CONFIG_ITEMS: ServerConfig[] = [ export const SERVER_CONFIG_ITEMS: ServerConfig[] = [ // Network settings + { + id: 'listen', + name: 'Host: The IP address to listen on', + category: ['Network'], + type: 'text', + defaultValue: '127.0.0.1' + }, + { + id: 'port', + name: 'Port: The port to listen on', + category: ['Network'], + type: 'number', + // The default launch port for desktop app is 8000 instead of 8188. + defaultValue: 8000 + }, { id: 'tls-keyfile', name: 'TLS Key File: Path to TLS key file for HTTPS', @@ -433,5 +433,20 @@ export const SERVER_CONFIG_ITEMS: ServerConfig[] = [ verbose: value } } + }, + // Directories + { + id: 'input-directory', + name: 'Input directory', + category: ['Directories'], + type: 'text', + defaultValue: '' + }, + { + id: 'output-directory', + name: 'Output directory', + category: ['Directories'], + type: 'text', + defaultValue: '' } ] diff --git a/src/locales/en/main.json b/src/locales/en/main.json index d8303b5e1..56b38d286 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -732,6 +732,12 @@ "EditTokenWeight": "Edit Token Weight" }, "serverConfigItems": { + "listen": { + "name": "Host: The IP address to listen on" + }, + "port": { + "name": "Port: The port to listen on" + }, "tls-keyfile": { "name": "TLS Key File: Path to TLS key file for HTTPS" }, @@ -835,6 +841,12 @@ }, "log-level": { "name": "Logging verbosity level" + }, + "input-directory": { + "name": "Input directory" + }, + "output-directory": { + "name": "Output directory" } }, "serverConfigCategories": { @@ -845,7 +857,8 @@ "Preview": "Preview", "Cache": "Cache", "Attention": "Attention", - "General": "General" + "General": "General", + "Directories": "Directories" }, "nodeCategories": { "_for_testing": "_for_testing", diff --git a/src/locales/ja/main.json b/src/locales/ja/main.json index 30f2fb73d..7d60f0cd6 100644 --- a/src/locales/ja/main.json +++ b/src/locales/ja/main.json @@ -353,6 +353,7 @@ "Attention": "アテンション", "CUDA": "CUDA", "Cache": "キャッシュ", + "Directories": "ディレクトリ", "General": "一般", "Inference": "推論", "Memory": "メモリ", @@ -427,12 +428,24 @@ "name": "グローバル浮動小数点精度", "tooltip": "グローバル浮動小数点精度" }, + "input-directory": { + "name": "入力ディレクトリ" + }, + "listen": { + "name": "ホスト:リッスンするIPアドレス" + }, "log-level": { "name": "ログの冗長性レベル" }, "max-upload-size": { "name": "最大アップロードサイズ (MB)" }, + "output-directory": { + "name": "出力ディレクトリ" + }, + "port": { + "name": "ポート:リッスンするポート" + }, "preview-method": { "name": "潜在プレビューに使用されるメソッド" }, diff --git a/src/locales/ko/main.json b/src/locales/ko/main.json index 2cc5e210a..820deb284 100644 --- a/src/locales/ko/main.json +++ b/src/locales/ko/main.json @@ -353,6 +353,7 @@ "Attention": "어텐션", "CUDA": "CUDA", "Cache": "캐시", + "Directories": "디렉토리", "General": "일반", "Inference": "추론", "Memory": "메모리", @@ -427,12 +428,24 @@ "name": "전역 부동 소수점 정밀도", "tooltip": "전역 부동 소수점 정밀도" }, + "input-directory": { + "name": "입력 디렉토리" + }, + "listen": { + "name": "호스트: 수신할 IP 주소" + }, "log-level": { "name": "로그 출력 수준" }, "max-upload-size": { "name": "최대 업로드 크기 (MB)" }, + "output-directory": { + "name": "출력 디렉토리" + }, + "port": { + "name": "포트: 수신할 포트" + }, "preview-method": { "name": "잠재 데이터 미리보기 방법" }, diff --git a/src/locales/ru/main.json b/src/locales/ru/main.json index 04b7344bd..d8c20addc 100644 --- a/src/locales/ru/main.json +++ b/src/locales/ru/main.json @@ -353,6 +353,7 @@ "Attention": "Внимание", "CUDA": "CUDA", "Cache": "Кэш", + "Directories": "Каталоги", "General": "Общее", "Inference": "Вывод", "Memory": "Память", @@ -427,12 +428,24 @@ "name": "Глобальная точность с плавающей запятой", "tooltip": "Глобальная точность с плавающей запятой" }, + "input-directory": { + "name": "Входной каталог" + }, + "listen": { + "name": "Хост: IP-адрес для прослушивания" + }, "log-level": { "name": "Уровень подробности логирования" }, "max-upload-size": { "name": "Максимальный размер загрузки (МБ)" }, + "output-directory": { + "name": "Выходной каталог" + }, + "port": { + "name": "Порт: Порт для прослушивания" + }, "preview-method": { "name": "Метод, используемый для латентных превью" }, diff --git a/src/locales/zh/main.json b/src/locales/zh/main.json index 2e9e95f65..33b6dfe45 100644 --- a/src/locales/zh/main.json +++ b/src/locales/zh/main.json @@ -353,6 +353,7 @@ "Attention": "注意力", "CUDA": "CUDA", "Cache": "缓存", + "Directories": "目录", "General": "常规", "Inference": "推理", "Memory": "内存", @@ -427,12 +428,24 @@ "name": "全局浮点精度", "tooltip": "全局浮点精度" }, + "input-directory": { + "name": "输入目录" + }, + "listen": { + "name": "主机:要监听的IP地址" + }, "log-level": { "name": "日志详细级别" }, "max-upload-size": { "name": "最大上传大小 (MB)" }, + "output-directory": { + "name": "输出目录" + }, + "port": { + "name": "端口:要监听的端口" + }, "preview-method": { "name": "用于潜空间预览的方法" },