mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-12 02:01:42 +08:00
@@ -118,6 +118,11 @@ export const loadRequestMessages = async ({
|
||||
return item.image_url.url;
|
||||
})();
|
||||
|
||||
// base64 image
|
||||
if (imgUrl.startsWith('data:image/')) {
|
||||
return item;
|
||||
}
|
||||
|
||||
try {
|
||||
// If imgUrl is a local path, load image from local, and set url to base64
|
||||
if (imgUrl.startsWith('/')) {
|
||||
|
||||
Reference in New Issue
Block a user