Web-Search: Streaming-Fix (pauseStreamBubble statt resumeStreamBubble), leere Suchergebnisse nicht speichern, Sources auf Shared-Pages anzeigen

This commit is contained in:
Meleki committed 2026-03-07 10:46:45 +01:00
1 parent d81dab635a
commit 6c38ccfe12
7 files changed
+103 -74

No files matched your search

+26 -17
View File
@@ -179,12 +179,15 @@ public class AnthropicService
}
}
}
await _db.SaveMessage(new MessageRecord
if (sources.Count > 0)
{
ChainId = chainId, Iteration = iterations,
Role = "assistant", Type = "web_search_result",
Content = JsonSerializer.Serialize(sources)
});
await _db.SaveMessage(new MessageRecord
{
ChainId = chainId, Iteration = iterations,
Role = "assistant", Type = "web_search_result",
Content = JsonSerializer.Serialize(sources)
});
}
}
}
@@ -683,14 +686,17 @@ public class AnthropicService
}
}
await _db.SaveMessage(new MessageRecord
if (sources.Count > 0)
{
ChainId = chainId,
Iteration = baseIterations + iterations,
Role = "assistant",
Type = "web_search_result",
Content = JsonSerializer.Serialize(sources)
});
await _db.SaveMessage(new MessageRecord
{
ChainId = chainId,
Iteration = baseIterations + iterations,
Role = "assistant",
Type = "web_search_result",
Content = JsonSerializer.Serialize(sources)
});
}
}
else if (blockType == "server_tool_use")
{
@@ -889,12 +895,15 @@ public class AnthropicService
}
}
}
await _db.SaveMessage(new MessageRecord
if (sources.Count > 0)
{
ChainId = ctx.ChainId, Iteration = iterations,
Role = "assistant", Type = "web_search_result",
Content = JsonSerializer.Serialize(sources)
});
await _db.SaveMessage(new MessageRecord
{
ChainId = ctx.ChainId, Iteration = iterations,
Role = "assistant", Type = "web_search_result",
Content = JsonSerializer.Serialize(sources)
});
}
}
else if (blockType == "server_tool_use")
{