@pipedream/openai 0.1.1 → 0.1.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.
@@ -4,9 +4,9 @@ import common from "../common/common.mjs";
4
4
  export default {
5
5
  ...common,
6
6
  name: "Chat",
7
- version: "0.1.0",
7
+ version: "0.1.1",
8
8
  key: "openai-chat",
9
- description: "The Chat API, using the `gpt-3.5-turbo` model. [See docs here](https://platform.openai.com/docs/api-reference/chat)",
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",
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.0.2",
6
+ version: "0.0.3",
7
7
  key: "openai-classify-items-into-categories",
8
8
  description: "Classify items into specific categories using the Chat API",
9
9
  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.0",
6
+ version: "0.1.1",
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({ $ }) {
@@ -3,7 +3,7 @@ import common from "../common/common-helper.mjs";
3
3
  export default {
4
4
  ...common,
5
5
  name: "Summarize Text",
6
- version: "0.0.2",
6
+ version: "0.0.3",
7
7
  key: "openai-summarize",
8
8
  description: "Summarizes text using the Chat API",
9
9
  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.2",
12
+ version: "0.0.3",
13
13
  key: "openai-translate-text",
14
14
  description: "Translate text from one language to another using the Chat API",
15
15
  type: "action",
@@ -70,7 +70,7 @@ export default {
70
70
  const models = await this.models({
71
71
  $,
72
72
  });
73
- return models.filter((model) => model.id.match(/turbo/gi));
73
+ return models.filter((model) => model.id.match(/turbo|gpt/gi));
74
74
  },
75
75
  async getCompletionModels({ $ }) {
76
76
  const models = await this.models({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/openai",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Pipedream OpenAI Components",
5
5
  "main": "app/openai.app.mjs",
6
6
  "keywords": [