Skip to content

Commit

Permalink
fix(openai): wrong id field in ToolCall conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
s6nqou committed Feb 23, 2025
1 parent fc98504 commit 1eff23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rig-core/src/providers/openai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ impl TryFrom<CompletionResponse> for completion::CompletionResponse<CompletionRe
.iter()
.map(|call| {
completion::AssistantContent::tool_call(
&call.function.name,
&call.id,
&call.function.name,
call.function.arguments.clone(),
)
Expand Down

0 comments on commit 1eff23e

Please sign in to comment.