mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-04 23:17:34 +08:00
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:
@@ -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: [
|
||||
|
||||
@@ -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 = """
|
||||
|
||||
Reference in New Issue
Block a user