feat: remove redundant traces and update LLM server args
- Remove trace logs in compact_prompt.rs that were cluttering logs without adding value - Simplify LLM server args in local.rs by removing redundant --reasoning-format parameter - Add ID to float menu div in index.html for better DOM targeting - Clean up code by removing unnecessary debug logging while maintaining functionality
This commit is contained in:
parent
7de29e6189
commit
32e1d740bc
3 changed files with 2 additions and 9 deletions
|
|
@ -71,15 +71,9 @@ async fn compact_prompt_for_bots(
|
||||||
}
|
}
|
||||||
|
|
||||||
if !has_new_messages && last_summary_index.is_some() {
|
if !has_new_messages && last_summary_index.is_some() {
|
||||||
trace!(
|
|
||||||
"Skipping session {} - no new messages since last summary",
|
|
||||||
session.id
|
|
||||||
);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if messages_since_summary < compact_threshold as usize {
|
if messages_since_summary < compact_threshold as usize {
|
||||||
trace!("Skipping compaction for session {} - only {} new messages since last summary (threshold: {})",
|
|
||||||
session.id, messages_since_summary, compact_threshold);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -123,7 +117,6 @@ async fn compact_prompt_for_bots(
|
||||||
})];
|
})];
|
||||||
|
|
||||||
let llm_provider = state.llm_provider.clone();
|
let llm_provider = state.llm_provider.clone();
|
||||||
trace!("Starting summarization for session {}", session.id);
|
|
||||||
let mut filtered = String::new();
|
let mut filtered = String::new();
|
||||||
let config_manager = crate::config::ConfigManager::new(state.conn.clone());
|
let config_manager = crate::config::ConfigManager::new(state.conn.clone());
|
||||||
let model = config_manager
|
let model = config_manager
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@ pub async fn start_llm_server(
|
||||||
.get_config(&default_bot_id, "llm-server-n-predict", None)
|
.get_config(&default_bot_id, "llm-server-n-predict", None)
|
||||||
.unwrap_or("50".to_string());
|
.unwrap_or("50".to_string());
|
||||||
let mut args = format!(
|
let mut args = format!(
|
||||||
"-m {} --host 0.0.0.0 --port {} --reasoning-format deepseek --top_p 0.95 --temp 0.6 --repeat-penalty 1.2 --n-gpu-layers {}",
|
"-m {} --host 0.0.0.0 --port {} --top_p 0.95 --temp 0.6 --repeat-penalty 1.2 --n-gpu-layers {}",
|
||||||
model_path, port, gpu_layers
|
model_path, port, gpu_layers
|
||||||
);
|
);
|
||||||
if !reasoning_format.is_empty() {
|
if !reasoning_format.is_empty() {
|
||||||
|
|
|
||||||
|
|
@ -772,7 +772,7 @@
|
||||||
<div class="connection-status connecting" id="connectionStatus"></div>
|
<div class="connection-status connecting" id="connectionStatus"></div>
|
||||||
<div class="flash-overlay" id="flashOverlay"></div>
|
<div class="flash-overlay" id="flashOverlay"></div>
|
||||||
|
|
||||||
<div class="float-menu">
|
<div class="float-menu" id="floatMenu">
|
||||||
<div class="float-logo" id="floatLogo" title="Menu"></div>
|
<div class="float-logo" id="floatLogo" title="Menu"></div>
|
||||||
<div class="menu-button" id="themeBtn" title="Theme">⚙</div>
|
<div class="menu-button" id="themeBtn" title="Theme">⚙</div>
|
||||||
<div class="menu-button" id="newSessionBtn" title="New Session">+</div>
|
<div class="menu-button" id="newSessionBtn" title="New Session">+</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue