configurable stream timeout, show per-call timer in status bar
Stream chunk timeout is now api_stream_timeout_secs in config (default 60s). Status bar shows total turn time and per-call time with timeout: "thinking... 45s, 12/60s". Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
13d9cc962e
commit
156626ae53
3 changed files with 24 additions and 5 deletions
|
|
@ -54,6 +54,7 @@ pub struct ContextGroup {
|
|||
|
||||
fn default_true() -> bool { true }
|
||||
fn default_context_window() -> usize { 128_000 }
|
||||
fn default_stream_timeout() -> u64 { 60 }
|
||||
fn default_identity_dir() -> PathBuf {
|
||||
PathBuf::from(std::env::var("HOME").expect("HOME not set")).join(".consciousness/identity")
|
||||
}
|
||||
|
|
@ -91,6 +92,9 @@ pub struct Config {
|
|||
/// Used to resolve API settings, not stored on Config
|
||||
#[serde(default)]
|
||||
agent_model: Option<String>,
|
||||
/// Stream chunk timeout in seconds (no data = timeout).
|
||||
#[serde(default = "default_stream_timeout")]
|
||||
pub api_stream_timeout_secs: u64,
|
||||
pub api_reasoning: String,
|
||||
pub agent_types: Vec<String>,
|
||||
/// Surface agent timeout in seconds.
|
||||
|
|
@ -138,6 +142,7 @@ impl Default for Config {
|
|||
api_key: None,
|
||||
api_model: None,
|
||||
api_context_window: default_context_window(),
|
||||
api_stream_timeout_secs: default_stream_timeout(),
|
||||
agent_model: None,
|
||||
api_reasoning: "high".to_string(),
|
||||
agent_types: vec![
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue