Skip to content

Commit 958be34

Browse files
committed
✨ 添加校验
1 parent 334363c commit 958be34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/aiimage/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func init() {
8181
}
8282

8383
cfg := GetConfig()
84-
if cfg.APIKey == "" || cfg.APIURL == "" {
85-
ctx.SendChain(message.Text("请先配置API密钥和地址"))
84+
if cfg.APIKey == "" || cfg.APIURL == "" || cfg.ModelName == "" {
85+
ctx.SendChain(message.Text("请先配置API密钥、地址和模型"))
8686
return
8787
}
8888

0 commit comments

Comments
 (0)