refac
This commit is contained in:
1 parent
c89b6c50bc
commit
31996a5acf
2 files changed
+20
-1
No files matched your search
@@ -121,7 +121,6 @@
|
|||||||
const res = await getToolServerConnections(localStorage.token);
|
const res = await getToolServerConnections(localStorage.token);
|
||||||
servers = res.TOOL_SERVER_CONNECTIONS as ToolServerConnection[];
|
servers = res.TOOL_SERVER_CONNECTIONS as ToolServerConnection[];
|
||||||
|
|
||||||
// Load terminal server connections
|
|
||||||
try {
|
try {
|
||||||
const terminalRes = await getTerminalServerConnections(localStorage.token);
|
const terminalRes = await getTerminalServerConnections(localStorage.token);
|
||||||
if (terminalRes?.TERMINAL_SERVER_CONNECTIONS) {
|
if (terminalRes?.TERMINAL_SERVER_CONNECTIONS) {
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
let chatConfig = {
|
let chatConfig = {
|
||||||
ENABLE_CONTEXT_COMPACTION: false,
|
ENABLE_CONTEXT_COMPACTION: false,
|
||||||
CONTEXT_COMPACTION_TOKEN_THRESHOLD: 80000,
|
CONTEXT_COMPACTION_TOKEN_THRESHOLD: 80000,
|
||||||
|
CONTEXT_COMPACTION_TOKEN_CAP: 80000,
|
||||||
CONTEXT_COMPACTION_PROMPT_TEMPLATE: ''
|
CONTEXT_COMPACTION_PROMPT_TEMPLATE: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -253,6 +254,25 @@
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-2.5">
|
||||||
|
<div class=" mb-1 text-xs font-medium">{$i18n.t('Token Cap')}</div>
|
||||||
|
|
||||||
|
<Tooltip
|
||||||
|
content={$i18n.t(
|
||||||
|
'Model-specific context compaction thresholds cannot exceed this token limit.'
|
||||||
|
)}
|
||||||
|
placement="top-start"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
min="1"
|
||||||
|
step="1"
|
||||||
|
class="w-full rounded-lg py-2 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-hidden"
|
||||||
|
bind:value={chatConfig.CONTEXT_COMPACTION_TOKEN_CAP}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="mb-2.5">
|
<div class="mb-2.5">
|
||||||
<div class=" mb-1 text-xs font-medium">{$i18n.t('Context Compaction Prompt')}</div>
|
<div class=" mb-1 text-xs font-medium">{$i18n.t('Context Compaction Prompt')}</div>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user