# Functions
NewClient returns a new OpenAI GPT-3 API client.
WithAPIVersion is a client option that allows you to override the default api version of the client.
WithHTTPClient allows you to override the internal http.Client used.
WithTimeout is a client option that allows you to override the default timeout duration of requests for the client.
WithUserAgent is a client option that allows you to override the default user agent of the client.
# Structs
APIError represents an error that occurred on an API.
APIErrorResponse is the full error respnose that has been returned by an API.
ChatCompletionRequest is a request for the chat completion API.
ChatCompletionRequestMessage is a message to use as the context for the chat completion API.
ChatCompletionResponse is the full response from a request to the Chat Completions API.
ChatCompletionResponseChoice is one of the choices returned in the response to the Chat Completions API.
ChatCompletionResponseMessage is a message returned in the response to the Chat Completions API.
ChatCompletionsResponseUsage is the object that returns how many tokens the completion's request used.
CompletionRequest is a request for the completions API.
CompletionResponse is the full response from a request to the completions API.
CompletionResponseChoice is one of the choices returned in the response to the Completions API.
CompletionResponseUsage is the object that returns how many tokens the completion's request used.
EditsRequest is a request for the edits API.
EditsResponse is the full response from a request to the edits API.
EditsResponseChoice is one of the choices returned in the response to the Edits API.
EditsResponseUsage is a structure used in the response from a request to the edits API.
EmbeddingsRequest is a request for the Embeddings API.
EmbeddingsResponse is the response from a create embeddings request.
The inner result of a create embeddings request, containing the embeddings for a single input.
The usage stats for an embeddings response.
EngineObject contained in an engine response.
EnginesResponse is returned from the Engines API.
LogprobResult represents logprob result of Choice.
SearchData is a single search result from the document search API.
SearchRequest is a request for the document search API.
SearchResponse is the full response from a request to the document search API.
# Interfaces
A Client is an API client to communicate with the OpenAI gpt-3 APIs.
# Type aliases
ClientOption are options that can be passed when creating a new client.