From 4acceb540231b72ff086bfcaf51326a7443a92d6 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 00:20:45 +0000 Subject: [PATCH] fix: migrate away from deprecated AI model Updates Cloudflare Worker AI models from the deprecated `@cf/meta/llama-3.3-70b-instruct-fp8-fast` to the supported alternative `@cf/meta/llama-4-scout-17b-16e-instruct` in both `riskAssessment.ts` and `weeklySummary.ts`. Also bumps the project version by one patch version to `1.16.9` in package files. Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com> --- package-lock.json | 4 ++-- package.json | 2 +- worker/src/riskAssessment.ts | 2 +- worker/src/weeklySummary.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc5c3e2..1156788 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mentell", - "version": "1.16.8", + "version": "1.16.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mentell", - "version": "1.16.2", + "version": "1.16.9", "dependencies": { "@xenova/transformers": "^2.17.2", "date-fns": "^4.2.1", diff --git a/package.json b/package.json index 2277e65..077fa95 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mentell", "private": true, - "version": "1.16.8", + "version": "1.16.9", "type": "module", "scripts": { "sync:assets": "node scripts/sync-assets.mjs", diff --git a/worker/src/riskAssessment.ts b/worker/src/riskAssessment.ts index e19d934..eaec59d 100644 --- a/worker/src/riskAssessment.ts +++ b/worker/src/riskAssessment.ts @@ -34,7 +34,7 @@ type RequestBody = { } const GUARD_MODEL = '@cf/meta/llama-guard-3-8b' -const RESPONSE_MODEL = '@cf/meta/llama-3.3-70b-instruct-fp8-fast' +const RESPONSE_MODEL = '@cf/meta/llama-4-scout-17b-16e-instruct' const SENTIMENT_MODEL = '@cf/huggingface/distilbert-sst-2-int8' const POSITIVE_ENCOURAGEMENT_THRESHOLD = -0.85 const POSITIVE_EXCE_THRESHOLD = 4 diff --git a/worker/src/weeklySummary.ts b/worker/src/weeklySummary.ts index dddb8ad..8c608d0 100644 --- a/worker/src/weeklySummary.ts +++ b/worker/src/weeklySummary.ts @@ -20,7 +20,7 @@ type RequestBody = { const HOUR_LIMIT = 24 const DAY_LIMIT = 80 -const MODEL = '@cf/meta/llama-3.3-70b-instruct-fp8-fast' +const MODEL = '@cf/meta/llama-4-scout-17b-16e-instruct' export async function handleWeeklySummary(request: Request, env: Env): Promise { const origin = request.headers.get('Origin')