mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
fix: improve image not supported error detection for DeepSeek (#468)
This commit is contained in:
@@ -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."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user