feat: Add more server side arguments (#1846)

* feat: Add more server side arguments

* nit

* Update locales [skip ci]

---------

Co-authored-by: Oto Ciulis <oto.ciulis@gmail.com>
Co-authored-by: huchenlei <huchenlei@proton.me>
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
oto-ciulis-tt
2024-12-12 11:18:21 -08:00
committed by GitHub
parent 4997d13219
commit 7877c96ffe
6 changed files with 96 additions and 16 deletions

View File

@@ -21,21 +21,6 @@ export interface ServerConfig<T> extends FormItem {
}
export const WEB_ONLY_CONFIG_ITEMS: ServerConfig<any>[] = [
// 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<any>[] = [
export const SERVER_CONFIG_ITEMS: ServerConfig<any>[] = [
// 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<any>[] = [
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: ''
}
]

View File

@@ -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",

View File

@@ -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": "潜在プレビューに使用されるメソッド"
},

View File

@@ -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": "잠재 데이터 미리보기 방법"
},

View File

@@ -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": "Метод, используемый для латентных превью"
},

View File

@@ -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": "用于潜空间预览的方法"
},