Class OpenAIChatGPTSystem
Uses OpenAI GPT-3 (https://beta.openai.com/docs/introduction/overview) to provide question-answering and various other NLP functionalities.
Inherited Members
Namespace: Ride.NLP
Assembly: cs.temp.dll.dll
Syntax
public class OpenAIChatGPTSystem : RideSystemMonoBehaviour, INLPQnASystem, INLPSystem, IRideSystem, IApiInject, IIdentity
Fields
Name | Description |
---|---|
m_answerSize | |
m_authorizationKey | |
m_responseTime | |
m_uri | |
max_tokens | |
messages | |
promptContent | |
promptRole | |
temperature |
Methods
Name | Description |
---|---|
AskQuestion(OpenAIGPT3.OpenAIMessage[], Action<NLPResponse>) | |
AskQuestion(String, Action<NLPResponse>) | Asks question to NLP service. |
AskQuestion(String, OpenAIGPT3.OpenAIMessage[], Int32, String, Action<NLPResponse>) | |
AskQuestion(String, String, Int32, String, Action<NLPResponse>) | Asks question to NLP service. |
AskQuestion(String, String, String, Action<NLPResponse>) | Asks question to NLP service. |
Request(String, OpenAIGPT3.OpenAIMessage[], Action<NLPResponse>) | Requests response based on provided user input for ChatGPT. See https://platform.openai.com/docs/api-reference/chat/create |
Request(String, String, Action<NLPResponse>, String) | Requests response based on provided user input for ChatGPT. See https://platform.openai.com/docs/api-reference/chat/create |
SystemInit() | Initializes the OpenAIChatGPTSystem with the endpoint URI and the corresponding authorization key. |