mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-01-30 06:12:06 +00:00
fix image agent error
This commit is contained in:
@@ -208,7 +208,7 @@ Your response should consistently follow this rule whenever image-related analys
|
|||||||
|
|
||||||
const imageContents = req.body.messages.filter((item: any) => {
|
const imageContents = req.body.messages.filter((item: any) => {
|
||||||
return item.role === 'user' && Array.isArray(item.content) &&
|
return item.role === 'user' && Array.isArray(item.content) &&
|
||||||
item.content.some((msg: any) => msg.type === "image" || msg?.content?.some((sub: any) => sub.type === 'image'));
|
item.content.some((msg: any) => msg.type === "image" || (Array.isArray(msg.content) && msg.content.some((sub: any) => sub.type === 'image'));
|
||||||
});
|
});
|
||||||
|
|
||||||
let imgId = 1;
|
let imgId = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user