Add files via upload

This commit is contained in:
公明
2026-04-19 04:44:55 +08:00
committed by GitHub
parent 5810fd7afa
commit c88594d478
5 changed files with 49 additions and 14 deletions
+6 -3
View File
@@ -46,9 +46,6 @@ function resolveWebshellAiStreamRequest() {
if (!r.ok) return null;
return r.json();
}).then(function (cfg) {
if (!cfg || !cfg.multi_agent || !cfg.multi_agent.enabled) {
return { path: '/api/agent-loop/stream', orchestration: null };
}
var norm = null;
if (typeof window.csaiChatAgentMode === 'object' && typeof window.csaiChatAgentMode.normalizeStored === 'function') {
norm = window.csaiChatAgentMode.normalizeStored(localStorage.getItem('cyberstrike-chat-agent-mode'), cfg);
@@ -58,6 +55,12 @@ function resolveWebshellAiStreamRequest() {
if (mode === 'multi') mode = 'deep';
norm = mode || 'react';
}
if (typeof window.csaiChatAgentMode === 'object' && typeof window.csaiChatAgentMode.isEinoSingle === 'function' && window.csaiChatAgentMode.isEinoSingle(norm)) {
return { path: '/api/eino-agent/stream', orchestration: null };
}
if (!cfg || !cfg.multi_agent || !cfg.multi_agent.enabled) {
return { path: '/api/agent-loop/stream', orchestration: null };
}
if (typeof window.csaiChatAgentMode === 'object' && typeof window.csaiChatAgentMode.isEino === 'function' && window.csaiChatAgentMode.isEino(norm)) {
return { path: '/api/multi-agent/stream', orchestration: norm };
}