feat: added a clear line separator for the end of LLM turns to make it more clear where they are
This commit is contained in:
1 file changed
+10
@@ -1453,6 +1453,7 @@ async fn ask(
|
|||||||
graph::run_active_agent_graph(ctx, &input.text(), abort_signal.clone()).await?;
|
graph::run_active_agent_graph(ctx, &input.text(), abort_signal.clone()).await?;
|
||||||
app.print_markdown(&output)?;
|
app.print_markdown(&output)?;
|
||||||
ctx.after_chat_completion(app.as_ref(), &input, &output, &[])?;
|
ctx.after_chat_completion(app.as_ref(), &input, &output, &[])?;
|
||||||
|
print_turn_divider();
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1628,10 +1629,19 @@ async fn ask(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_turn_divider();
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn print_turn_divider() {
|
||||||
|
let width = crossterm::terminal::size()
|
||||||
|
.map(|(columns, _)| columns as usize)
|
||||||
|
.unwrap_or(33);
|
||||||
|
println!("{}", dimmed_text(&"─".repeat(width)));
|
||||||
|
println!();
|
||||||
|
}
|
||||||
|
|
||||||
fn should_continue(ctx: &RequestContext) -> bool {
|
fn should_continue(ctx: &RequestContext) -> bool {
|
||||||
let config = ctx.auto_continue_config();
|
let config = ctx.auto_continue_config();
|
||||||
ctx.app.config.function_calling_support
|
ctx.app.config.function_calling_support
|
||||||
|
|||||||
Reference in new issue
Block a user