fix: load jpeg image

This commit is contained in:
lilong.129
2025-03-20 20:39:32 +08:00
parent da0bdc4fe5
commit 868acd45ac
4 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
v5.0.0-beta-2503201802 v5.0.0-beta-2503202039
+1
View File
@@ -8,6 +8,7 @@ import (
"image" "image"
"image/color" "image/color"
"image/draw" "image/draw"
_ "image/jpeg"
"image/png" "image/png"
"math" "math"
"os" "os"
+1 -1
View File
@@ -12,7 +12,7 @@ import (
) )
func TestVLMPlanning(t *testing.T) { func TestVLMPlanning(t *testing.T) {
imageBase64, size, err := loadImage("testdata/llk_1.png") imageBase64, size, err := loadImage("testdata/llk_3.png")
require.NoError(t, err) require.NoError(t, err)
userInstruction := `连连看是一款经典的益智消除类小游戏,通常以图案或图标为主要元素。以下是连连看的基本规则说明: userInstruction := `连连看是一款经典的益智消除类小游戏,通常以图案或图标为主要元素。以下是连连看的基本规则说明:

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB