fix: update AI extract default model

* fix: update AI extract default model

* fix: update e2e worker node version

* fix: use node lts for e2e worker

* fix: align AI model and CI node version
This commit is contained in:
Dream Hunter
2026-05-10 01:18:23 +08:00
committed by GitHub
parent dd294037ab
commit 437db7c050
13 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ async function extractWithCloudflareAI(
env: Bindings
): Promise<ExtractResult> {
// Get the AI model name from environment variable or use default
const modelName = env.AI_EXTRACT_MODEL || '@cf/meta/llama-3.1-8b-instruct';
const modelName = env.AI_EXTRACT_MODEL || '@cf/meta/llama-3.1-8b-instruct-fast';
const result = await env.AI.run(modelName as keyof AiModels, {
messages: [
+4 -2
View File
@@ -137,8 +137,10 @@ ENABLE_AUTO_REPLY = false
# ENABLE_MAIL_GZIP = true
# AI email extraction, automatically extract verification codes, auth links, etc.
# ENABLE_AI_EMAIL_EXTRACT = true
# AI model name, choose from https://developers.cloudflare.com/workers-ai/models/#text-generation
# AI_EXTRACT_MODEL = "@cf/meta/llama-3.1-8b-instruct"
# AI model name, choose from https://developers.cloudflare.com/workers-ai/features/json-mode/#supported-models
# Recommended JSON Mode model: "@cf/meta/llama-3.1-8b-instruct-fast"
# Note: "@cf/meta/llama-3.1-8b-instruct" will be deprecated by Cloudflare on 2026-05-30
# AI_EXTRACT_MODEL = "@cf/meta/llama-3.1-8b-instruct-fast"
# Calling other woker to process email
# ENABLE_ANOTHER_WORKER = false
# ANOTHER_WORKER_LIST = """