mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
chore: make lint happy
This commit is contained in:
parent
72e0e796c4
commit
6c4c6a3b8b
@ -28,6 +28,7 @@ var (
|
||||
apilist = [3]string{"OpenAI", "OLLaMA", "GenAI"}
|
||||
)
|
||||
|
||||
// ModelType 支持打印 string 并生产 protocal
|
||||
type ModelType int
|
||||
|
||||
func newModelType(typ string) (ModelType, error) {
|
||||
@ -65,6 +66,7 @@ func (mt ModelType) protocol(modn string, temp float32, topp float32, maxn uint)
|
||||
return
|
||||
}
|
||||
|
||||
// ModelBool 支持打印成 "是/否"
|
||||
type ModelBool bool
|
||||
|
||||
func (mb ModelBool) String() string {
|
||||
@ -74,6 +76,7 @@ func (mb ModelBool) String() string {
|
||||
return "否"
|
||||
}
|
||||
|
||||
// ModelKey 支持隐藏密钥
|
||||
type ModelKey string
|
||||
|
||||
func (mk ModelKey) String() string {
|
||||
|
||||
@ -100,7 +100,7 @@ func newstoragebitmap(bmp int64, minv, maxv int64) func(ctx *zero.Ctx) {
|
||||
ctx.SendChain(message.Text("ERROR: ", err))
|
||||
return
|
||||
}
|
||||
stor.setbybmp(int64(r), bmp)
|
||||
stor.setbybmp(r, bmp)
|
||||
err = stor.saveto(ctx, gid)
|
||||
if err != nil {
|
||||
ctx.SendChain(message.Text("ERROR: set data err: ", err))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user