mirror of https://github.com/0xplaygrounds/rig
Merge branch 'feat/tower-completion-service' of https://github.com/0xPlaygrounds/rig into feat/tower-completion-service
This commit is contained in:
commit
c7c19baa78
|
@ -151,7 +151,7 @@ pub enum Message {
|
|||
)]
|
||||
tool_calls: Vec<ToolCall>,
|
||||
},
|
||||
#[serde(rename = "Tool")]
|
||||
#[serde(rename = "tool")]
|
||||
ToolResult {
|
||||
tool_call_id: String,
|
||||
content: String,
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue