mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Thumbnail images saved from caption
This commit is contained in:
		@@ -77,7 +77,8 @@ async function onSelectImage(e) {
 | 
			
		||||
        if (apiResult.ok) {
 | 
			
		||||
            const data = await apiResult.json();
 | 
			
		||||
            const caption = data.caption;
 | 
			
		||||
            await sendCaptionedMessage(caption, base64Img);
 | 
			
		||||
            const imageToSave = data.thumbnail ? `data:image/jpeg;base64,${data.thumbnail}` : base64Img;
 | 
			
		||||
            await sendCaptionedMessage(caption, imageToSave);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    catch (error) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user