chore: remove default AI model from config file

This commit is contained in:
aslost
2026-05-10 00:29:33 +08:00
parent f2ef215c52
commit 79450920fb
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -36,9 +36,9 @@ const dbInit = {
async v3_0DB(c) {
try {
await c.env.db.batch([
await c.env.db.prepare(`ALTER TABLE email ADD COLUMN code TEXT NOT NULL DEFAULT '';`).run(),
await c.env.db.prepare(`ALTER TABLE setting ADD COLUMN ai_code INTEGER NOT NULL DEFAULT 1;`).run(),
await c.env.db.prepare(`ALTER TABLE setting ADD COLUMN ai_code_filter TEXT NOT NULL DEFAULT '';`).run()
await c.env.db.prepare(`ALTER TABLE email ADD COLUMN code TEXT NOT NULL DEFAULT '';`),
await c.env.db.prepare(`ALTER TABLE setting ADD COLUMN ai_code INTEGER NOT NULL DEFAULT 1;`),
await c.env.db.prepare(`ALTER TABLE setting ADD COLUMN ai_code_filter TEXT NOT NULL DEFAULT '';`)
]);
} catch (e) {
console.warn(`跳过字段:${e.message}`);
+1 -1
View File
@@ -36,7 +36,7 @@ crons = ["0 16 * * *"] #定时任务每天晚上12点执行
[vars]
ai_model = "@cf/meta/llama-3.1-8b-instruct"
ai_model = ""
#orm_log = false
domain = "${DOMAIN}" #邮件域名可可配置多个 示例: ["example1.com","example2.com"]
admin = "${ADMIN}" #管理员的邮箱 示例: [email protected]
+1 -1
View File
@@ -34,7 +34,7 @@ crons = ["0 16 * * *"] #定时任务每天晚上12点执行
[vars]
ai_model = "@cf/meta/llama-3.1-8b-instruct"
ai_model = ""
orm_log = false
domain = ["example.com"] #邮件域名可可配置多个 示例: ["example1.com","example2.com"]
admin = "[email protected]" #管理员的邮箱 示例: [email protected]
+1 -1
View File
@@ -33,7 +33,7 @@ crons = ["0 16 * * *"] #定时任务每天晚上12点执行
[vars]
ai_model = "@cf/meta/llama-3.1-8b-instruct"
ai_model = ""
#orm_log = false
#domain = [] #邮件域名可可配置多个 示例: ["example1.com","example2.com"]
#admin = "" #管理员的邮箱 示例: [email protected]