# ChatGPT
Category: Platforms
| Runtime: 0.0.3
| Available: Free
# Overview
ChatGPT node is the client to connect with ChatGPT AI platform. . This node helps in executing basic instructions or prompt and to generate images.
# Setup
# Prerequisites
For ChatGPT node to work properly, you need to have a valid subscription of OpenAI account (opens new window) in order get an API Key. API Key is necessary for the ChatGPT node to access the platform.
# Installation
To install the node from designer:
- Go to Add more nodes option on the palette section.
- Check for the ChatGPT node and click install.
- Once installed, the designer is required to be restarted.
To install the node from CLI:
- Go to your project workspace where you can see your
package.json
file. - Run the below give npm command.
npm i @kumologica/kumologica-contrib-chatgpt
# Technical Details
Properties
- Instruction (Optional)
Request or prompt for ChatGPT to generate completions. - Model (Optional)
Learning models supported by ChatGPT. Default is text-davinci-003.- text-davinci-003
- babbage
- text-davinci-003
- ada
- davinci
- curie-instruct-beta
- code-cushman-001
- code-davinci-002
- text-ada-001
- text-davinci-002
- ext-curie-001
- davinci-instruct-beta
- text-babbage-001">text-babbage-001
- curie
- Max Token (Optional)
The maximum number of tokens to generate in the completion. Default is 16. - Number of Images (Optional)
The number of images to generate. Must be between 1 and 10. - Image Size (Optional)
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024. - Token (Required)
API Key provided by ChatGPT to access the platform.
Supported Operations
- Conversation Option for sending instructions or prompt for ChatGPT to analyze and respond.
- Images Option for sending request for generating images based on a prompt.
Throws
ChatGPT node throws the following exception.
- ChatGPT Client Failed
Returns
Payload will not be overwritten by this node. Payload can be accessed in the subsequent node using the following expression msg.header.chatGPT.payload
. None of the variables will be overwritten or enriched by this node.