mirror of
https://github.com/ntop/ntopng.git
synced 2026-07-11 17:01:26 +00:00
Added concise mode to chatbot response (#10246)
* Added concise mode to chatbot * Update dist
This commit is contained in:
parent
a2230262a0
commit
ca0b6e1125
6 changed files with 466 additions and 331 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -2262,6 +2262,7 @@ local known_parameters = {
|
|||
["chatId"] = validateUUID,
|
||||
["sequence"] = validateNumber,
|
||||
["title"] = validateUnquoted,
|
||||
["concise"] = validateBool,
|
||||
|
||||
-- VULNERABILITY SCAN
|
||||
["scan_type"] = validateSingleWord,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue