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.2",
version: "0.1.3",
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.11",
version: "0.0.12",
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-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.7",
version: "0.0.8",
type: "action",
props: {
openai,
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,7 +6,7 @@ import { ConfigurationError } from "@pipedream/platform";
export default {
...common,
name: "Chat",
version: "0.2.3",
version: "0.2.4",
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",
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.2",
version: "0.1.3",
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.10",
version: "0.0.11",
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.9",
version: "0.1.10",
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.5",
version: "0.0.6",
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.14",
version: "0.0.15",
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.10",
version: "0.0.11",
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.18",
version: "0.1.19",
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.5",
version: "0.0.6",
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.11",
version: "0.0.12",
type: "action",
props: {
openai,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const pipelineAsync = promisify(stream.pipeline);

export default {
name: "Create Transcription (Whisper)",
version: "0.1.14",
version: "0.1.15",
key: "openai-create-transcription",
description: "Transcribes audio into the input language. [See the documentation](https://platform.openai.com/docs/api-reference/audio/create).",
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-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.1",
version: "0.0.2",
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.1",
version: "0.0.2",
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.11",
version: "0.0.12",
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.1",
version: "0.0.2",
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.1",
version: "0.0.2",
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.11",
version: "0.0.12",
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.12",
version: "0.0.13",
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.11",
version: "0.0.12",
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.12",
version: "0.0.13",
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.1",
version: "0.0.2",
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.1",
version: "0.0.2",
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.9",
version: "0.1.10",
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.11",
version: "0.0.12",
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.11",
version: "0.0.12",
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.11",
version: "0.0.12",
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.11",
version: "0.0.12",
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.1",
version: "0.0.2",
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.1",
version: "0.0.2",
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,13 +4,13 @@
export default {
...common,
name: "Create Completion (Send Prompt)",
version: "0.1.13",
version: "0.1.14",
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",
props: {
openai,
alert: {

Check warning on line 13 in components/openai/actions/send-prompt/send-prompt.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/send-prompt/send-prompt.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: "warning",
content: "We recommend using the Pipedream **Chat** action instead of this one. It supports the latest `gpt-3.5-turbo` API, which is faster and 10x cheaper. This action, **Create Completion (Send Prompt)**, creates a completion for the provided prompt and parameters using the older `/completions` API.",
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.11",
version: "0.0.12",
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.2",
version: "0.1.3",
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.2",
version: "0.1.3",
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.14",
version: "0.0.15",
type: "action",
props: {
openai,
Expand Down
2 changes: 1 addition & 1 deletion components/openai/common/helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function parseToolsArray(arr) {
if (!arr) return undefined;
return arr.map((value) => {
if ([
"retrieval",
"file_search",
"code_interpreter",
].includes(value)) {
return {
Expand Down
2 changes: 1 addition & 1 deletion components/openai/openai.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default {
"User-Agent": "@PipedreamHQ/pipedream v1.0",
};
},
_betaHeaders(version = "v1") {
_betaHeaders(version = "v2") {
return {
...this._commonHeaders(),
"OpenAI-Beta": `assistants=${version}`,
Expand Down
6 changes: 3 additions & 3 deletions components/openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/openai",
"version": "0.7.1",
"version": "0.7.2",
"description": "Pipedream OpenAI Components",
"main": "openai.app.mjs",
"keywords": [
Expand All @@ -15,13 +15,13 @@
},
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@pipedream/platform": "^1.2.1",
"@pipedream/platform": "^3.0.3",
"@pipedream/types": "^0.1.4",
"axios": "^1.6.2",
"bottleneck": "^2.19.5",
"form-data": "^4.0.0",
"got": "^12.6.0",
"openai": "^3.2.1"
"openai": "^4.77.0"
},
"devDependencies": {
"@types/node": "^17.0.45"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "openai-new-batch-completed",
name: "New Batch Completed",
description: "Emit new event when a new batch is completed in OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/batch/list)",
version: "0.0.5",
version: "0.0.6",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "openai-new-file-created",
name: "New File Created",
description: "Emit new event when a new file is created in OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/files/list)",
version: "0.0.10",
version: "0.0.11",
type: "source",
dedupe: "unique",
props: {
Expand Down
Loading
Loading