Skip to content

fix(ai): move the schedule proxy from GitHub Models to Groq - #1

Merged
ravi-arnan merged 1 commit into
mainfrom
fix/ai-upstream-groq
Aug 18, 2026
Merged

ravi-arnan merged 1 commit into
mainfrom
fix/ai-upstream-groq

Conversation

@ravi-arnan

Copy link
Copy Markdown
Owner

One commit. The AI scheduling proxy pointed at GitHub Models, which needs a PAT with models:read. It now runs on Groq.

Includes worker/verify-upstream.sh so the upstream can be probed without deploying, plus the wrangler config, README, and docs updated to match.

Verified: npm run build in web/ passes (tsc -b + vite build). Fast-forward onto main, no conflicts.

Note: the worker still needs GROQ_API_KEY set as a Wrangler secret before the deployed AI feature works.

GitHub Models is fully retired on 2026-07-30, so AI Jadwal would have gone
quiet on its own. Worker upstream becomes Groq, model is pinned to
openai/gpt-oss-120b, and the secret becomes GROQ_API_KEY. The Firebase ID token
check, the CORS allowlist and the server-side model pin are unchanged, since
Groq is OpenAI-compatible.

Model choice was tested, not assumed: llama-3.3-70b-versatile and
qwen/qwen3.6-27b both reject response_format json_schema outright. Of the two
that accept it, 120b resolved a relative date correctly where 20b returned a
Saturday.

Reminder offsets are strings with an enum now, and that is deliberate. Groq's
constrained decoder drops the separator between elements of an unconstrained
integer array, so asking for two reminders returned [144060] instead of
[1440, 60], which normalizeEvent then snapped to a single 1440 and the second
reminder disappeared without a trace. Correct on every run with an enum of
strings, and correct with no response_format at all, so the fault is the
decoder rather than the model.

Adds worker/verify-upstream.sh, which hits Groq directly and asserts the schema
is accepted, the relative date is right and the reminders are not concatenated.

Also banners docs/PLAN.md and docs/DEPLOY.md, which still describe the
Next.js on Vercel with Turso architecture that was abandoned.
@ravi-arnan
ravi-arnan merged commit 79a6e2a into main Aug 18, 2026
1 check passed
@ravi-arnan
ravi-arnan deleted the fix/ai-upstream-groq branch August 18, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant