Fix/filter audience 6703 local (#6773)

Signed-off-by: rabi <ramishra@redhat.com>
Co-authored-by: rabi <ramishra@redhat.com>
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-01-28 15:49:52 -05:00
committed by GitHub
parent 14b3cd00e7
commit 2bc368948b
10 changed files with 40 additions and 43 deletions
+2 -4
View File
@@ -285,10 +285,8 @@ impl MessageContent {
.cloned()
.collect();
if filtered_content.is_empty() {
return None;
}
// Preserve ToolResponse even when content is empty - some providers
// (like Google) need to handle empty tool responses specially
Some(MessageContent::ToolResponse(ToolResponse {
id: res.id.clone(),
tool_result: Ok(CallToolResult {