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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(open-router): ui improvement (#16614)
Talal Jabere453fadd4e9a
diff --git a/bun.lock b/bun.lockindex acfb6091b84..1f4f22942ed 100644--- a/bun.lock+++ b/bun.lock@@ -6687,7 +6687,7 @@},"packages/pieces/community/open-router": {"name": "@activepieces/piece-open-router",- "version": "0.3.0",+ "version": "0.4.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/open-router/package.json b/packages/pieces/community/open-router/package.jsonindex b0e80942662..8e53b649c82 100644--- a/packages/pieces/community/open-router/package.json+++ b/packages/pieces/community/open-router/package.json@@ -1,7 +1,7 @@{"name": "@activepieces/piece-open-router",- "version": "0.3.0",+ "version": "0.4.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts",diff --git a/packages/pieces/community/open-router/src/i18n/de.json b/packages/pieces/community/open-router/src/i18n/de.jsonindex 1d95d22a30d..1be308b2b6b 100644--- a/packages/pieces/community/open-router/src/i18n/de.json+++ b/packages/pieces/community/open-router/src/i18n/de.json@@ -35,5 +35,6 @@"None": "Keine","JSON": "JSON","Form Data": "Formulardaten",- "Raw": "Rohe"+ "Raw": "Rohe",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "Vollständige URL oder ein Pfad relativ zu https://openrouter.ai/api/v1"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/i18n/es.json b/packages/pieces/community/open-router/src/i18n/es.jsonindex fc4ef74d090..9b2c37a6c73 100644--- a/packages/pieces/community/open-router/src/i18n/es.json+++ b/packages/pieces/community/open-router/src/i18n/es.json@@ -35,5 +35,6 @@"None": "Ninguna","JSON": "JSON","Form Data": "Datos de Formulario",- "Raw": "Rápido"+ "Raw": "Rápido",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "URL completa o una ruta relativa a https://openrouter.ai/api/v1"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/i18n/fr.json b/packages/pieces/community/open-router/src/i18n/fr.jsonindex 2067a2e4a3c..a933cfdfd53 100644--- a/packages/pieces/community/open-router/src/i18n/fr.json+++ b/packages/pieces/community/open-router/src/i18n/fr.json@@ -35,5 +35,6 @@"None": "Aucun","JSON": "JSON","Form Data": "Données du formulaire",- "Raw": "Brut"+ "Raw": "Brut",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "URL complète, ou chemin relatif à https://openrouter.ai/api/v1"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/i18n/ja.json b/packages/pieces/community/open-router/src/i18n/ja.jsonindex d443f1f85ae..6293567ad02 100644--- a/packages/pieces/community/open-router/src/i18n/ja.json+++ b/packages/pieces/community/open-router/src/i18n/ja.json@@ -35,5 +35,6 @@"None": "なし","JSON": "JSON","Form Data": "フォームデータ",- "Raw": "Raw"+ "Raw": "Raw",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "完全な URL、または https://openrouter.ai/api/v1 からの相対パス"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/i18n/nl.json b/packages/pieces/community/open-router/src/i18n/nl.jsonindex fa57bc88118..1142652fae8 100644--- a/packages/pieces/community/open-router/src/i18n/nl.json+++ b/packages/pieces/community/open-router/src/i18n/nl.json@@ -35,5 +35,6 @@"None": "geen","JSON": "JSON","Form Data": "Formulieren gegevens",- "Raw": "Onbewerkte"+ "Raw": "Onbewerkte",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "Volledige URL, of een pad relatief aan https://openrouter.ai/api/v1"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/i18n/pt.json b/packages/pieces/community/open-router/src/i18n/pt.jsonindex e5a9d5c09d6..aa169452a7d 100644--- a/packages/pieces/community/open-router/src/i18n/pt.json+++ b/packages/pieces/community/open-router/src/i18n/pt.json@@ -35,5 +35,6 @@"None": "Nenhuma","JSON": "JSON","Form Data": "Dados de Formulário",- "Raw": "RAW"+ "Raw": "RAW",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "URL completa ou um caminho relativo a https://openrouter.ai/api/v1"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/i18n/ru.json b/packages/pieces/community/open-router/src/i18n/ru.jsonindex 1d738037f5a..386176a36cc 100644--- a/packages/pieces/community/open-router/src/i18n/ru.json+++ b/packages/pieces/community/open-router/src/i18n/ru.json@@ -28,5 +28,6 @@"PATCH": "ПАТЧ","PUT": "ПОКУПИТЬ","DELETE": "УДАЛИТЬ",- "HEAD": "HEAD"+ "HEAD": "HEAD",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "Полный URL или путь относительно https://openrouter.ai/api/v1"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/i18n/zh.json b/packages/pieces/community/open-router/src/i18n/zh.jsonindex cc2d81391d4..9a58ae68ec8 100644--- a/packages/pieces/community/open-router/src/i18n/zh.json+++ b/packages/pieces/community/open-router/src/i18n/zh.json@@ -35,5 +35,6 @@"None": "无","JSON": "JSON","Form Data": "表单数据",- "Raw": "原始文件"+ "Raw": "原始文件",+ "Full URL, or a path relative to https://openrouter.ai/api/v1": "完整 URL,或相对于 https://openrouter.ai/api/v1 的路径"}\ No newline at end of filediff --git a/packages/pieces/community/open-router/src/index.ts b/packages/pieces/community/open-router/src/index.tsindex 9f552a4e95b..1f8d6ae6fb4 100644--- a/packages/pieces/community/open-router/src/index.ts+++ b/packages/pieces/community/open-router/src/index.ts@@ -36,6 +36,12 @@ export const openRouter = createPiece({authMapping: async (auth) => ({Authorization: `Bearer ${auth.secret_text}`,}),+ props: {+ url: {+ description: 'Full URL, or a path relative to https://openrouter.ai/api/v1',+ placeholder: '/models',+ },+ },}),],triggers: [],diff --git a/packages/pieces/community/open-router/src/lib/actions/ask-open-router.ts b/packages/pieces/community/open-router/src/lib/actions/ask-open-router.tsindex 1dc846b24e5..1ab26f502c0 100644--- a/packages/pieces/community/open-router/src/lib/actions/ask-open-router.ts+++ b/packages/pieces/community/open-router/src/lib/actions/ask-open-router.ts@@ -22,6 +22,10 @@ export const askOpenRouterAction = createAction({description: 'Send a prompt to any model on OpenRouter and get the reply.',aiMetadata: { description: 'Sends a single prompt to any model in the OpenRouter catalog through one unified completions endpoint and returns the generated text, with optional temperature, top-p, and max-token controls. It is the only first-class action in the piece and is single-turn - no conversation memory, no system-role array, and no image or audio input - so use the sibling Custom API Call for any other OpenRouter endpoint, and prefer a vendor-specific piece such as OpenAI, Anthropic, or Groq when the model must come from one provider. Requires a model id from the OpenRouter model list and a prompt; not idempotent: each call bills a fresh generation and may return different text for the same input.', idempotent: false },auth: openRouterAuth,+ propertyGroups: [+ { key: 'ai_model', display: 'section', label: 'AI Model', icon: 'sliders', props: ['model'] },+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['prompt'] },+ ],props: {model: Property.Dropdown({auth: openRouterAuth,