fix: improve image not supported error detection for DeepSeek

This commit is contained in:
Dayuan Jiang
2025-12-31 00:08:58 +09:00
parent aaa2938dac
commit 834359cff3

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."
} }