chore: make lint happy

This commit is contained in:
源文雨 2025-09-25 00:36:01 +08:00
parent 72e0e796c4
commit 6c4c6a3b8b
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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))