You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Plugins/Plugin_market/hermes/main.js
+47-2Lines changed: 47 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,9 @@
14
14
constDEFAULT_BASE_URL='http://127.0.0.1:8642/v1';
15
15
constDEFAULT_MODEL='hermes-agent';
16
16
constDEFAULT_API_MODE='chat_completions';
17
+
constDEFAULT_REQUEST_TIMEOUT_SECONDS=600;
18
+
constMIN_REQUEST_TIMEOUT_SECONDS=30;
19
+
constMAX_REQUEST_TIMEOUT_SECONDS=3600;
17
20
constREMOTE_URLS_MAX_LENGTH=4000;
18
21
constREMOTE_URL_MAX_LENGTH=300;
19
22
constREMOTE_STATUS_DEBOUNCE_MS=300;
@@ -81,6 +84,8 @@ After enabling, ChatRaw only allows remote Hermes Base URLs explicitly listed in
81
84
apiModeChat: 'Chat Completions',
82
85
apiModeRuns: 'Runs',
83
86
apiModeHint: 'Runs shows Hermes tool events and approval controls in the ChatRaw chat UI.',
87
+
requestTimeout: 'Request timeout (seconds)',
88
+
requestTimeoutHint: 'Applies to Hermes chat generation and run event streams. Use a larger value for long tool chains; health checks, approval, and stop stay short.',
84
89
apiKey: 'API Server Key (if required)',
85
90
apiKeyHint: 'Stored by ChatRaw backend. Official Hermes requires API_SERVER_KEY; leave empty only for compatible servers that do not require auth.',
86
91
apiKeySaved: 'API key saved',
@@ -113,6 +118,7 @@ After enabling, ChatRaw only allows remote Hermes Base URLs explicitly listed in
113
118
settingsHelpRemoteTitle: 'Remote Base URL access',
114
119
settingsHelpModelTitle: 'Model name',
115
120
settingsHelpModeTitle: 'Execution mode',
121
+
settingsHelpTimeoutTitle: 'Request timeout',
116
122
settingsHelpApiKeyTitle: 'API Server Key',
117
123
settingsHelpSessionKeyTitle: 'Session Key'
118
124
},
@@ -168,6 +174,8 @@ After enabling, ChatRaw only allows remote Hermes Base URLs explicitly listed in
'如果是保存后点击检查就 timeout,优先排查 Base URL、Docker 网络和 Hermes 是否在监听。'
778
+
]
779
+
},
750
780
{
751
781
title: t('settingsHelpApiKeyTitle'),
752
782
items: [
@@ -780,7 +810,7 @@ After enabling, ChatRaw only allows remote Hermes Base URLs explicitly listed in
780
810
items: [
781
811
'This is the Hermes API Server root URL used by the ChatRaw backend. It should point to /v1, not /chat/completions, /models, or /runs.',
782
812
'If /v1 is missing, the health check calls /models and official Hermes will usually return 404.',
783
-
'A timeout usually means the ChatRaw backend cannot reach that IP address or port.'
813
+
'A timeout during Check usually means the ChatRaw backend cannot reach that IP address or port.'
784
814
]
785
815
},
786
816
{
@@ -808,6 +838,14 @@ After enabling, ChatRaw only allows remote Hermes Base URLs explicitly listed in
808
838
'Approval applies to tool or command execution in the Hermes API Server machine and configuration environment; ChatRaw never auto-approves tool calls.'
809
839
]
810
840
},
841
+
{
842
+
title: t('settingsHelpTimeoutTitle'),
843
+
items: [
844
+
'This timeout only applies while waiting for Hermes chat generation and Runs event streams. Health checks, approval, and stop requests stay short.',
845
+
'Complex prompts, tool chains, or SSH work may need longer waits. Prefer Stream Output and increase this value above 600 seconds when needed.',
846
+
'If Check times out right after saving, troubleshoot the Base URL, Docker networking, and whether Hermes is listening first.'
847
+
]
848
+
},
811
849
{
812
850
title: t('settingsHelpApiKeyTitle'),
813
851
items: [
@@ -915,6 +953,11 @@ After enabling, ChatRaw only allows remote Hermes Base URLs explicitly listed in
0 commit comments