Module llm_chain_openai::chatgpt
source · Expand description
This module implements chains for the ChatGPT model from OpenAI.
Structs
- The
Executorstruct for the ChatGPT model. This executor uses theasync_openaicrate to communicate with the OpenAI API. - Output wrapper for OpenAI API’s response types.
- The
PerExecutorstruct contains options that can be specified for the ChatGPTExecutor. Currently, it only supports specifying anapi_key. - The
PerInvocationstruct contains options that can be specified for each ChatGPT invocation. Currently, it only supports specifying aModel.
Enums
- The
Modelenum represents the available ChatGPT models that you can use through the OpenAI API. These models have different capabilities and performance characteristics, allowing you to choose the one that best suits your needs.