Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/groq-upgrade-migration

@0d57af8
Run it yourself

Upgrade groq-sdk versions and handle Groq model deprecations. Use when upgrading SDK versions, detecting deprecated models, or migrating to new Groq model IDs. Trigger with phrases like "upgrade groq", "groq migration", "groq breaking changes", "update groq SDK", "groq deprecated model".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/groq-upgrade-migration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexamples.md

≈517 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Groq Upgrade & Migration — Worked Examples

Concrete before/after scenarios showing what the migration does to real code.

Example 1: Replace a decommissioned chat model

A service still calling mixtral-8x7b-32768 returns 400 model_decommissioned after Groq's 2025-03-05 deprecation.

Before:

const res = await groq.chat.completions.create({
  model: "mixtral-8x7b-32768",
  messages: [{ role: "user", content: prompt }],
});

After (per the migration map — mixtral-8x7b-32768 → llama-3.3-70b-versatile):

const res = await groq.chat.completions.create({
  model: "llama-3.3-70b-versatile",
  messages: [{ role: "user", content: prompt }],
});

Example 2: Route every call through the resolver

Instead of hand-editing each call site, wrap the model ID with resolveModel (defined in implementation.md Step 3) so deprecated IDs are rewritten at runtime and logged:

const res = await groq.chat.completions.create({
  model: resolveModel(config.groqModel), // logs + swaps if deprecated
  messages,
});

Console output on a deprecated ID:

Model gemma2-9b-it is deprecated. Using llama-3.1-8b-instant instead.

Example 3: Migrate a transcription model

distil-whisper-large-v3-en was retired in favor of the faster turbo variant.

Before:

const t = await groq.audio.transcriptions.create({
  model: "distil-whisper-large-v3-en",
  file: fs.createReadStream("call.mp3"),
});

After:

const t = await groq.audio.transcriptions.create({
  model: "whisper-large-v3-turbo",
  file: fs.createReadStream("call.mp3"),
});

Example 4: Full scanner run on a clean repo

Running Step 4's scanner (see implementation.md) on a repo that is already migrated:

=== Deprecated Model IDs ===
None found

=== Old Import Patterns ===
None found (correct import is 'groq-sdk')

=== Deprecated Method Calls ===
None found

A non-empty result under any heading is a call site to fix before the SDK bump ships.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a standard and safe workflow for upgrading the Groq SDK and migrating deprecated model IDs. It follows security best practices by recommending environment variables for API key management and uses official Groq API endpoints. While the skill interacts with the local codebase and environment, its actions are consistent with its primary purpose as an upgrade utility.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.11.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "groq",
  "api",
  "migration"
]
All 5 allowed tools
ReadWriteEditBash(npm:*)Bash(git:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/groq-upgrade-migration