mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-03 05:19:21 +00:00
fix(proxy): avoid leaking tool_result image URLs
This commit is contained in:
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';
|
||||
|
||||
Reference in new issue
Block a user