Merge branch 'feat/tower-completion-service' of https://github.com/0xPlaygrounds/rig into feat/tower-completion-service

This commit is contained in:
Joshua Mo 2025-04-07 16:19:40 +01:00
commit c7c19baa78
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ pub enum Message {
)]
tool_calls: Vec<ToolCall>,
},
#[serde(rename = "Tool")]
#[serde(rename = "tool")]
ToolResult {
tool_call_id: String,
content: String,

View File

@ -102,7 +102,7 @@ pub async fn stream_to_stdout<M: StreamingCompletionModel>(
.tools
.call(&name, params.to_string())
.await
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;
.map_err(|e| std::io::Error::other(e.to_string()))?;
println!("\nResult: {}", res);
}
Err(e) => {