@pipedream/openai 0.1.2 → 0.1.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.
- package/actions/chat/chat.mjs +1 -1
- package/actions/classify-items-into-categories/classify-items-into-categories.mjs +1 -1
- package/actions/create-embeddings/create-embeddings.mjs +1 -1
- package/actions/create-image/create-image.mjs +3 -1
- package/actions/create-transcription/create-transcription.mjs +1 -1
- package/actions/send-prompt/send-prompt.mjs +1 -1
- package/actions/summarize/summarize.mjs +1 -1
- package/actions/translate-text/translate-text.mjs +1 -1
- package/app/openai.app.mjs +1 -0
- package/package.json +2 -1
package/actions/chat/chat.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import common from "../common/common.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
...common,
|
|
6
6
|
name: "Chat",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.2",
|
|
8
8
|
key: "openai-chat",
|
|
9
9
|
description: "The Chat API, using the `gpt-3.5-turbo` or `gpt-4` model. [See docs here](https://platform.openai.com/docs/api-reference/chat)",
|
|
10
10
|
type: "action",
|
|
@@ -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.0.
|
|
6
|
+
version: "0.0.4",
|
|
7
7
|
key: "openai-classify-items-into-categories",
|
|
8
8
|
description: "Classify items into specific categories using the Chat API",
|
|
9
9
|
type: "action",
|
|
@@ -4,7 +4,7 @@ import { ConfigurationError } from "@pipedream/platform";
|
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
name: "Create Embeddings",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
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 docs here](https://platform.openai.com/docs/api-reference/embeddings)",
|
|
10
10
|
type: "action",
|
|
@@ -3,7 +3,7 @@ import constants from "../common/constants.mjs";
|
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
name: "Create Image",
|
|
6
|
-
version: "0.1.
|
|
6
|
+
version: "0.1.2",
|
|
7
7
|
key: "openai-create-image",
|
|
8
8
|
description: "Creates an image given a prompt. returns a URL to the image. [See docs here](https://platform.openai.com/docs/api-reference/images)",
|
|
9
9
|
type: "action",
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
description: "The number of images to generate. Must be between 1 and 10.",
|
|
20
20
|
type: "integer",
|
|
21
21
|
optional: true,
|
|
22
|
+
default: 1,
|
|
22
23
|
},
|
|
23
24
|
size: {
|
|
24
25
|
label: "Size",
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
type: "string",
|
|
27
28
|
optional: true,
|
|
28
29
|
options: constants.IMAGE_SIZES,
|
|
30
|
+
default: "1024x1024",
|
|
29
31
|
},
|
|
30
32
|
},
|
|
31
33
|
async run({ $ }) {
|
|
@@ -12,7 +12,7 @@ const COMMON_AUDIO_FORMATS_TEXT = "Your audio file must be in one of these forma
|
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
14
|
name: "Create Transcription",
|
|
15
|
-
version: "0.0.
|
|
15
|
+
version: "0.0.2",
|
|
16
16
|
key: "openai-create-transcription",
|
|
17
17
|
description: "Transcribes audio into the input language. [See docs here](https://platform.openai.com/docs/api-reference/audio/create).",
|
|
18
18
|
type: "action",
|
|
@@ -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.
|
|
7
|
+
version: "0.1.1",
|
|
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 docs here](https://beta.openai.com/docs/api-reference/completions/create)",
|
|
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",
|
|
12
|
-
version: "0.0.
|
|
12
|
+
version: "0.0.4",
|
|
13
13
|
key: "openai-translate-text",
|
|
14
14
|
description: "Translate text from one language to another using the Chat API",
|
|
15
15
|
type: "action",
|
package/app/openai.app.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/openai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Pipedream OpenAI Components",
|
|
5
5
|
"main": "app/openai.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pipedream/platform": "^1.2.1",
|
|
18
18
|
"@pipedream/types": "^0.1.4",
|
|
19
|
+
"got": "^12.6.0",
|
|
19
20
|
"openai": "^3.2.1"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|