Method Request
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
Declaration
public async void Request(string uri, OpenAIGPT3.OpenAIMessage[] messages, Action<NLPResponse> onComplete)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | URL to send request to |
OpenAIGPT3.OpenAIMessage[] | messages | User input question and associated data, OpenAIGPT3.OpenAIMessage[] |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typically parses JSON response |
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
Declaration
public override async void Request(string uri, string question, Action<NLPResponse> onComplete, string data = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | URL to send request to |
System.String | question | User input, string question |
Action<NLPResponse> | onComplete | Delegate to execute on successful request, typically parses JSON response |
System.String | data |