fix(proxy): avoid leaking tool_result image URLs

This commit is contained in:
seilk committed 2026-04-30 02:18:22 +09:00
1 parent f6bb31c956
commit 83c16e216a
2 files changed
+3 -3

No files matched your search

@@ -224,8 +224,8 @@ function convertToolResultContent(content: unknown, isError: boolean, label: str
? (parsed.source as Record<string, unknown>)
: undefined;
const description =
source?.type === 'url' && typeof source.url === 'string'
? source.url
source?.type === 'url'
? 'url image payload'
: source?.type === 'base64' && typeof source.media_type === 'string'
? `${source.media_type} base64 payload`
: 'unsupported image payload';