# 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:

  1. Go to Add more nodes option on the palette section.
  2. Check for the ChatGPT node and click install.
  3. Once installed, the designer is required to be restarted.

To install the node from CLI:

  1. Go to your project workspace where you can see your package.json file.
  2. 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.
    1. text-davinci-003
    2. babbage
    3. text-davinci-003
    4. ada
    5. davinci
    6. curie-instruct-beta
    7. code-cushman-001
    8. code-davinci-002
    9. text-ada-001
    10. text-davinci-002
    11. ext-curie-001
    12. davinci-instruct-beta
    13. text-babbage-001">text-babbage-001
    14. 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.