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

feat(groq): ui improvement (#16615)

Talal Jaberddf2f0c32ba1
diff --git a/bun.lock b/bun.lock
index a15a1b9749a..acfb6091b84 100644
--- a/bun.lock
+++ b/bun.lock
@@ -4263,7 +4263,7 @@
},
"packages/pieces/community/groq": {
"name": "@activepieces/piece-groq",
- "version": "0.4.2",
+ "version": "0.5.0",
"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 ff48bdd6921..3c8b93a4a3a 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.4.2",
+ "version": "0.5.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/groq/src/i18n/de.json b/packages/pieces/community/groq/src/i18n/de.json
index a0688e6d654..c185e0d161c 100644
--- a/packages/pieces/community/groq/src/i18n/de.json
+++ b/packages/pieces/community/groq/src/i18n/de.json
@@ -61,5 +61,7 @@
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "LÖSCHEN",
- "HEAD": "HEAD"
+ "HEAD": "HEAD",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Wird für das ganze Projekt gespeichert, daher setzen andere Flows mit dieser ID dasselbe Gespräch fort."
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/es.json b/packages/pieces/community/groq/src/i18n/es.json
index a608827a70f..b7e45b222ec 100644
--- a/packages/pieces/community/groq/src/i18n/es.json
+++ b/packages/pieces/community/groq/src/i18n/es.json
@@ -61,5 +61,7 @@
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "BORRAR",
- "HEAD": "LIMPIO"
+ "HEAD": "LIMPIO",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Se guarda para todo el proyecto, así que otros flujos que usen este ID se suman a la misma conversación."
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/fr.json b/packages/pieces/community/groq/src/i18n/fr.json
index 06b1119711e..2e66900577b 100644
--- a/packages/pieces/community/groq/src/i18n/fr.json
+++ b/packages/pieces/community/groq/src/i18n/fr.json
@@ -61,5 +61,7 @@
"PATCH": "PATCH",
"PUT": "EFFACER",
"DELETE": "SUPPRIMER",
- "HEAD": "TÊTE"
+ "HEAD": "TÊTE",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Enregistré pour tout le projet : les autres flux qui utilisent cet ID rejoignent la même conversation."
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/ja.json b/packages/pieces/community/groq/src/i18n/ja.json
index 5f12bffba8c..3603764178d 100644
--- a/packages/pieces/community/groq/src/i18n/ja.json
+++ b/packages/pieces/community/groq/src/i18n/ja.json
@@ -61,5 +61,7 @@
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "削除",
- "HEAD": "頭"
+ "HEAD": "頭",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "プロジェクト全体で保存されるため、このIDを使うほかのフローも同じ会話に加わります。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/nl.json b/packages/pieces/community/groq/src/i18n/nl.json
index 0d60ab56ae1..2f9fc2dceb9 100644
--- a/packages/pieces/community/groq/src/i18n/nl.json
+++ b/packages/pieces/community/groq/src/i18n/nl.json
@@ -61,5 +61,7 @@
"PATCH": "BEKIJK",
"PUT": "PUT",
"DELETE": "VERWIJDEREN",
- "HEAD": "HOOFD"
+ "HEAD": "HOOFD",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Opgeslagen voor het hele project, dus andere flows met deze ID nemen deel aan hetzelfde gesprek."
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/pt.json b/packages/pieces/community/groq/src/i18n/pt.json
index 9751018509a..cc2f0f18ac3 100644
--- a/packages/pieces/community/groq/src/i18n/pt.json
+++ b/packages/pieces/community/groq/src/i18n/pt.json
@@ -61,5 +61,7 @@
"PATCH": "COMPRAR",
"PUT": "COLOCAR",
"DELETE": "EXCLUIR",
- "HEAD": "CABEÇA"
+ "HEAD": "CABEÇA",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Salvo para todo o projeto, então outros fluxos que usam este ID entram na mesma conversa."
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/ru.json b/packages/pieces/community/groq/src/i18n/ru.json
index 834c4105229..c7f6707250b 100644
--- a/packages/pieces/community/groq/src/i18n/ru.json
+++ b/packages/pieces/community/groq/src/i18n/ru.json
@@ -86,5 +86,7 @@
"Appended to the URL as ?key=value.": "Добавляется к URL в виде ?key=value.",
"On a failed request, output the error instead of failing the step.": "При неудачном запросе возвращает ошибку вместо сбоя шага.",
"Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Сколько секунд ждать ответа. Пусто: до лимита потока (10 мин).",
- "Follow 3xx redirects instead of returning them as the response.": "Следовать перенаправлениям 3xx вместо того, чтобы возвращать их как ответ."
+ "Follow 3xx redirects instead of returning them as the response.": "Следовать перенаправлениям 3xx вместо того, чтобы возвращать их как ответ.",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Сохраняется для всего проекта, поэтому другие потоки с этим ID продолжают ту же беседу."
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/translation.json b/packages/pieces/community/groq/src/i18n/translation.json
index b389779f06e..51a70ec4c93 100644
--- a/packages/pieces/community/groq/src/i18n/translation.json
+++ b/packages/pieces/community/groq/src/i18n/translation.json
@@ -61,5 +61,7 @@
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
- "HEAD": "HEAD"
+ "HEAD": "HEAD",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Saved for the whole project, so other flows that use this ID join the same conversation."
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/i18n/zh.json b/packages/pieces/community/groq/src/i18n/zh.json
index 99fc565fa8b..28c8b9e894e 100644
--- a/packages/pieces/community/groq/src/i18n/zh.json
+++ b/packages/pieces/community/groq/src/i18n/zh.json
@@ -61,5 +61,7 @@
"PATCH": "PATCH",
"PUT": "弹出",
"DELETE": "删除",
- "HEAD": "黑色"
+ "HEAD": "黑色",
+ "Markdown": "Markdown",
+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "在整个项目中保存,因此使用此 ID 的其他流程会加入同一段对话。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/groq/src/index.ts b/packages/pieces/community/groq/src/index.ts
index f65f8c5fc28..04abc8099bb 100644
--- a/packages/pieces/community/groq/src/index.ts
+++ b/packages/pieces/community/groq/src/index.ts
@@ -61,6 +61,12 @@ export const groq = createPiece({
Authorization: `Bearer ${auth.secret_text}`,
};
},
+ props: {
+ url: {
+ description: `Full URL, or a path relative to ${baseUrl}`,
+ placeholder: '/models',
+ },
+ },
}),
],
authors: ['abuaboud'],
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 aaad53ef413..c5f872719f1 100644
--- a/packages/pieces/community/groq/src/lib/actions/ask-groq.ts
+++ b/packages/pieces/community/groq/src/lib/actions/ask-groq.ts
@@ -1,4 +1,4 @@
-import { createAction, Property, StoreScope } from '@activepieces/pieces-framework';
+import { createAction, MarkdownVariant, Property, StoreScope } from '@activepieces/pieces-framework';
import { groqAuth } from '../..';
import { httpClient, HttpMethod, AuthenticationType } from '@activepieces/pieces-common';
import { askAiActionOutputSchema } from '../output-schemas';
@@ -11,6 +11,11 @@ export const askGroq = createAction({
displayName: 'Ask AI',
description: 'Send a question or instruction to a Groq model and get a text reply.',
aiMetadata: { description: 'Sends a prompt to a Groq-hosted chat model (Whisper speech models are excluded from the model list) and returns the generated text, with optional sampling controls and a roles array for system instructions. Runs stateless by default, or shares conversation history across runs and flows when a memory key is set. This is the only text-generation action in the piece - pick the sibling Transcribe Audio or Translate Audio actions when the input is a sound file rather than text. Requires a model, a question, and a maximum token count; not idempotent: each call produces a fresh completion and, when a memory key is set, appends to the stored project-scoped history.', idempotent: false },
+ propertyGroups: [
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model', 'maxTokens'] },
+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['prompt'] },
+ { key: 'history', display: 'section', label: 'History', icon: 'inbox', props: ['memoryKey', 'memoryInfo'] },
+ ],
props: {
model: Property.Dropdown({
auth: groqAuth,
@@ -104,6 +109,7 @@ export const askGroq = createAction({
placeholder: 'e.g. support-chat-42',
required: false,
}),
+ memoryInfo: Property.MarkDown({ value: 'Saved for the whole project, so other flows that use this ID join the same conversation.', variant: MarkdownVariant.INFO }),
roles: Property.Json({
displayName: 'Roles',
required: false,
diff --git a/packages/pieces/community/groq/src/lib/actions/transcribe-audio.ts b/packages/pieces/community/groq/src/lib/actions/transcribe-audio.ts
index 8a4d39b389d..97615e7bad0 100644
--- a/packages/pieces/community/groq/src/lib/actions/transcribe-audio.ts
+++ b/packages/pieces/community/groq/src/lib/actions/transcribe-audio.ts
@@ -11,6 +11,11 @@ export const transcribeAudio = createAction({
displayName: 'Transcribe Audio',
description: 'Turn speech in an audio file into text, in the language spoken.',
aiMetadata: { description: 'Runs Groq speech-to-text (Whisper) over an uploaded audio file and returns the spoken content transcribed in its original language; a response-format prop switches between plain text, JSON, and verbose JSON with segment timings. Choose this over the sibling Translate Audio action whenever the transcript must stay in the language that was spoken, since Translate Audio always renders English. Requires an audio file (flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm) and a Whisper model, with an optional ISO-639-1 language hint that improves accuracy; not idempotent: each call re-runs the model and may return slightly different text.', idempotent: false },
+ propertyGroups: [
+ { key: 'recording', display: 'section', label: 'Recording', icon: 'paperclip', props: ['file'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },
+ { key: 'output', display: 'section', label: 'Output', icon: 'file', props: ['responseFormat'] },
+ ],
props: {
file: Property.File({
displayName: 'Audio File',
diff --git a/packages/pieces/community/groq/src/lib/actions/translate-audio.ts b/packages/pieces/community/groq/src/lib/actions/translate-audio.ts
index 89bd0a0098a..f1ac5edf359 100644
--- a/packages/pieces/community/groq/src/lib/actions/translate-audio.ts
+++ b/packages/pieces/community/groq/src/lib/actions/translate-audio.ts
@@ -11,6 +11,11 @@ export const translateAudio = createAction({
displayName: 'Translate Audio',
description: 'Turn speech in any supported language into English text.',
aiMetadata: { description: 'Runs Groq speech-to-text (Whisper) over an uploaded audio file and returns the spoken content as English text, translating from whatever language was spoken; a response-format prop switches between plain text, JSON, and verbose JSON with segment timings. Pick this only when English output is wanted - the target language cannot be changed, and the sibling Transcribe Audio action keeps the transcript in the original spoken language. Requires an audio file (flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm) and a Whisper model; not idempotent: each call re-runs the model and may return slightly different text.', idempotent: false },
+ propertyGroups: [
+ { key: 'recording', display: 'section', label: 'Recording', icon: 'paperclip', props: ['file'] },
+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },
+ { key: 'output', display: 'section', label: 'Output', icon: 'file', props: ['responseFormat'] },
+ ],
props: {
file: Property.File({
displayName: 'Audio File',