Skip to content

OpenAI.Response.Create

Andrew Lambert edited this page Feb 20, 2023 · 3 revisions

Method signatures

 Shared Function Create(Endpoint As String, RequestMethod As String = "GET") As OpenAI.Response
 Shared Function Create(Endpoint As String, Request As OpenAI.Request, RequestMethod As String = "POST") As OpenAI.Response

Parameters

Create(String, String)

Name Type Comment
Endpoint String An OpenAI endpoint to make a request of.
RequestMethod String Optional. The HTTP request method to use. Defaults to GET.

Create(String, OpenAI.Request, String)

Name Type Comment
Endpoint String An OpenAI endpoint to make a request of.
Request Request The request body to send.
RequestMethod String Optional. The HTTP request method to use. Defaults to POST.

Return value

Returns a new instance of OpenAI.Response containing the response to the query.

Clone this wiki locally