OpenAIChat

Description

The OpenAIChat component is a component that collaborates with the AI functions provided by OpenAI. OpenAIChat uses a language model specialized in chat completion. It is designed to simplify conversations involving multiple interactions.

※To use this OpenAIChat component, you need to obtain an API Key in advance to call OpenAI's AI functions. For how to obtain an API Key on the OpenAI site, please refer to OpenAI API Key Setup.

openai2-en

Component Properties

Property NameDescriptionExample
Basic PropertiesSpecifies the basic properties of the 'OpenAI' category
API KeyAPI Key ※1
Organization IdOrganization ID ※1
UserUser name
ModelSelect or manually enter the model name to be used. The models that can be used vary depending on the contract with OpenAI.GPT 3.5 Turbo GPT 3.5 Turbo 16k GPT 4 GPT 4 32k
System MessageRole Setting
User Message Sample InputSpecifies examples of questions from the user
Assistant Message Sample InputSpecifies examples of answers
User MessageQuestion from the user
TemperatureSpecifies the sampling temperature between 0 and 1
Max TokensMaximum number of tokens in the response
Top-PSpecifies nucleus sampling between 0 and 1. The default is 1
NNumber of responses generated per prompt
Log ProbabilitiesIncludes the log probability of the most likely token and the selected token
StopString to stop token generation
Presence PenaltySpecifies whether to reuse words that have already appeared, from -2.0 to 2.0. The default is 0
Frequency PenaltyThe more often it appears, the more penalty it gets, specified from -2.0 to 2.0. The default is 0
Logit BiasParameter to change the likelihood that the specified token will appear

※ For details of each property related to OpenAI, please refer to OpenAI API Reference.

※1 To use the OpenAIChat component, you need to obtain an API key. For how to obtain an API key, please refer to OpenAI API Key Setup.

Output Payload

Output PayloadDescription
cv.PayloadStores the response from the OpenAI Chat API as is