@pipedream/openai 1.2.1 → 1.2.3

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 (42) hide show
  1. package/actions/analyze-image-content/analyze-image-content.mjs +39 -60
  2. package/actions/cancel-run/cancel-run.mjs +6 -1
  3. package/actions/chat/chat.mjs +6 -1
  4. package/actions/chat-using-file-search/chat-using-file-search.mjs +6 -1
  5. package/actions/chat-using-functions/chat-using-functions.mjs +6 -1
  6. package/actions/chat-using-web-search/chat-using-web-search.mjs +6 -1
  7. package/actions/chat-with-assistant/chat-with-assistant.mjs +6 -1
  8. package/actions/chat-with-responses-api/chat-with-responses-api.mjs +6 -1
  9. package/actions/classify-items-into-categories/classify-items-into-categories.mjs +6 -1
  10. package/actions/convert-text-to-speech/convert-text-to-speech.mjs +6 -1
  11. package/actions/create-assistant/create-assistant.mjs +6 -1
  12. package/actions/create-batch/create-batch.mjs +6 -1
  13. package/actions/create-embeddings/create-embeddings.mjs +6 -1
  14. package/actions/create-fine-tuning-job/create-fine-tuning-job.mjs +6 -1
  15. package/actions/create-image/create-image.mjs +6 -1
  16. package/actions/create-moderation/create-moderation.mjs +6 -1
  17. package/actions/create-thread/create-thread.mjs +6 -1
  18. package/actions/create-transcription/create-transcription.mjs +6 -1
  19. package/actions/create-vector-store/create-vector-store.mjs +6 -1
  20. package/actions/create-vector-store-file/create-vector-store-file.mjs +6 -1
  21. package/actions/delete-file/delete-file.mjs +6 -1
  22. package/actions/delete-vector-store/delete-vector-store.mjs +6 -1
  23. package/actions/delete-vector-store-file/delete-vector-store-file.mjs +6 -1
  24. package/actions/list-files/list-files.mjs +6 -1
  25. package/actions/list-messages/list-messages.mjs +6 -1
  26. package/actions/list-run-steps/list-run-steps.mjs +6 -1
  27. package/actions/list-runs/list-runs.mjs +6 -1
  28. package/actions/list-vector-store-files/list-vector-store-files.mjs +6 -1
  29. package/actions/list-vector-stores/list-vector-stores.mjs +6 -1
  30. package/actions/modify-assistant/modify-assistant.mjs +6 -1
  31. package/actions/retrieve-file/retrieve-file.mjs +6 -1
  32. package/actions/retrieve-file-content/retrieve-file-content.mjs +6 -1
  33. package/actions/retrieve-run/retrieve-run.mjs +6 -1
  34. package/actions/retrieve-run-step/retrieve-run-step.mjs +6 -1
  35. package/actions/retrieve-vector-store/retrieve-vector-store.mjs +6 -1
  36. package/actions/retrieve-vector-store-file/retrieve-vector-store-file.mjs +6 -1
  37. package/actions/send-prompt/send-prompt.mjs +6 -1
  38. package/actions/submit-tool-outputs-to-run/submit-tool-outputs-to-run.mjs +6 -1
  39. package/actions/summarize/summarize.mjs +6 -1
  40. package/actions/translate-text/translate-text.mjs +6 -1
  41. package/actions/upload-file/upload-file.mjs +6 -1
  42. package/package.json +3 -3
@@ -7,8 +7,13 @@ export default {
7
7
  ...common,
8
8
  key: "openai-analyze-image-content",
9
9
  name: "Analyze Image Content",
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: "1.0.2",
10
+ description: "Send a message or question about an image and receive a response. [See the documentation](https://developers.openai.com/api/reference/resources/responses/methods/create)",
11
+ version: "1.1.0",
12
+ annotations: {
13
+ destructiveHint: false,
14
+ openWorldHint: true,
15
+ readOnlyHint: false,
16
+ },
12
17
  type: "action",
13
18
  props: {
14
19
  openai,
@@ -41,44 +46,24 @@ export default {
41
46
  },
42
47
  },
43
48
  async run({ $ }) {
44
- const { id: assistantId } = await this.openai.createAssistant({
45
- $,
46
- data: {
47
- model: "gpt-4o", // replaced from "gpt-4-vision-preview" - see https://platform.openai.com/docs/deprecations
48
- },
49
- });
50
-
51
49
  const data = {
52
- assistant_id: assistantId,
53
- thread: {
54
- messages: [
55
- {
56
- role: "user",
57
- content: [
58
- {
59
- type: "text",
60
- text: this.message,
61
- },
62
- ],
63
- },
64
- ],
65
- },
66
- model: this.model,
67
- };
68
- if (this.imageUrl) {
69
- data.thread.messages[0].content.push({
70
- type: "image_url",
71
- image_url: {
72
- url: this.imageUrl,
50
+ model: "gpt-4o",
51
+ input: [
52
+ {
53
+ role: "user",
54
+ content: [
55
+ {
56
+ type: "input_text",
57
+ text: this.message,
58
+ },
59
+ ],
73
60
  },
74
- });
75
- }
61
+ ],
62
+ };
76
63
  if (this.imageFileId) {
77
- data.thread.messages[0].content.push({
78
- type: "image_file",
79
- image_file: {
80
- file_id: this.imageFileId,
81
- },
64
+ data.input[0].content.push({
65
+ type: "input_image",
66
+ file_id: this.imageFileId,
82
67
  });
83
68
  }
84
69
  if (this.filePath) {
@@ -99,37 +84,31 @@ export default {
99
84
  headers: fileData.getHeaders(),
100
85
  });
101
86
 
102
- data.thread.messages[0].content.push({
103
- type: "image_file",
104
- image_file: {
105
- file_id: id,
106
- },
87
+ data.input[0].content.push({
88
+ type: "input_image",
89
+ file_id: id,
107
90
  });
108
91
  }
109
92
 
110
- let run;
111
- run = await this.openai.createThreadAndRun({
93
+ const run = await this.openai.responses({
112
94
  $,
113
95
  data,
114
96
  });
115
- const runId = run.id;
116
- const threadId = run.thread_id;
117
-
118
- run = await this.pollRunUntilCompleted(run, threadId, runId, $);
119
97
 
120
- // get response;
121
- const { data: messages } = await this.openai.listMessages({
122
- $,
123
- threadId,
124
- params: {
125
- order: "desc",
126
- },
127
- });
128
- const response = messages[0].content[0].text.value;
129
- return {
130
- response,
131
- messages,
98
+ const returnData = {
132
99
  run,
100
+ messages: data.input,
133
101
  };
102
+
103
+ if (run.output.length) {
104
+ returnData.response = run.output[0].content[0].text;
105
+ returnData.messages.push({
106
+ role: run.output[0].role,
107
+ content: run.output[0].content,
108
+ });
109
+ }
110
+
111
+ $.export("$summary", "Successfully analyzed image content.");
112
+ return returnData;
134
113
  },
135
114
  };
@@ -4,7 +4,12 @@ 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.16",
7
+ version: "0.0.17",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -5,7 +5,12 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  name: "Chat",
8
- version: "0.3.3",
8
+ version: "0.3.4",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  key: "openai-chat",
10
15
  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)",
11
16
  type: "action",
@@ -5,7 +5,12 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  name: "Chat using File Search",
8
- version: "0.0.7",
8
+ version: "0.0.8",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
9
14
  key: "openai-chat-using-file-search",
10
15
  description: "Chat with your files knowledge base (vector stores). [See the documentation](https://platform.openai.com/docs/guides/tools-file-search)",
11
16
  type: "action",
@@ -5,7 +5,12 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  name: "Chat using Functions",
8
- version: "0.0.8",
8
+ version: "0.0.9",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  key: "openai-chat-using-functions",
10
15
  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
16
  type: "action",
@@ -6,7 +6,12 @@ import { WEB_SEARCH_CHAT_MODELS } from "../../common/models.mjs";
6
6
  export default {
7
7
  ...common,
8
8
  name: "Chat using Web Search",
9
- version: "0.0.7",
9
+ version: "0.0.8",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: true,
14
+ },
10
15
  key: "openai-chat-using-web-search",
11
16
  description: "Chat using the web search tool. [See the documentation](https://platform.openai.com/docs/guides/tools-web-search)",
12
17
  type: "action",
@@ -6,7 +6,12 @@ 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.12",
9
+ version: "0.0.13",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: false,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  openai,
@@ -10,7 +10,12 @@ export default {
10
10
  ...common,
11
11
  key: "openai-chat-with-responses-api",
12
12
  name: "Chat With Responses API",
13
- version: "0.0.2",
13
+ version: "0.0.3",
14
+ annotations: {
15
+ destructiveHint: false,
16
+ openWorldHint: true,
17
+ readOnlyHint: false,
18
+ },
14
19
  description: "Send a chat via the Responses API, mixing built-in tools and MCP server tools. [See the documentation](https://platform.openai.com/docs/guides/tools?api-mode=responses).",
15
20
  type: "action",
16
21
  props: {
@@ -3,7 +3,12 @@ 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.9",
6
+ version: "0.1.10",
7
+ annotations: {
8
+ destructiveHint: false,
9
+ openWorldHint: true,
10
+ readOnlyHint: true,
11
+ },
7
12
  key: "openai-classify-items-into-categories",
8
13
  description: "Classify items into specific categories using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
9
14
  type: "action",
@@ -5,7 +5,12 @@ 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.16",
8
+ version: "0.0.17",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  openai,
@@ -6,7 +6,12 @@ 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.14",
9
+ version: "0.1.15",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: false,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  openai,
@@ -9,7 +9,12 @@ export default {
9
9
  key: "openai-create-batch",
10
10
  name: "Create Batch",
11
11
  description: "Creates and executes a batch from an uploaded file of requests. [See the documentation](https://platform.openai.com/docs/api-reference/batch/create)",
12
- version: "0.1.2",
12
+ version: "0.1.3",
13
+ annotations: {
14
+ destructiveHint: false,
15
+ openWorldHint: true,
16
+ readOnlyHint: false,
17
+ },
13
18
  type: "action",
14
19
  props: {
15
20
  openai,
@@ -4,7 +4,12 @@ import common from "../common/common.mjs";
4
4
 
5
5
  export default {
6
6
  name: "Create Embeddings",
7
- version: "0.0.21",
7
+ version: "0.0.22",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  key: "openai-create-embeddings",
9
14
  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
15
  type: "action",
@@ -4,7 +4,12 @@ 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.15",
7
+ version: "0.0.16",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -5,7 +5,12 @@ import { IMAGE_MODELS } from "../../common/models.mjs";
5
5
 
6
6
  export default {
7
7
  name: "Create Image (Dall-E)",
8
- version: "0.1.24",
8
+ version: "0.1.25",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  key: "openai-create-image",
10
15
  description: "Creates an image given a prompt returning a URL to the image. [See the documentation](https://platform.openai.com/docs/api-reference/images)",
11
16
  type: "action",
@@ -5,7 +5,12 @@ 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.10",
8
+ version: "0.0.11",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  openai,
@@ -6,7 +6,12 @@ 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.16",
9
+ version: "0.0.17",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: false,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  openai,
@@ -7,7 +7,12 @@ export default {
7
7
  key: "openai-create-transcription",
8
8
  name: "Create Transcription",
9
9
  description: "Transcribes audio into the input language. [See the documentation](https://platform.openai.com/docs/api-reference/audio/createTranscription)",
10
- version: "0.3.2",
10
+ version: "0.3.3",
11
+ annotations: {
12
+ destructiveHint: false,
13
+ openWorldHint: true,
14
+ readOnlyHint: false,
15
+ },
11
16
  type: "action",
12
17
  props: {
13
18
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.16",
7
+ version: "0.0.17",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: true,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.16",
7
+ version: "0.0.17",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.17",
7
+ version: "0.0.18",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.16",
7
+ version: "0.0.17",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.17",
7
+ version: "0.0.18",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -6,7 +6,12 @@ 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.14",
9
+ version: "0.1.15",
10
+ annotations: {
11
+ destructiveHint: true,
12
+ openWorldHint: true,
13
+ readOnlyHint: false,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  openai,
@@ -4,7 +4,12 @@ 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.16",
7
+ version: "0.0.17",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -5,7 +5,12 @@ 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.17",
8
+ version: "0.0.18",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  openai,
@@ -4,7 +4,12 @@ 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.16",
7
+ version: "0.0.17",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.16",
7
+ version: "0.0.17",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ 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.6",
7
+ version: "0.0.7",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  type: "action",
9
14
  props: {
10
15
  openai,
@@ -4,7 +4,12 @@ import common from "../common/common.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  name: "Create Completion (Send Prompt)",
7
- version: "0.1.20",
7
+ version: "0.1.21",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: false,
12
+ },
8
13
  key: "openai-send-prompt",
9
14
  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
15
  type: "action",
@@ -5,7 +5,12 @@ 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.16",
8
+ version: "0.0.17",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: false,
13
+ },
9
14
  type: "action",
10
15
  props: {
11
16
  openai,
@@ -4,7 +4,12 @@ import constants from "../../common/constants.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  name: "Summarize Text",
7
- version: "0.1.9",
7
+ version: "0.1.10",
8
+ annotations: {
9
+ destructiveHint: false,
10
+ openWorldHint: true,
11
+ readOnlyHint: true,
12
+ },
8
13
  key: "openai-summarize",
9
14
  description: "Summarizes text using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
10
15
  type: "action",
@@ -9,7 +9,12 @@ const langOptions = lang.LANGUAGES.map((l) => ({
9
9
  export default {
10
10
  ...common,
11
11
  name: "Translate Text (Whisper)",
12
- version: "0.1.9",
12
+ version: "0.1.10",
13
+ annotations: {
14
+ destructiveHint: false,
15
+ openWorldHint: true,
16
+ readOnlyHint: true,
17
+ },
13
18
  key: "openai-translate-text",
14
19
  description: "Translate text from one language to another using the Chat API. [See the documentation](https://platform.openai.com/docs/api-reference/chat)",
15
20
  type: "action",
@@ -6,7 +6,12 @@ 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.1.2",
9
+ version: "0.1.3",
10
+ annotations: {
11
+ destructiveHint: false,
12
+ openWorldHint: true,
13
+ readOnlyHint: false,
14
+ },
10
15
  type: "action",
11
16
  props: {
12
17
  openai,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/openai",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Pipedream OpenAI Components",
5
5
  "main": "openai.app.mjs",
6
6
  "keywords": [
@@ -14,10 +14,10 @@
14
14
  "access": "public"
15
15
  },
16
16
  "dependencies": {
17
- "@pipedream/platform": "^3.1.0",
17
+ "@pipedream/platform": "^3.1.1",
18
18
  "bottleneck": "^2.19.5",
19
19
  "file-type": "^21.0.0",
20
- "form-data": "^4.0.0",
20
+ "form-data": "^4.0.4",
21
21
  "got": "^12.6.0",
22
22
  "openai": "^4.77.0"
23
23
  },