Skip to content

Commit 78e1e1d

Browse files
Copilotyiwang
andcommitted
fix(cli): add LocalGPT label on follow-up responses and redirect tracing to stderr
Co-authored-by: yiwang <142937+yiwang@users.noreply.github.com>
1 parent a107927 commit 78e1e1d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

crates/cli/src/cli/chat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ pub async fn run(args: ChatArgs, agent_id: &str) -> Result<()> {
497497
);
498498
}
499499
}
500-
print!("{}", follow_up);
500+
print!("\nLocalGPT: {}", follow_up);
501501
stdout.flush()?;
502502
}
503503
Err(e) => {

crates/cli/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fn main() -> Result<()> {
3030
tracing_subscriber::EnvFilter::try_from_default_env()
3131
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new(log_level)),
3232
)
33+
.with_writer(std::io::stderr)
3334
.init();
3435
return crate::cli::gen3d::run(args, &cli.agent);
3536
}
@@ -66,6 +67,7 @@ async fn async_main(cli: Cli) -> Result<()> {
6667
tracing_subscriber::EnvFilter::try_from_default_env()
6768
.unwrap_or_else(|_| tracing_subscriber::EnvFilter::new(log_level)),
6869
)
70+
.with_writer(std::io::stderr)
6971
.init();
7072

7173
match cli.command {

0 commit comments

Comments
 (0)