Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "openai-analyze-image-content",
name: "Analyze Image Content",
description: "Send a message or question about an image and receive a response. [See the documentation](https://platform.openai.com/docs/api-reference/runs/createThreadAndRun)",
version: "0.1.5",
version: "0.1.6",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/cancel-run/cancel-run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-cancel-run",
name: "Cancel Run (Assistants)",
description: "Cancels a run that is in progress. [See the documentation](https://platform.openai.com/docs/api-reference/runs/cancelRun)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
export default {
...common,
name: "Chat using File Search",
version: "0.0.3",
version: "0.0.4",
key: "openai-chat-using-file-search",
description: "Chat with your files knowledge base (vector stores). [See the documentation](https://platform.openai.com/docs/guides/tools-file-search)",
type: "action",
props: {
openai,
alert: {

Check warning on line 14 in components/openai/actions/chat-using-file-search/chat-using-file-search.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 14 in components/openai/actions/chat-using-file-search/chat-using-file-search.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "To use this action, you need to have set up a knowledge base in a vector store and uploaded files to it. [More infomation here](https://platform.openai.com/docs/guides/tools-file-search?lang=javascript#overview).",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
export default {
...common,
name: "Chat using Functions",
version: "0.0.4",
version: "0.0.5",
key: "openai-chat-using-functions",
description: "Chat with your models and allow them to invoke functions. Optionally, you can build and invoke workflows as functions. [See the documentation](https://platform.openai.com/docs/guides/function-calling)",
type: "action",
props: {
openai,
alert: {

Check warning on line 14 in components/openai/actions/chat-using-functions/chat-using-functions.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 14 in components/openai/actions/chat-using-functions/chat-using-functions.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "Provide function names and parameters, and the model will either answer the question directly or decide to invoke one of the functions, returning a function call that adheres to your specified schema. Add a custom code step that includes all available functions which can be invoked based on the model's response - [you can even build an entire workflow as a function](https://pipedream.com/docs/workflows/building-workflows/code/nodejs/#invoke-another-workflow)! Once the appropriate function or workflow is executed, continue the overall execution or pass the result back to the model for further analysis. For more details, [see this guide](https://platform.openai.com/docs/guides/function-calling?api-mode=responses#overview) and this [walkthrough](https://pipedream.com/blog/introducing-enhanced-openai-chat-actions-for-pipedream/#using-pipedream-workflows-as-functions).",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import constants from "../../common/constants.mjs";
export default {
...common,
name: "Chat using Web Search",
version: "0.0.3",
version: "0.0.4",
key: "openai-chat-using-web-search",
description: "Chat using the web search tool. [See the documentation](https://platform.openai.com/docs/guides/tools-web-search)",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
key: "openai-chat-with-assistant",
name: "Chat with Assistant",
description: "Sends a message and generates a response, storing the message history for a continuous conversation. [See the documentation](https://platform.openai.com/docs/api-reference/runs/createThreadAndRun)",
version: "0.0.10",
version: "0.0.11",
type: "action",
props: {
openai,
alert: {

Check warning on line 13 in components/openai/actions/chat-with-assistant/chat-with-assistant.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 13 in components/openai/actions/chat-with-assistant/chat-with-assistant.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "Looking to chat with your tools? Check out our individual actions: [Chat using Web Search](https://pipedream.com/apps/openai/actions/chat-using-web-search), [Chat using File Search](https://pipedream.com/apps/openai/actions/chat-using-file-search), and [Chat using Functions](https://pipedream.com/apps/openai/actions/chat-using-functions).",
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/chat/chat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
export default {
...common,
name: "Chat",
version: "0.2.7",
version: "0.2.8",
key: "openai-chat",
description: "The Chat API, using the `gpt-3.5-turbo` or `gpt-4` model. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
type: "action",
props: {
openai,
alert: {

Check warning on line 15 in components/openai/actions/chat/chat.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 15 in components/openai/actions/chat/chat.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alert must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: "Looking to chat with your tools? Check out our individual actions: [Chat using Web Search](https://pipedream.com/apps/openai/actions/chat-using-web-search), [Chat using File Search](https://pipedream.com/apps/openai/actions/chat-using-file-search), and [Chat using Functions](https://pipedream.com/apps/openai/actions/chat-using-functions).",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
export default {
...common,
name: "Classify Items into Categories",
version: "0.1.5",
version: "0.1.6",
key: "openai-classify-items-into-categories",
description: "Classify items into specific categories using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
type: "action",
props: {
...common.props,
info: {

Check warning on line 12 in components/openai/actions/classify-items-into-categories/classify-items-into-categories.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a label. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 12 in components/openai/actions/classify-items-into-categories/classify-items-into-categories.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop info must have a description. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "info",
content: `Provide a list of **items** and a list of **categories**. The output will contain an array of objects, each with properties \`item\` and \`category\`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "openai-convert-text-to-speech",
name: "Convert Text to Speech (TTS)",
description: "Generates audio from the input text. [See the documentation](https://platform.openai.com/docs/api-reference/audio/createSpeech)",
version: "0.0.13",
version: "0.0.14",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "openai-create-assistant",
name: "Create Assistant",
description: "Creates an assistant with a model and instructions. [See the documentation](https://platform.openai.com/docs/api-reference/assistants/createAssistant)",
version: "0.1.12",
version: "0.1.13",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/create-batch/create-batch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
key: "openai-create-batch",
name: "Create Batch",
description: "Creates and executes a batch from an uploaded file of requests. [See the documentation](https://platform.openai.com/docs/api-reference/batch/create)",
version: "0.0.8",
version: "0.0.9",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import common from "../common/common.mjs";

export default {
name: "Create Embeddings",
version: "0.0.17",
version: "0.0.18",
key: "openai-create-embeddings",
description: "Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. [See the documentation](https://platform.openai.com/docs/api-reference/embeddings)",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-create-fine-tuning-job",
name: "Create Fine Tuning Job",
description: "Creates a job that fine-tunes a specified model from a given dataset. [See the documentation](https://platform.openai.com/docs/api-reference/fine-tuning/create)",
version: "0.0.13",
version: "0.0.14",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/create-image/create-image.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from "fs";

export default {
name: "Create Image (Dall-E)",
version: "0.1.21",
version: "0.1.22",
key: "openai-create-image",
description: "Creates an image given a prompt returning a URL to the image. [See the documentation](https://platform.openai.com/docs/api-reference/images)",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "openai-create-moderation",
name: "Create Moderation",
description: "Classifies if text is potentially harmful. [See the documentation](https://platform.openai.com/docs/api-reference/moderations/create)",
version: "0.0.8",
version: "0.0.9",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/create-thread/create-thread.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "openai-create-thread",
name: "Create Thread (Assistants)",
description: "Creates a thread with optional messages and metadata, and optionally runs the thread using the specified assistant. [See the documentation](https://platform.openai.com/docs/api-reference/threads/createThread)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-create-vector-store-file",
name: "Create Vector Store File",
description: "Create a vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/createFile)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-create-vector-store",
name: "Create Vector Store",
description: "Create a vector store. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/create)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/delete-file/delete-file.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-delete-file",
name: "Delete File",
description: "Deletes a specified file from OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/files/delete)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-delete-vector-store-file",
name: "Delete Vector Store File",
description: "Deletes a vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/deleteFile)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-delete-vector-store",
name: "Delete Vector Store",
description: "Delete a vector store. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/delete)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/list-files/list-files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-list-files",
name: "List Files",
description: "Returns a list of files that belong to the user's organization. [See the documentation](https://platform.openai.com/docs/api-reference/files/list)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/list-messages/list-messages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-list-messages",
name: "List Messages (Assistants)",
description: "Lists the messages for a given thread. [See the documentation](https://platform.openai.com/docs/api-reference/messages/listMessages)",
version: "0.0.15",
version: "0.0.16",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-list-run-steps",
name: "List Run Steps (Assistants)",
description: "Returns a list of run steps belonging to a run. [See the documentation](https://platform.openai.com/docs/api-reference/runs/list-run-steps)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/list-runs/list-runs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-list-runs",
name: "List Runs (Assistants)",
description: "Returns a list of runs belonging to a thread. [See the documentation](https://platform.openai.com/docs/api-reference/runs/list)",
version: "0.0.15",
version: "0.0.16",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-list-vector-store-files",
name: "List Vector Store Files",
description: "Returns a list of vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/listFiles)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-list-vector-stores",
name: "List Vector Stores",
description: "Returns a list of vector stores. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/list)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "openai-modify-assistant",
name: "Modify an Assistant",
description: "Modifies an existing OpenAI assistant. [See the documentation](https://platform.openai.com/docs/api-reference/assistants/modifyAssistant)",
version: "0.1.12",
version: "0.1.13",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "openai-retrieve-file-content",
name: "Retrieve File Content",
description: "Retrieves the contents of the specified file. [See the documentation](https://platform.openai.com/docs/api-reference/files/retrieve-content)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/retrieve-file/retrieve-file.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-retrieve-file",
name: "Retrieve File",
description: "Retrieves a specific file from OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/files/retrieve)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-retrieve-run-step",
name: "Retrieve Run Step (Assistants)",
description: "Retrieve a specific run step in a thread. [See the documentation](https://platform.openai.com/docs/api-reference/runs/getRunStep)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/retrieve-run/retrieve-run.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-retrieve-run",
name: "Retrieve Run (Assistants)",
description: "Retrieves a specific run within a thread. [See the documentation](https://platform.openai.com/docs/api-reference/runs/getRun)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-retrieve-vector-store-file",
name: "Retrieve Vector Store File",
description: "Retrieve a vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/getFile)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "openai-retrieve-vector-store",
name: "Retrieve Vector Store",
description: "Retrieve a vector store. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/retrieve)",
version: "0.0.4",
version: "0.0.5",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/send-prompt/send-prompt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import common from "../common/common.mjs";
export default {
...common,
name: "Create Completion (Send Prompt)",
version: "0.1.16",
version: "0.1.17",
key: "openai-send-prompt",
description: "OpenAI recommends using the **Chat** action for the latest `gpt-3.5-turbo` API, since it's faster and 10x cheaper. This action creates a completion for the provided prompt and parameters using the older `/completions` API. [See the documentation](https://beta.openai.com/docs/api-reference/completions/create)",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "openai-submit-tool-outputs-to-run",
name: "Submit Tool Outputs to Run (Assistants)",
description: "Submits tool outputs to a run that requires action. [See the documentation](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs)",
version: "0.0.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/summarize/summarize.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import constants from "../../common/constants.mjs";
export default {
...common,
name: "Summarize Text",
version: "0.1.5",
version: "0.1.6",
key: "openai-summarize",
description: "Summarizes text using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
type: "action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const langOptions = lang.LANGUAGES.map((l) => ({
export default {
...common,
name: "Translate Text (Whisper)",
version: "0.1.5",
version: "0.1.6",
key: "openai-translate-text",
description: "Translate text from one language to another using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
type: "action",
Expand Down
2 changes: 1 addition & 1 deletion components/openai/actions/upload-file/upload-file.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "openai-upload-file",
name: "Upload File",
description: "Upload a file that can be used across various endpoints/features. The size of individual files can be a maximum of 512mb. [See the documentation](https://platform.openai.com/docs/api-reference/files/create)",
version: "0.0.17",
version: "0.0.18",
type: "action",
props: {
openai,
Expand Down
8 changes: 8 additions & 0 deletions components/openai/common/constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ const FINE_TUNING_MODEL_OPTIONS = [
label: "gpt-4-0613 (experimental — eligible users will be presented with an option to request access in the fine-tuning UI)",
value: "gpt-4-0613",
},
{
label: "gpt-4.1-mini-2025-04-14",
value: "gpt-4.1-mini-2025-04-14",
},
{
label: "gpt-4.1-2025-04-14",
value: "gpt-4.1-2025-04-14",
},
];

const TTS_MODELS = [
Expand Down
10 changes: 8 additions & 2 deletions components/openai/openai.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default {
label: "Model",
description: "The ID of the model to use for the assistant",
async options() {
const models = (await this.models({})).filter(({ id }) => (id.includes("gpt-3.5-turbo") || id.includes("gpt-4-turbo") || id.includes("gpt-4o")) && (id !== "gpt-3.5-turbo-0301"));
const models = await this.getAssistantsModels({});
return models.map(({ id }) => id);
},
},
Expand Down Expand Up @@ -352,7 +352,7 @@ export default {
const models = await this.models({
$,
});
return models.filter((model) => model.id.match(/4o|o[1-9]/gi));
return models.filter((model) => model.id.match(/4o|o[1-9]|4\.1/gi));
},
async getCompletionModels({ $ }) {
const models = await this.models({
Expand All @@ -376,6 +376,12 @@ export default {
);
});
},
async getAssistantsModels({ $ }) {
const models = await this.models({
$,
});
return models.filter(({ id }) => (id.includes("gpt-3.5-turbo") || id.includes("gpt-4-turbo") || id.includes("gpt-4o") || id.includes("gpt-4.1")) && (id !== "gpt-3.5-turbo-0301"));
},
async _makeCompletion({
path, ...args
}) {
Expand Down
Loading
Loading