Documentation ¶
Overview ¶
package gopenai provides a Go client for the OpenAI API.
The OpenAI API is a set of HTTP endpoints that you can use to access GPT-3, Dalle etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { SubClient interface{} // contains filtered or unexported fields }
Client is the main struct for the gopenai package
func (*Client) Do ¶
func (c *Client) Do(data constants.RequestData, i interface{}) *errors.HttpError
func (*Client) ListModels ¶
func (c *Client) ListModels() *ListModels
ListModels returns a list of available models
type ListModels ¶
type ListModels struct { Data []struct { Id string `json:"id"` Object string `json:"object"` OwnedBy string `json:"owned_by"` Permission []interface{} `json:"permission"` } `json:"data"` Object string `json:"object"` }
ListModels is a struct that contains the list of models available to the user
Click to show internal directories.
Click to hide internal directories.