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:
6
agent.go
6
agent.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user