Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

fix(groq): run Ask AI flows that use shut-down Groq models again (#17123)

sanket-a11y6c2b4136aaac
diff --git a/bun.lock b/bun.lock
index 444b65b0bb6..79eb784454a 100644
--- a/bun.lock
+++ b/bun.lock
@@ -4318,7 +4318,7 @@
},
"packages/pieces/community/groq": {
"name": "@activepieces/piece-groq",
- "version": "0.5.1",
+ "version": "0.5.2",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/groq/package.json b/packages/pieces/community/groq/package.json
index 3e7d519c682..5085e25c547 100644
--- a/packages/pieces/community/groq/package.json
+++ b/packages/pieces/community/groq/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-groq",
- "version": "0.5.1",
+ "version": "0.5.2",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/groq/src/lib/actions/ask-groq.ts b/packages/pieces/community/groq/src/lib/actions/ask-groq.ts
index c5f872719f1..46ce93bf459 100644
--- a/packages/pieces/community/groq/src/lib/actions/ask-groq.ts
+++ b/packages/pieces/community/groq/src/lib/actions/ask-groq.ts
@@ -23,7 +23,7 @@ export const askGroq = createAction({
required: true,
description: 'Speech models are left out; use the audio actions for them.',
refreshers: [],
- defaultValue: 'llama-3.1-70b-versatile',
+ defaultValue: 'openai/gpt-oss-120b',
options: async ({ auth }) => {
if (!auth) {
return {
@@ -166,7 +166,7 @@ export const askGroq = createAction({
token: auth.secret_text,
},
body: {
- model: model,
+ model: RETIRED_MODEL_REPLACEMENTS[model] ?? model,
messages: [...roles, ...messageHistory],
temperature: temperature,
top_p: topP,
@@ -217,3 +217,11 @@ export const askGroq = createAction({
return responseStructure;
},
});
+
+const RETIRED_MODEL_REPLACEMENTS: Record<string, string> = {
+ 'llama-3.1-70b-versatile': 'openai/gpt-oss-120b',
+ 'llama-3.3-70b-versatile': 'openai/gpt-oss-120b',
+ 'meta-llama/llama-4-scout-17b-16e-instruct': 'openai/gpt-oss-120b',
+ 'qwen/qwen3-32b': 'openai/gpt-oss-120b',
+ 'llama-3.1-8b-instant': 'openai/gpt-oss-20b',
+};