agent2: Remove model param from Thread::send method (#35936)
It instead uses the currently selected model Release Notes: - N/A
This commit is contained in:
parent
ce39644cbd
commit
5901aec40a
3 changed files with 16 additions and 22 deletions
|
@ -491,8 +491,7 @@ impl acp_thread::AgentConnection for NativeAgentConnection {
|
|||
|
||||
// Send to thread
|
||||
log::info!("Sending message to thread with model: {:?}", model.name());
|
||||
let mut response_stream =
|
||||
thread.update(cx, |thread, cx| thread.send(model, message, cx))?;
|
||||
let mut response_stream = thread.update(cx, |thread, cx| thread.send(message, cx))?;
|
||||
|
||||
// Handle response stream and forward to session.acp_thread
|
||||
while let Some(result) = response_stream.next().await {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue