diff options
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/input.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/input.rs b/src/config/input.rs index 7662d2c..0325e1c 100644 --- a/src/config/input.rs +++ b/src/config/input.rs @@ -135,6 +135,10 @@ impl Input { self.text = text; } + pub fn stream(&self) -> bool { + self.config.read().stream && !self.role().model().no_stream() + } + pub fn continue_output(&self) -> Option<&str> { self.continue_output.as_deref() } |
