Skip to content

Commit 0b00e34

Browse files
committed
feat: call tts for call_mcp_message
1 parent 8519509 commit 0b00e34

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/services/ws/stable/llm.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,13 @@ pub async fn chat(
208208
log::info!("tool {} call message: {}", &function.function.name, message);
209209
if !message.is_empty() {
210210
let (tts_resp_tx, tts_resp_rx) = tokio::sync::mpsc::unbounded_channel();
211-
drop(tts_resp_tx);
211+
212+
tts_tx
213+
.send((message.to_string(), tts_resp_tx))
214+
.await
215+
.map_err(|e| {
216+
anyhow::anyhow!("error sending tts request for llm chunk: {e}")
217+
})?;
212218

213219
chunks_tx.send((message, tts_resp_rx)).map_err(|e| {
214220
anyhow::anyhow!(

0 commit comments

Comments
 (0)