Skip to main content
Version: 2.25.0

OpenAI

ToolJet can connect to OpenAI and utilize two main services: Completions and Chat. With OpenAI's Completions service, ToolJet can generate text automatically based on an initial prompt or context. The Chat service allows users to interact with a chatbot powered by OpenAI's language model. In addition, ToolJet can also leverage the GPT-3 Turbo service from OpenAI, which provides faster and more responsive completions.

Marketplace: openai
note

Before following this guide, it is assumed that you have already completed the process of Using Marketplace plugins.

Connection

For connecting to OpenAI, following credentials are required:

Marketplace: openai

Supported queries

Marketplace: openai

Completions

The purpose of this query is to generate text completions that resemble human writing based on a given prompt.

Required parameters:

  • Prompt: OpenAI uses the prompt as a starting point to generate a continuation or completion of the text, which can be in the form of a sentence, paragraph, or even an entire article. The quality and relevance of the generated text output can depend on the quality and specificity of the prompt provided.

Optional parameters:

  • Max Tokens: This parameter that specifies the maximum number of tokens to generate in the text completion output. For example, if you set it to 50, then it will generate a text completion that contains up to 50 tokens.
  • Temperature: Temperature is used to control the creativity and randomness of the generated text. It ranges from 0 to 2, a higher value such as 0.8 will increase the randomness of the output, whereas a lower value such as 0.2 will make it more focused and deterministic.
  • Stop sequence: the "stop" parameter is used to specify when the API should stop generating text completions. This parameter is optional and can be used to customize the length and quality of the generated text.
  • Suffix: The suffix that follows the inserted text completion.
Marketplace: openai

Chat

The function of this query is to examine the user's input and generate a suitable response that simulates human-like conversation.

Required parameters:

  • Prompt: A prompt is the initial message or question that is provided as input to the chatbot model to start a conversation.

Optional parameters:

  • Max Tokens: This parameter that specifies the maximum number of tokens to generate in the text completion output. For example, if you set it to 50, then it will generate a text completion that contains up to 50 tokens.
  • Temperature: Temperature is used to control the creativity and randomness of the generated text. It ranges from 0 to 2, a higher value such as 0.8 will increase the randomness of the output, whereas a lower value such as 0.2 will make it more focused and deterministic.
  • Stop sequence: the "stop" parameter is used to specify when the API should stop generating text completions. This parameter is optional and can be used to customize the length and quality of the generated text.
  • Suffix: The suffix that follows the inserted text completion.
Marketplace: openai