Added concise mode to chatbot response (#10246)

* Added concise mode to chatbot

* Update dist
This commit is contained in:
GabrieleDeri 2026-04-03 16:04:50 +02:00 committed by GitHub
parent a2230262a0
commit ca0b6e1125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 466 additions and 331 deletions

File diff suppressed because it is too large Load diff

View file

@ -48,10 +48,11 @@
</div>
<!-- Back to chat + refresh -->
<div class="d-flex align-items-end gap-2 ms-auto">
<a v-if="context.chat_url" :href="context.chat_url" class="ai-back-btn">
<div class="d-flex gap-2">
<a v-if="chatUrl" :href="chatUrl" class="ai-back-btn">
<i class="fas fa-comment-alt me-1"></i>{{ _i18n('llm.back_to_chat')}}
</a>
<button class="ai-refresh-btn" @click="applyFilters" :title="_i18n('refresh')" :disabled="loading">
<i class="fas fa-sync-alt" :class="{ 'fa-spin': loading }"></i>
</button>
@ -257,6 +258,7 @@ const byUser = ref([]);
// Triggers badge refresh after data is loaded
const badgeFilters = ref({});
const chatUrl = ref(`${http_prefix}/lua/pro/nanalyst.lua`);
// Table refs for manual refresh on filter changes
const modelTableRef = ref(null);

@ -1 +1 @@
Subproject commit 759cfa0fbc21f4afe73059eae596137219396326
Subproject commit c3958e30a3061e09a876e5d042d867d32113f6f7

View file

@ -7169,6 +7169,7 @@ local lang = {
["hide_evidence"] = "Hide Evidence",
["time_range"] = "Time Range",
["back_to_chat"] = "Back To Chat",
["concise_mode"] = "Concise Mode",
["no_usage_data"] = "No Usage Data Yet",
["token_breakdown"] = "Token Breakdown",
["prompt_tokens"] = "Prompt Tokens",

View file

@ -2262,6 +2262,7 @@ local known_parameters = {
["chatId"] = validateUUID,
["sequence"] = validateNumber,
["title"] = validateUnquoted,
["concise"] = validateBool,
-- VULNERABILITY SCAN
["scan_type"] = validateSingleWord,

View file

@ -3370,7 +3370,8 @@ static int ntop_http_multi_auth_token(lua_State* vm, HttpMethod method) {
HttpGetPostOptions opts;
memset(&opts, 0, sizeof(opts));
opts.user_header_token = auth_token;
//opts.user_header_token = auth_token;
opts.bearer = auth_token;
opts.connect_timeout = connection_timeout;
opts.max_duration_timeout = lifetime_timeout;
opts.return_content = return_content;