@pipedream/openai 0.5.5 → 0.5.6

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.
@@ -5,7 +5,7 @@ import constants from "../../common/constants.mjs";
5
5
  export default {
6
6
  ...common,
7
7
  name: "Chat",
8
- version: "0.1.12",
8
+ version: "0.1.13",
9
9
  key: "openai-chat",
10
10
  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
11
  type: "action",
@@ -22,6 +22,7 @@ export default {
22
22
  type: "string",
23
23
  description: "The user messages provide instructions to the assistant. They can be generated by the end users of an application, or set by a developer as an instruction.",
24
24
  },
25
+ ...common.props,
25
26
  systemInstructions: {
26
27
  label: "System Instructions",
27
28
  type: "string",
@@ -45,11 +46,10 @@ export default {
45
46
  label: "Response Format",
46
47
  description: "Specify the format that the model must output. \n- **Text** (default): Returns unstructured text output.\n- **JSON Object**: Ensures the model's output is a valid JSON object.\n- **JSON Schema** (GPT-4o and later): Enables you to define a specific structure for the model's output using a JSON schema. Supported with models `gpt-4o-2024-08-06` and later, and `gpt-4o-mini-2024-07-18` and later.",
47
48
  options: Object.values(constants.CHAT_RESPONSE_FORMAT),
49
+ default: constants.CHAT_RESPONSE_FORMAT.TEXT.value,
48
50
  optional: true,
49
- default: "text",
50
51
  reloadProps: true,
51
52
  },
52
- ...common.props,
53
53
  },
54
54
  additionalProps() {
55
55
  const { responseFormat } = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/openai",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Pipedream OpenAI Components",
5
5
  "main": "openai.app.mjs",
6
6
  "keywords": [