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(openai): ui improvement (#16366)
Talal Jaber90fed8ee48e5
diff --git a/bun.lock b/bun.lockindex e3c9eeb389c..6e91ac206b9 100644--- a/bun.lock+++ b/bun.lock@@ -6649,7 +6649,7 @@},"packages/pieces/community/openai": {"name": "@activepieces/piece-openai",- "version": "0.12.2",+ "version": "0.13.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/openai/package.json b/packages/pieces/community/openai/package.jsonindex 9f30255e96f..732d43b5896 100644--- a/packages/pieces/community/openai/package.json+++ b/packages/pieces/community/openai/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-openai",- "version": "0.12.2",+ "version": "0.13.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/community/openai/src/i18n/de.json b/packages/pieces/community/openai/src/i18n/de.jsonindex 3dd98eeb7b5..9bb103a82f6 100644--- a/packages/pieces/community/openai/src/i18n/de.json+++ b/packages/pieces/community/openai/src/i18n/de.json@@ -234,5 +234,6 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "LÖSCHEN",- "HEAD": "HEAD"+ "HEAD": "HEAD",+ "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 filediff --git a/packages/pieces/community/openai/src/i18n/es.json b/packages/pieces/community/openai/src/i18n/es.jsonindex bc71529c904..ec2807615f0 100644--- a/packages/pieces/community/openai/src/i18n/es.json+++ b/packages/pieces/community/openai/src/i18n/es.json@@ -234,5 +234,6 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "BORRAR",- "HEAD": "LIMPIO"+ "HEAD": "LIMPIO",+ "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 continúan la misma conversación."}\ No newline at end of filediff --git a/packages/pieces/community/openai/src/i18n/fr.json b/packages/pieces/community/openai/src/i18n/fr.jsonindex ebea3d72375..4e47fb5a795 100644--- a/packages/pieces/community/openai/src/i18n/fr.json+++ b/packages/pieces/community/openai/src/i18n/fr.json@@ -234,5 +234,6 @@"PATCH": "PATCH","PUT": "EFFACER","DELETE": "SUPPRIMER",- "HEAD": "TÊTE"+ "HEAD": "TÊTE",+ "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 poursuivent la même conversation."}\ No newline at end of filediff --git a/packages/pieces/community/openai/src/i18n/ja.json b/packages/pieces/community/openai/src/i18n/ja.jsonindex cbe63191796..6b63b74f358 100644--- a/packages/pieces/community/openai/src/i18n/ja.json+++ b/packages/pieces/community/openai/src/i18n/ja.json@@ -234,5 +234,6 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "DELETE",- "HEAD": "HEAD"+ "HEAD": "HEAD",+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "プロジェクト全体で保存されるため、この ID を使う他のフローも同じ会話を引き継ぎます。"}\ No newline at end of filediff --git a/packages/pieces/community/openai/src/i18n/nl.json b/packages/pieces/community/openai/src/i18n/nl.jsonindex 10d6b0fac31..2ddecf58b10 100644--- a/packages/pieces/community/openai/src/i18n/nl.json+++ b/packages/pieces/community/openai/src/i18n/nl.json@@ -234,5 +234,6 @@"PATCH": "BEKIJK","PUT": "PUT","DELETE": "VERWIJDEREN",- "HEAD": "HOOFD"+ "HEAD": "HOOFD",+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Wordt voor het hele project opgeslagen, dus andere flows met deze ID zetten hetzelfde gesprek voort."}\ No newline at end of filediff --git a/packages/pieces/community/openai/src/i18n/pt.json b/packages/pieces/community/openai/src/i18n/pt.jsonindex aaf0ab3c49d..968c9ed607d 100644--- a/packages/pieces/community/openai/src/i18n/pt.json+++ b/packages/pieces/community/openai/src/i18n/pt.json@@ -234,5 +234,6 @@"PATCH": "COMPRAR","PUT": "COLOCAR","DELETE": "EXCLUIR",- "HEAD": "CABEÇA"+ "HEAD": "CABEÇA",+ "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 continuam a mesma conversa."}\ No newline at end of filediff --git a/packages/pieces/community/openai/src/i18n/ru.json b/packages/pieces/community/openai/src/i18n/ru.jsonindex e58653b122b..b96485649af 100644--- a/packages/pieces/community/openai/src/i18n/ru.json+++ b/packages/pieces/community/openai/src/i18n/ru.json@@ -256,5 +256,6 @@"Opus": "Opus","AAC": "AAC","FLAC": "FLAC",- "Fine-Tuning": "Тонкая настройка"+ "Fine-Tuning": "Тонкая настройка",+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "Сохраняется для всего проекта, поэтому другие потоки с этим ID продолжают ту же беседу."}\ No newline at end of filediff --git a/packages/pieces/community/openai/src/i18n/translation.json b/packages/pieces/community/openai/src/i18n/translation.jsonindex 98de99129e3..63a2afc95b1 100644--- a/packages/pieces/community/openai/src/i18n/translation.json+++ b/packages/pieces/community/openai/src/i18n/translation.json@@ -236,5 +236,6 @@"PATCH": "PATCH","PUT": "PUT","DELETE": "DELETE",- "HEAD": "HEAD"+ "HEAD": "HEAD",+ "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 filediff --git a/packages/pieces/community/openai/src/i18n/zh.json b/packages/pieces/community/openai/src/i18n/zh.jsonindex 4bfbb355a04..1cf8e864c96 100644--- a/packages/pieces/community/openai/src/i18n/zh.json+++ b/packages/pieces/community/openai/src/i18n/zh.json@@ -234,5 +234,6 @@"PATCH": "PATCH","PUT": "弹出","DELETE": "删除",- "HEAD": "黑色"+ "HEAD": "黑色",+ "Saved for the whole project, so other flows that use this ID join the same conversation.": "历史记录在整个项目中保存,因此使用此 ID 的其他流程会延续同一段对话。"}\ No newline at end of filediff --git a/packages/pieces/community/openai/src/lib/actions/analyze-sentiment.ts b/packages/pieces/community/openai/src/lib/actions/analyze-sentiment.tsindex 45cd15229d1..2b02a419832 100644--- a/packages/pieces/community/openai/src/lib/actions/analyze-sentiment.ts+++ b/packages/pieces/community/openai/src/lib/actions/analyze-sentiment.ts@@ -14,6 +14,10 @@ export const analyzeSentiment = createAction({description:'Label text as positive, negative or neutral.',aiMetadata: { description: 'Judges the emotional tone of a block of text with a chat model at temperature 0, returning a positive, negative, or neutral label plus a confidence score and a short explanation. Pick it for tone or satisfaction scoring; classify_text is the one that checks text against OpenAI safety policies, and extract-structured-data is the one that pulls arbitrary named fields or custom labels out of prose. Requires the text and a chat model; not idempotent: each call is a fresh model completion and the label can shift between runs.', idempotent: false },+ propertyGroups: [+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },+ { key: 'content', display: 'section', label: 'Content', icon: 'text', props: ['text'] },+ ],props: {model: Property.StaticDropdown({displayName: 'Model',diff --git a/packages/pieces/community/openai/src/lib/actions/classify-text.ts b/packages/pieces/community/openai/src/lib/actions/classify-text.tsindex 3e5496df8ee..adb99e74598 100644--- a/packages/pieces/community/openai/src/lib/actions/classify-text.ts+++ b/packages/pieces/community/openai/src/lib/actions/classify-text.ts@@ -12,6 +12,10 @@ export const classifyText = createAction({description:"Check text against OpenAI's rules on hate, violence and similar harm.",aiMetadata: { description: 'Runs the OpenAI moderation endpoint over a block of text and reports whether it breaches OpenAI safety policy, returning one flagged boolean plus per-category verdicts and scores for harassment, hate, self-harm, sexual, and violence. Use it to gate or filter user-generated content; it only scores that fixed safety taxonomy, so use analyze_sentiment for tone and extract-structured-data or ask_chatgpt to sort text into custom labels. Requires the input text and a moderation model. Read-only scoring call with no stored side effect, so repeating the same input is idempotent.', idempotent: true },+ propertyGroups: [+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },+ { key: 'content', display: 'section', label: 'Content', icon: 'text', props: ['input'] },+ ],props: {model: Property.StaticDropdown({displayName: 'Model',diff --git a/packages/pieces/community/openai/src/lib/actions/create-embedding.ts b/packages/pieces/community/openai/src/lib/actions/create-embedding.tsindex 5b4cb035fb5..a7201cf7570 100644--- a/packages/pieces/community/openai/src/lib/actions/create-embedding.ts+++ b/packages/pieces/community/openai/src/lib/actions/create-embedding.ts@@ -12,6 +12,10 @@ export const createEmbedding = createAction({description:'Turn text into a vector for semantic search or clustering.',aiMetadata: { description: 'Converts one block of text into a numeric embedding vector for storage in a vector database or for semantic search, clustering, and RAG pipelines. It handles a single input per call, so batch by looping or by using the custom API call action, and the dimensions option only takes effect on the text-embedding-3 models. Pick search_embeddings instead when the goal is simply ranking a list of candidate strings against a query in one step with no vector persisted. Deterministic stateless inference, so repeat calls with the same model and text return the same vector and are idempotent.', idempotent: true },+ propertyGroups: [+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['model'] },+ { key: 'content', display: 'section', label: 'Content', icon: 'text', props: ['input'] },+ ],props: {model: Property.StaticDropdown({displayName: 'Model',diff --git a/packages/pieces/community/openai/src/lib/actions/edit-image.ts b/packages/pieces/community/openai/src/lib/actions/edit-image.tsindex 2269b317645..d6438e6c550 100644--- a/packages/pieces/community/openai/src/lib/actions/edit-image.ts+++ b/packages/pieces/community/openai/src/lib/actions/edit-image.ts@@ -14,6 +14,10 @@ export const editImage = createAction({displayName: 'Edit Image',description: 'Change an image by describing the edit.',aiMetadata: { description: 'Modifies an existing image supplied as a file, applying the changes described in a text prompt with the gpt-image-2 model, and writes the result out as a new PNG file. An optional mask image confines the edit to its transparent areas and must match the dimensions of the input image; size and quality can be left on auto. Pick generate_image instead when there is no source image to start from, and vision_prompt when the image only needs to be read rather than changed. Not idempotent: each call renders a fresh image.', idempotent: false },+ propertyGroups: [+ { key: 'edit', display: 'section', label: 'Edit', icon: 'text', props: ['image', 'prompt'] },+ { key: 'output', display: 'section', label: 'Output', icon: 'sliders', props: ['size', 'quality'] },+ ],props: {image: Property.File({displayName: 'Image',@@ -34,10 +38,10 @@ export const editImage = createAction({display: 'cards',options: {options: [- { label: 'Auto', value: 'auto' },- { label: 'Square', value: '1024x1024', description: '1024 × 1024' },- { label: 'Landscape', value: '1536x1024', description: '1536 × 1024' },- { label: 'Portrait', value: '1024x1536', description: '1024 × 1536' },+ { label: 'Auto', value: 'auto', icon: 'blank' },+ { label: 'Square', value: '1024x1024', description: '1024 × 1024', icon: 'blank' },+ { label: 'Landscape', value: '1536x1024', description: '1536 × 1024', icon: 'blank' },+ { label: 'Portrait', value: '1024x1536', description: '1024 × 1536', icon: 'blank' },],},}),diff --git a/packages/pieces/community/openai/src/lib/actions/extract-structure-data.action.ts b/packages/pieces/community/openai/src/lib/actions/extract-structure-data.action.tsindex 00d001811e7..da71a974fcb 100644--- a/packages/pieces/community/openai/src/lib/actions/extract-structure-data.action.ts+++ b/packages/pieces/community/openai/src/lib/actions/extract-structure-data.action.ts@@ -11,6 +11,10 @@ export const extractStructuredDataAction = createAction({displayName: 'Extract Structured Data',description: 'Pull the fields you define out of a block of text.',aiMetadata: { description: 'Pulls a caller-defined set of named fields out of one block of unstructured text and returns them as a flat object, with each field declared as text, number, or boolean and optionally marked to fail the step when it is absent. Use it to turn prose, emails, or documents into machine-readable values; prefer analyze_sentiment or classify_text for a judgement about the text and ask_chatgpt for free-form output. Requires the text plus at least one field definition, and the step errors when the model returns no extraction at all. Not idempotent: each call is a fresh model completion and the extracted values can vary between runs.', idempotent: false },+ propertyGroups: [+ { key: 'source', display: 'section', label: 'Source', icon: 'text', props: ['model', 'text'] },+ { key: 'output', display: 'section', label: 'Output', icon: 'tag', props: ['params'] },+ ],props: {model: Property.Dropdown({auth: openaiAuth,diff --git a/packages/pieces/community/openai/src/lib/actions/generate-image.ts b/packages/pieces/community/openai/src/lib/actions/generate-image.tsindex d1a38dfce2f..c6cb9c334ed 100644--- a/packages/pieces/community/openai/src/lib/actions/generate-image.ts+++ b/packages/pieces/community/openai/src/lib/actions/generate-image.ts@@ -14,6 +14,10 @@ export const generateImage = createAction({displayName: 'Generate Image',description: 'Create an image from a text description.',aiMetadata: { description: 'Creates a brand new image from a text prompt using an image model available to the account (gpt-image or dall-e), saving each returned image as a file and reporting its URL. Resolution and quality both default to auto. Pick edit_image instead when an existing image is the starting point, and vision_prompt when the task is reading an image rather than producing one. Requires the prompt and a model id; not idempotent: each call renders a fresh image.', idempotent: false },+ propertyGroups: [+ { key: 'request', display: 'section', label: 'Image', icon: 'text', props: ['model', 'prompt'] },+ { key: 'output', display: 'section', label: 'Output', icon: 'sliders', props: ['resolution', 'quality'] },+ ],props: {model: Property.Dropdown({auth: openaiAuth,@@ -66,10 +70,10 @@ export const generateImage = createAction({display: 'cards',options: {options: [- { label: 'Auto', value: 'auto' },- { label: 'Square', value: '1024x1024', description: '1024 × 1024' },- { label: 'Landscape', value: '1536x1024', description: '1536 × 1024' },- { label: 'Portrait', value: '1024x1536', description: '1024 × 1536' },+ { label: 'Auto', value: 'auto', icon: 'blank' },+ { label: 'Square', value: '1024x1024', description: '1024 × 1024', icon: 'blank' },+ { label: 'Landscape', value: '1536x1024', description: '1536 × 1024', icon: 'blank' },+ { label: 'Portrait', value: '1024x1536', description: '1024 × 1536', icon: 'blank' },],},}),diff --git a/packages/pieces/community/openai/src/lib/actions/list-files.ts b/packages/pieces/community/openai/src/lib/actions/list-files.tsindex 031c80c57f8..512aecfd770 100644--- a/packages/pieces/community/openai/src/lib/actions/list-files.ts+++ b/packages/pieces/community/openai/src/lib/actions/list-files.ts@@ -30,6 +30,10 @@ export const listFiles = createAction({description: 'Up to this many files, from 1 to 10,000.',required: false,defaultValue: 100,+ display: 'stepper',+ min: 1,+ max: 10000,+ step: 10,}),},outputSchema: listFilesActionOutputSchema,diff --git a/packages/pieces/community/openai/src/lib/actions/search-embeddings.ts b/packages/pieces/community/openai/src/lib/actions/search-embeddings.tsindex c45e151ed2b..a44137f023b 100644--- a/packages/pieces/community/openai/src/lib/actions/search-embeddings.ts+++ b/packages/pieces/community/openai/src/lib/actions/search-embeddings.ts@@ -12,6 +12,10 @@ export const searchEmbeddings = createAction({description:'Rank a list of texts by how closely they match a query.',aiMetadata: { description: 'Embeds a query and a list of document strings passed inline in the same call, then ranks those documents against the query by cosine similarity and returns the best match plus the scored ranking; setting Top K keeps only the leading matches, leaving it empty returns every document ranked. It is self-contained with no vector store, so the documents must be supplied on every run - use create_embedding with an external vector database when the corpus is large or must persist. Requires the query, the document list, and one embedding model used for both sides. Read-only and idempotent: the same inputs produce the same ranking.', idempotent: true },+ propertyGroups: [+ { key: 'search', display: 'section', label: 'Search', icon: 'filter', props: ['model', 'query', 'topK'] },+ { key: 'corpus', display: 'section', label: 'Search in', icon: 'file', props: ['documents'] },+ ],props: {model: Property.StaticDropdown({displayName: 'Model',diff --git a/packages/pieces/community/openai/src/lib/actions/send-prompt.ts b/packages/pieces/community/openai/src/lib/actions/send-prompt.tsindex ea06fc027a9..2eb15b25b07 100644--- a/packages/pieces/community/openai/src/lib/actions/send-prompt.ts+++ b/packages/pieces/community/openai/src/lib/actions/send-prompt.ts@@ -1,5 +1,6 @@import {createAction,+ MarkdownVariant,Property,StoreScope,} from '@activepieces/pieces-framework';@@ -22,6 +23,11 @@ export const askOpenAI = createAction({displayName: 'Ask ChatGPT',description: 'Send a question or instruction to an OpenAI model and get a reply.',aiMetadata: { description: 'Sends a prompt to an OpenAI chat model and returns the reply text, with sampling controls (temperature, top P, frequency and presence penalties) and an optional roles array that supplies the system message. Two modes: stateless by default, or, when a memory key is set, loading and re-saving the conversation history in project storage so later runs continue the same thread, trimming it as it approaches the token limit. This is the general-purpose text call of this piece; prefer ask_assistant to route through a pre-built OpenAI Assistant, vision_prompt when an image is part of the question, and extract-structured-data when the answer must come back as named fields. A model, a question, and a maximum token count are required; not idempotent: each call produces a fresh completion and, with a memory key, rewrites the stored 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: openaiAuth,@@ -81,6 +87,7 @@ export const askOpenAI = 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 }),temperature: Property.Number({displayName: 'Temperature',required: false,diff --git a/packages/pieces/community/openai/src/lib/actions/text-to-speech.ts b/packages/pieces/community/openai/src/lib/actions/text-to-speech.tsindex 7df5fe5caf2..9df9229478f 100644--- a/packages/pieces/community/openai/src/lib/actions/text-to-speech.ts+++ b/packages/pieces/community/openai/src/lib/actions/text-to-speech.ts@@ -14,6 +14,11 @@ export const textToSpeech = createAction({displayName: 'Text-to-Speech',description: 'Turn text into a spoken audio file.',aiMetadata: { description: 'Synthesizes spoken audio from text using an OpenAI TTS model and one of six prebuilt voices (alloy, echo, fable, onyx, nova, shimmer), writing the result as an mp3, opus, aac, or flac file at a playback speed between 0.25 and 4. This is the text-to-audio direction of this piece; transcribe and translate go the other way, turning audio into text. Requires the text, a TTS-capable model, a voice, and an output format. Not idempotent: each call renders a new audio file.', idempotent: false },+ propertyGroups: [+ { key: 'script', display: 'section', label: 'Script', icon: 'text', props: ['text'] },+ { key: 'speaker', display: 'section', label: 'Speaker', icon: 'user', props: ['model', 'voice'] },+ { key: 'output', display: 'section', label: 'Output', icon: 'file', props: ['format'] },+ ],props: {text: Property.LongText({displayName: 'Text',@@ -83,13 +88,14 @@ export const textToSpeech = createAction({required: true,description: 'The audio file type.',defaultValue: 'mp3',+ display: 'cards',options: {disabled: false,options: [- { label: 'MP3', value: 'mp3' },- { label: 'Opus', value: 'opus' },- { label: 'AAC', value: 'aac' },- { label: 'FLAC', value: 'flac' },+ { label: 'MP3', value: 'mp3', icon: 'file' },+ { label: 'Opus', value: 'opus', icon: 'file' },+ { label: 'AAC', value: 'aac', icon: 'file' },+ { label: 'FLAC', value: 'flac', icon: 'file' },],},}),@@ -99,6 +105,10 @@ export const textToSpeech = createAction({defaultValue: 1.0,required: false,advanced: true,+ display: 'stepper',+ min: 0.25,+ max: 4,+ step: 0.25,}),fileName: Property.ShortText({displayName: 'File Name',diff --git a/packages/pieces/community/openai/src/lib/actions/transcriptions.ts b/packages/pieces/community/openai/src/lib/actions/transcriptions.tsindex 3545b12ac57..105d4812aaf 100644--- a/packages/pieces/community/openai/src/lib/actions/transcriptions.ts+++ b/packages/pieces/community/openai/src/lib/actions/transcriptions.ts@@ -18,6 +18,10 @@ export const transcribeAction = createAction({description: 'Turn speech in an audio file into text.',aiMetadata: { description: 'Transcribes an uploaded audio file to text with the whisper-1 model, keeping the words in the language that was spoken, with an optional language hint (defaulting to English, and silently falling back to English when an unsupported code is given) that improves accuracy. Choose the sibling translate action instead whenever the output must be English no matter what language was spoken, and text_to_speech for the opposite direction. Requires an audio file; not idempotent: each call re-runs the model and the wording can vary slightly.', idempotent: false },auth: openaiAuth,+ propertyGroups: [+ { key: 'recording', display: 'section', label: 'Recording', icon: 'paperclip', props: ['audio'] },+ { key: 'spoken', display: 'section', label: 'Spoken in', icon: 'type', props: ['language'] },+ ],props: {audio: Property.File({displayName: 'Audio',diff --git a/packages/pieces/community/openai/src/lib/actions/upload-file.ts b/packages/pieces/community/openai/src/lib/actions/upload-file.tsindex ee3e8a14f58..57d6d8f33a4 100644--- a/packages/pieces/community/openai/src/lib/actions/upload-file.ts+++ b/packages/pieces/community/openai/src/lib/actions/upload-file.ts@@ -24,6 +24,10 @@ export const uploadFile = createAction({description:'Upload a file for assistants, batch jobs, vision or fine-tuning.',aiMetadata: { description: 'Uploads a file to the connected OpenAI account and returns its file id for later use with Assistants, vector stores, batch jobs, fine-tuning, or vision. The purpose is required and decides which file types are accepted; the original filename is kept unless an override including the extension is supplied. Run find_file first to avoid duplicates, and delete_file to remove one afterwards. Not idempotent: every call stores another copy under a new file id, even for identical content.', idempotent: false },+ propertyGroups: [+ { key: 'upload', display: 'section', label: 'Upload', icon: 'paperclip', props: ['file'] },+ { key: 'use', display: 'section', label: 'Use for', icon: 'tag', props: ['purpose'] },+ ],props: {file: Property.File({displayName: 'File',@@ -36,12 +40,13 @@ export const uploadFile = createAction({'What OpenAI will use the file for. Each allows different file types.',required: true,defaultValue: 'assistants',+ display: 'cards',options: {options: [- { label: 'Assistants', value: 'assistants' },- { label: 'Vision', value: 'vision' },- { label: 'Batch', value: 'batch' },- { label: 'Fine-Tuning', value: 'fine-tune' },+ { label: 'Assistants', value: 'assistants', icon: 'file' },+ { label: 'Vision', value: 'vision', icon: 'file' },+ { label: 'Batch', value: 'batch', icon: 'file' },+ { label: 'Fine-Tuning', value: 'fine-tune', icon: 'file' },],},}),diff --git a/packages/pieces/community/openai/src/lib/actions/vision-prompt.ts b/packages/pieces/community/openai/src/lib/actions/vision-prompt.tsindex 1042c9e91e7..859e057922c 100644--- a/packages/pieces/community/openai/src/lib/actions/vision-prompt.ts+++ b/packages/pieces/community/openai/src/lib/actions/vision-prompt.ts@@ -16,6 +16,10 @@ export const visionPrompt = createAction({displayName: 'Vision Prompt',description: 'Ask a question about an image and get a text reply.',aiMetadata: { description: 'Answers a question about an image by sending the uploaded picture inline with the prompt to gpt-4o, covering captioning, reading text off an image, and visual question answering. It is the only action here that accepts image input, so pick it over ask_chatgpt whenever a picture is part of the question, and generate_image or edit_image when the goal is producing an image instead. The model is fixed at gpt-4o and the image is embedded as base64 in the request, so keep it small; a detail setting trades cost against fidelity. Not idempotent: each call produces a fresh completion.', idempotent: false },+ propertyGroups: [+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['image', 'prompt'] },+ { key: 'settings', display: 'section', label: 'Settings', icon: 'sliders', props: ['maxTokens'] },+ ],props: {image: Property.File({displayName: 'Image',