Possible to disable random thinking messages (#3304)
Co-authored-by: angiejones <jones.angie@gmail.com>
This commit is contained in:
@@ -95,10 +95,17 @@ pub struct ThinkingIndicator {
|
||||
impl ThinkingIndicator {
|
||||
pub fn show(&mut self) {
|
||||
let spinner = cliclack::spinner();
|
||||
spinner.start(format!(
|
||||
"{}...",
|
||||
super::thinking::get_random_thinking_message()
|
||||
));
|
||||
if Config::global()
|
||||
.get_param("RANDOM_THINKING_MESSAGES")
|
||||
.unwrap_or(true)
|
||||
{
|
||||
spinner.start(format!(
|
||||
"{}...",
|
||||
super::thinking::get_random_thinking_message()
|
||||
));
|
||||
} else {
|
||||
spinner.start("Thinking...");
|
||||
}
|
||||
self.spinner = Some(spinner);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user