ChatGPT
ChatGPT is a library with utilities to interact with the OpenAI ChatGPT API.
Functions​
constructor​
constructor to create a ChatGPT instance.
Input:
- "_apiKey": the API key to interact with the OpenAI ChatGPT.
complete​
complete a chat with the OpenAI ChatGPT.
Input:
- "messages": the messages to complete the chat.
Output:
- "message": the response from the OpenAI ChatGPT.