fix: improve image not supported error detection for DeepSeek (#468)

This commit is contained in:
Dayuan Jiang
2025-12-31 00:12:19 +09:00
committed by GitHub
parent aaa2938dac
commit 69f9df1792

View File

@@ -335,7 +335,10 @@ export default function ChatPanel({
} }
// Translate image not supported error // Translate image not supported error
if (friendlyMessage.includes("image content block")) { if (
friendlyMessage.includes("image content block") ||
friendlyMessage.toLowerCase().includes("image_url")
) {
friendlyMessage = "This model doesn't support image input." friendlyMessage = "This model doesn't support image input."
} }