chore: remove default AI model from config file

This commit is contained in:
eoao
2026-05-10 00:29:33 +08:00
parent 6189a91000
commit ac2c17e31c
4 changed files with 6 additions and 6 deletions

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}`);

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}" #管理员的邮箱 示例: admin@example.com

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 = "admin@example.com" #管理员的邮箱 示例: admin@example.com

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 = "" #管理员的邮箱 示例: admin@example.com