bxctl: chat --speaker NAME, the speaker on every turn of the chat
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -201,7 +201,15 @@ fn run_turn_twice(
|
||||
input,
|
||||
out: &mut handle,
|
||||
};
|
||||
match stream_turn(&opts.socket, session, text, resume, &approvals, &mut io) {
|
||||
match stream_turn(
|
||||
&opts.socket,
|
||||
session,
|
||||
text,
|
||||
resume,
|
||||
opts.speaker.as_deref(),
|
||||
&approvals,
|
||||
&mut io,
|
||||
) {
|
||||
Err(e) => Err(RunError::Io(e)),
|
||||
Ok(Ok(done)) => {
|
||||
write_answer(opts, &done).map_err(RunError::Io)?;
|
||||
@@ -214,7 +222,15 @@ fn run_turn_twice(
|
||||
input,
|
||||
out: &mut handle,
|
||||
};
|
||||
match stream_turn(&opts.socket, session, text, false, &approvals, &mut io) {
|
||||
match stream_turn(
|
||||
&opts.socket,
|
||||
session,
|
||||
text,
|
||||
false,
|
||||
opts.speaker.as_deref(),
|
||||
&approvals,
|
||||
&mut io,
|
||||
) {
|
||||
Err(e) => Err(RunError::Io(e)),
|
||||
Ok(Ok(done)) => {
|
||||
write_answer(opts, &done).map_err(RunError::Io)?;
|
||||
@@ -272,6 +288,7 @@ fn run_interactive(opts: &ChatOptions, reader: &mut dyn BufRead) -> ExitCode {
|
||||
this_session,
|
||||
text,
|
||||
resume,
|
||||
opts.speaker.as_deref(),
|
||||
&approvals,
|
||||
&mut io,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user