@pipedream/openai 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +7 -7
  2. package/actions/analyze-image-content/analyze-image-content.mjs +1 -1
  3. package/actions/cancel-run/cancel-run.mjs +1 -1
  4. package/actions/chat/chat.mjs +1 -1
  5. package/actions/chat-using-file-search/chat-using-file-search.mjs +1 -1
  6. package/actions/chat-using-functions/chat-using-functions.mjs +2 -2
  7. package/actions/chat-using-web-search/chat-using-web-search.mjs +1 -1
  8. package/actions/chat-with-assistant/chat-with-assistant.mjs +1 -1
  9. package/actions/classify-items-into-categories/classify-items-into-categories.mjs +1 -1
  10. package/actions/convert-text-to-speech/convert-text-to-speech.mjs +1 -1
  11. package/actions/create-assistant/create-assistant.mjs +1 -1
  12. package/actions/create-batch/create-batch.mjs +1 -1
  13. package/actions/create-embeddings/create-embeddings.mjs +1 -1
  14. package/actions/create-fine-tuning-job/create-fine-tuning-job.mjs +1 -1
  15. package/actions/create-image/create-image.mjs +1 -1
  16. package/actions/create-moderation/create-moderation.mjs +1 -1
  17. package/actions/create-thread/create-thread.mjs +1 -1
  18. package/actions/create-vector-store/create-vector-store.mjs +1 -1
  19. package/actions/create-vector-store-file/create-vector-store-file.mjs +1 -1
  20. package/actions/delete-file/delete-file.mjs +1 -1
  21. package/actions/delete-vector-store/delete-vector-store.mjs +1 -1
  22. package/actions/delete-vector-store-file/delete-vector-store-file.mjs +1 -1
  23. package/actions/list-files/list-files.mjs +1 -1
  24. package/actions/list-messages/list-messages.mjs +1 -1
  25. package/actions/list-run-steps/list-run-steps.mjs +1 -1
  26. package/actions/list-runs/list-runs.mjs +1 -1
  27. package/actions/list-vector-store-files/list-vector-store-files.mjs +1 -1
  28. package/actions/list-vector-stores/list-vector-stores.mjs +1 -1
  29. package/actions/modify-assistant/modify-assistant.mjs +1 -1
  30. package/actions/retrieve-file/retrieve-file.mjs +1 -1
  31. package/actions/retrieve-file-content/retrieve-file-content.mjs +1 -1
  32. package/actions/retrieve-run/retrieve-run.mjs +1 -1
  33. package/actions/retrieve-run-step/retrieve-run-step.mjs +1 -1
  34. package/actions/retrieve-vector-store/retrieve-vector-store.mjs +1 -1
  35. package/actions/retrieve-vector-store-file/retrieve-vector-store-file.mjs +1 -1
  36. package/actions/send-prompt/send-prompt.mjs +1 -1
  37. package/actions/submit-tool-outputs-to-run/submit-tool-outputs-to-run.mjs +1 -1
  38. package/actions/summarize/summarize.mjs +1 -1
  39. package/actions/translate-text/translate-text.mjs +1 -1
  40. package/actions/upload-file/upload-file.mjs +1 -1
  41. package/common/constants.mjs +8 -0
  42. package/openai.app.mjs +8 -2
  43. package/package.json +1 -1
  44. package/sources/new-batch-completed/new-batch-completed.mjs +1 -1
  45. package/sources/new-file-created/new-file-created.mjs +1 -1
  46. package/sources/new-fine-tuning-job-created/new-fine-tuning-job-created.mjs +1 -1
  47. package/sources/new-run-state-changed/new-run-state-changed.mjs +1 -1
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  OpenAI provides a suite of powerful AI models through its API, enabling developers to integrate advanced natural language processing and generative capabilities into their applications. Here’s an overview of the services offered by OpenAI's API:
4
4
 
5
+ - [Web search](https://platform.openai.com/docs/guides/tools-web-search)
6
+ - [Function calling](https://platform.openai.com/docs/guides/function-calling)
5
7
  - [Text generation](https://platform.openai.com/docs/guides/text-generation)
6
8
  - [Embeddings](https://platform.openai.com/docs/guides/embeddings)
7
9
  - [Fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
@@ -16,13 +18,17 @@ Use Python or Node.js code to make fully authenticated API requests with your Op
16
18
 
17
19
  The OpenAI API can be leveraged in a wide range of business contexts to drive efficiency, enhance customer experiences, and innovate product offerings. Here are some specific business use cases for utilizing the OpenAI API:
18
20
 
21
+ ### AI Agent Tools
22
+
23
+ Empower your business with [AI Agent Tools](https://pipedream.com/blog/introducing-enhanced-openai-chat-actions-for-pipedream/#using-pipedream-workflows-as-functions) that act as intelligent, autonomous assistants capable of executing a range of complex tasks.
24
+
19
25
  ### **Customer Support Automation**
20
26
 
21
27
  Significantly reduce response times and free up human agents to tackle more complex issues by automating customer support ticket responses.
22
28
 
23
29
  ### **Content Creation and Management**
24
30
 
25
- Utilize AI to generate high-quality content for blogs, articles, product descriptions, and marketing material.
31
+ Utilize AI to generate high-quality content for blogs, articles, product descriptions, and marketing material.
26
32
 
27
33
  ### **Personalized Marketing and Advertising**
28
34
 
@@ -54,14 +60,10 @@ Name the key `Pipedream` and then save the API key within Pipedream. Now you’r
54
60
 
55
61
  ## 401 - Invalid Authentication
56
62
 
57
- ---
58
-
59
63
  Ensure the correct [API key](https://platform.openai.com/account/api-keys) and requesting organization are being used.
60
64
 
61
65
  ## 401 - Incorrect API key provided
62
66
 
63
- ---
64
-
65
67
  Ensure the API key used is correct or [generate a new one](https://platform.openai.com/account/api-keys) and then reconnect it to Pipedream.
66
68
 
67
69
  ## 401 - You must be a member of an organization to use the API
@@ -74,8 +76,6 @@ You are accessing the API from an unsupported country, region, or territory.
74
76
 
75
77
  ## 429 - Rate limit reached for requests
76
78
 
77
- ---
78
-
79
79
  You are sending requests too quickly. Pace your requests. Read the OpenAI [Rate limit guide](https://platform.openai.com/docs/guides/rate-limits). Use [Pipedream Concurrency and Throttling](https://pipedream.com/docs/workflows/concurrency-and-throttling) settings to control the frequency of API calls to OpenAI.
80
80
 
81
81
  ## 429 - You exceeded your current quota, please check your plan and billing details
@@ -8,7 +8,7 @@ export default {
8
8
  key: "openai-analyze-image-content",
9
9
  name: "Analyze Image Content",
10
10
  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)",
11
- version: "0.1.5",
11
+ version: "0.1.6",
12
12
  type: "action",
13
13
  props: {
14
14
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-cancel-run",
5
5
  name: "Cancel Run (Assistants)",
6
6
  description: "Cancels a run that is in progress. [See the documentation](https://platform.openai.com/docs/api-reference/runs/cancelRun)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -6,7 +6,7 @@ import { ConfigurationError } from "@pipedream/platform";
6
6
  export default {
7
7
  ...common,
8
8
  name: "Chat",
9
- version: "0.2.7",
9
+ version: "0.2.8",
10
10
  key: "openai-chat",
11
11
  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)",
12
12
  type: "action",
@@ -5,7 +5,7 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  name: "Chat using File Search",
8
- version: "0.0.3",
8
+ version: "0.0.4",
9
9
  key: "openai-chat-using-file-search",
10
10
  description: "Chat with your files knowledge base (vector stores). [See the documentation](https://platform.openai.com/docs/guides/tools-file-search)",
11
11
  type: "action",
@@ -5,7 +5,7 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  name: "Chat using Functions",
8
- version: "0.0.3",
8
+ version: "0.0.5",
9
9
  key: "openai-chat-using-functions",
10
10
  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)",
11
11
  type: "action",
@@ -14,7 +14,7 @@ export default {
14
14
  alert: {
15
15
  type: "alert",
16
16
  alertType: "info",
17
- 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).",
17
+ 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).",
18
18
  },
19
19
  modelId: {
20
20
  propDefinition: [
@@ -5,7 +5,7 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  name: "Chat using Web Search",
8
- version: "0.0.3",
8
+ version: "0.0.4",
9
9
  key: "openai-chat-using-web-search",
10
10
  description: "Chat using the web search tool. [See the documentation](https://platform.openai.com/docs/guides/tools-web-search)",
11
11
  type: "action",
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-chat-with-assistant",
7
7
  name: "Chat with Assistant",
8
8
  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)",
9
- version: "0.0.10",
9
+ version: "0.0.11",
10
10
  type: "action",
11
11
  props: {
12
12
  openai,
@@ -3,7 +3,7 @@ import common from "../common/common-helper.mjs";
3
3
  export default {
4
4
  ...common,
5
5
  name: "Classify Items into Categories",
6
- version: "0.1.5",
6
+ version: "0.1.6",
7
7
  key: "openai-classify-items-into-categories",
8
8
  description: "Classify items into specific categories using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
9
9
  type: "action",
@@ -5,7 +5,7 @@ export default {
5
5
  key: "openai-convert-text-to-speech",
6
6
  name: "Convert Text to Speech (TTS)",
7
7
  description: "Generates audio from the input text. [See the documentation](https://platform.openai.com/docs/api-reference/audio/createSpeech)",
8
- version: "0.0.13",
8
+ version: "0.0.14",
9
9
  type: "action",
10
10
  props: {
11
11
  openai,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-create-assistant",
7
7
  name: "Create Assistant",
8
8
  description: "Creates an assistant with a model and instructions. [See the documentation](https://platform.openai.com/docs/api-reference/assistants/createAssistant)",
9
- version: "0.1.12",
9
+ version: "0.1.13",
10
10
  type: "action",
11
11
  props: {
12
12
  openai,
@@ -8,7 +8,7 @@ export default {
8
8
  key: "openai-create-batch",
9
9
  name: "Create Batch",
10
10
  description: "Creates and executes a batch from an uploaded file of requests. [See the documentation](https://platform.openai.com/docs/api-reference/batch/create)",
11
- version: "0.0.8",
11
+ version: "0.0.9",
12
12
  type: "action",
13
13
  props: {
14
14
  openai,
@@ -4,7 +4,7 @@ import common from "../common/common.mjs";
4
4
 
5
5
  export default {
6
6
  name: "Create Embeddings",
7
- version: "0.0.17",
7
+ version: "0.0.18",
8
8
  key: "openai-create-embeddings",
9
9
  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)",
10
10
  type: "action",
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-create-fine-tuning-job",
5
5
  name: "Create Fine Tuning Job",
6
6
  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)",
7
- version: "0.0.13",
7
+ version: "0.0.14",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ import fs from "fs";
4
4
 
5
5
  export default {
6
6
  name: "Create Image (Dall-E)",
7
- version: "0.1.21",
7
+ version: "0.1.22",
8
8
  key: "openai-create-image",
9
9
  description: "Creates an image given a prompt returning a URL to the image. [See the documentation](https://platform.openai.com/docs/api-reference/images)",
10
10
  type: "action",
@@ -5,7 +5,7 @@ export default {
5
5
  key: "openai-create-moderation",
6
6
  name: "Create Moderation",
7
7
  description: "Classifies if text is potentially harmful. [See the documentation](https://platform.openai.com/docs/api-reference/moderations/create)",
8
- version: "0.0.8",
8
+ version: "0.0.9",
9
9
  type: "action",
10
10
  props: {
11
11
  openai,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-create-thread",
7
7
  name: "Create Thread (Assistants)",
8
8
  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)",
9
- version: "0.0.14",
9
+ version: "0.0.15",
10
10
  type: "action",
11
11
  props: {
12
12
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-create-vector-store",
5
5
  name: "Create Vector Store",
6
6
  description: "Create a vector store. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/create)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-create-vector-store-file",
5
5
  name: "Create Vector Store File",
6
6
  description: "Create a vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/createFile)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-delete-file",
5
5
  name: "Delete File",
6
6
  description: "Deletes a specified file from OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/files/delete)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-delete-vector-store",
5
5
  name: "Delete Vector Store",
6
6
  description: "Delete a vector store. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/delete)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-delete-vector-store-file",
5
5
  name: "Delete Vector Store File",
6
6
  description: "Deletes a vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/deleteFile)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-list-files",
5
5
  name: "List Files",
6
6
  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)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-list-messages",
5
5
  name: "List Messages (Assistants)",
6
6
  description: "Lists the messages for a given thread. [See the documentation](https://platform.openai.com/docs/api-reference/messages/listMessages)",
7
- version: "0.0.15",
7
+ version: "0.0.16",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-list-run-steps",
5
5
  name: "List Run Steps (Assistants)",
6
6
  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)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-list-runs",
5
5
  name: "List Runs (Assistants)",
6
6
  description: "Returns a list of runs belonging to a thread. [See the documentation](https://platform.openai.com/docs/api-reference/runs/list)",
7
- version: "0.0.15",
7
+ version: "0.0.16",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-list-vector-store-files",
5
5
  name: "List Vector Store Files",
6
6
  description: "Returns a list of vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/listFiles)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-list-vector-stores",
5
5
  name: "List Vector Stores",
6
6
  description: "Returns a list of vector stores. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/list)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-modify-assistant",
7
7
  name: "Modify an Assistant",
8
8
  description: "Modifies an existing OpenAI assistant. [See the documentation](https://platform.openai.com/docs/api-reference/assistants/modifyAssistant)",
9
- version: "0.1.12",
9
+ version: "0.1.13",
10
10
  type: "action",
11
11
  props: {
12
12
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-retrieve-file",
5
5
  name: "Retrieve File",
6
6
  description: "Retrieves a specific file from OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/files/retrieve)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "openai-retrieve-file-content",
6
6
  name: "Retrieve File Content",
7
7
  description: "Retrieves the contents of the specified file. [See the documentation](https://platform.openai.com/docs/api-reference/files/retrieve-content)",
8
- version: "0.0.14",
8
+ version: "0.0.15",
9
9
  type: "action",
10
10
  props: {
11
11
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-retrieve-run",
5
5
  name: "Retrieve Run (Assistants)",
6
6
  description: "Retrieves a specific run within a thread. [See the documentation](https://platform.openai.com/docs/api-reference/runs/getRun)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-retrieve-run-step",
5
5
  name: "Retrieve Run Step (Assistants)",
6
6
  description: "Retrieve a specific run step in a thread. [See the documentation](https://platform.openai.com/docs/api-reference/runs/getRunStep)",
7
- version: "0.0.14",
7
+ version: "0.0.15",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-retrieve-vector-store",
5
5
  name: "Retrieve Vector Store",
6
6
  description: "Retrieve a vector store. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores/retrieve)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ export default {
4
4
  key: "openai-retrieve-vector-store-file",
5
5
  name: "Retrieve Vector Store File",
6
6
  description: "Retrieve a vector store file. [See the documentation](https://platform.openai.com/docs/api-reference/vector-stores-files/getFile)",
7
- version: "0.0.4",
7
+ version: "0.0.5",
8
8
  type: "action",
9
9
  props: {
10
10
  openai,
@@ -4,7 +4,7 @@ import common from "../common/common.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  name: "Create Completion (Send Prompt)",
7
- version: "0.1.16",
7
+ version: "0.1.17",
8
8
  key: "openai-send-prompt",
9
9
  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)",
10
10
  type: "action",
@@ -5,7 +5,7 @@ export default {
5
5
  key: "openai-submit-tool-outputs-to-run",
6
6
  name: "Submit Tool Outputs to Run (Assistants)",
7
7
  description: "Submits tool outputs to a run that requires action. [See the documentation](https://platform.openai.com/docs/api-reference/runs/submitToolOutputs)",
8
- version: "0.0.14",
8
+ version: "0.0.15",
9
9
  type: "action",
10
10
  props: {
11
11
  openai,
@@ -4,7 +4,7 @@ import constants from "../../common/constants.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  name: "Summarize Text",
7
- version: "0.1.5",
7
+ version: "0.1.6",
8
8
  key: "openai-summarize",
9
9
  description: "Summarizes text using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
10
10
  type: "action",
@@ -9,7 +9,7 @@ const langOptions = lang.LANGUAGES.map((l) => ({
9
9
  export default {
10
10
  ...common,
11
11
  name: "Translate Text (Whisper)",
12
- version: "0.1.5",
12
+ version: "0.1.6",
13
13
  key: "openai-translate-text",
14
14
  description: "Translate text from one language to another using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
15
15
  type: "action",
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-upload-file",
7
7
  name: "Upload File",
8
8
  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)",
9
- version: "0.0.17",
9
+ version: "0.0.18",
10
10
  type: "action",
11
11
  props: {
12
12
  openai,
@@ -19,6 +19,14 @@ const FINE_TUNING_MODEL_OPTIONS = [
19
19
  label: "gpt-4-0613 (experimental — eligible users will be presented with an option to request access in the fine-tuning UI)",
20
20
  value: "gpt-4-0613",
21
21
  },
22
+ {
23
+ label: "gpt-4.1-mini-2025-04-14",
24
+ value: "gpt-4.1-mini-2025-04-14",
25
+ },
26
+ {
27
+ label: "gpt-4.1-2025-04-14",
28
+ value: "gpt-4.1-2025-04-14",
29
+ },
22
30
  ];
23
31
 
24
32
  const TTS_MODELS = [
package/openai.app.mjs CHANGED
@@ -37,7 +37,7 @@ export default {
37
37
  label: "Model",
38
38
  description: "The ID of the model to use for the assistant",
39
39
  async options() {
40
- 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"));
40
+ const models = await this.getAssistantsModels({});
41
41
  return models.map(({ id }) => id);
42
42
  },
43
43
  },
@@ -352,7 +352,7 @@ export default {
352
352
  const models = await this.models({
353
353
  $,
354
354
  });
355
- return models.filter((model) => model.id.match(/4o|o[1-9]/gi));
355
+ return models.filter((model) => model.id.match(/4o|o[1-9]|4\.1/gi));
356
356
  },
357
357
  async getCompletionModels({ $ }) {
358
358
  const models = await this.models({
@@ -376,6 +376,12 @@ export default {
376
376
  );
377
377
  });
378
378
  },
379
+ async getAssistantsModels({ $ }) {
380
+ const models = await this.models({
381
+ $,
382
+ });
383
+ 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"));
384
+ },
379
385
  async _makeCompletion({
380
386
  path, ...args
381
387
  }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/openai",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "description": "Pipedream OpenAI Components",
5
5
  "main": "openai.app.mjs",
6
6
  "keywords": [
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-new-batch-completed",
7
7
  name: "New Batch Completed",
8
8
  description: "Emit new event when a new batch is completed in OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/batch/list)",
9
- version: "0.0.8",
9
+ version: "0.0.9",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  methods: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-new-file-created",
7
7
  name: "New File Created",
8
8
  description: "Emit new event when a new file is created in OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/files/list)",
9
- version: "0.0.13",
9
+ version: "0.0.14",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-new-fine-tuning-job-created",
7
7
  name: "New Fine Tuning Job Created",
8
8
  description: "Emit new event when a new fine-tuning job is created in OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/fine-tuning/list)",
9
- version: "0.0.13",
9
+ version: "0.0.14",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  methods: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "openai-new-run-state-changed",
7
7
  name: "New Run State Changed",
8
8
  description: "Emit new event every time a run changes its status. [See the documentation](https://platform.openai.com/docs/api-reference/runs/listRuns)",
9
- version: "0.0.9",
9
+ version: "0.0.10",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {