1
0
mirror of https://github.com/fumiama/go-onebot-agent.git synced 2026-06-10 21:24:21 +08:00

chore: update deps

This commit is contained in:
源文雨
2026-04-05 00:07:54 +08:00
parent bc4ca0e119
commit 921eee5b68
3 changed files with 20 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ import (
"strings"
"time"
"github.com/FloatTech/imgfactory"
"github.com/FloatTech/gg/factory"
"github.com/FloatTech/ttl"
"github.com/corona10/goimagehash"
"github.com/fumiama/deepinfra"
@@ -180,8 +180,8 @@ func (ag *Agent) SetViewImageAPI(api deepinfra.API, p model.Protocol) {
continue
}
img = imgfactory.Limit(img, 1024, 1024)
data, err = imgfactory.ToBytes(img)
img = factory.Limit(img, 1024, 1024)
data, err = factory.ToBytes(img)
if err != nil {
logrus.Debugln("[goba] SetViewImageAPI dump img err:", err)
continue