diff --git a/Services/AnthropicService.cs b/Services/AnthropicService.cs index ae7c851..dc84d61 100644 --- a/Services/AnthropicService.cs +++ b/Services/AnthropicService.cs @@ -231,7 +231,9 @@ public partial class AnthropicService foreach (var block in content.EnumerateArray()) { var blockType = block.TryGetProperty("type", out var bt) ? bt.GetString() ?? "" : ""; - if (blockType != "image" && blockType != "file") continue; + // "document" = Frontend-Format für PDFs (chat.js sendet type:'document' für non-image files). + // "file" = Legacy-Alias für Datei-Anhänge. + if (blockType != "image" && blockType != "file" && blockType != "document") continue; var source = block.TryGetProperty("source", out var src) ? src : default; if (source.ValueKind == JsonValueKind.Undefined) continue;