Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) DoForm(method, path string, body interface{}) ([]byte, error)
- func (c *Client) DoJson(method, path string, body interface{}) ([]byte, error)
- func (c *Client) DoStream(method, path string, body interface{}) (*http.Response, error)
- func (c *Client) Download(path string) (io.ReadCloser, error)
- type Error
- type ErrorResponse
Constants ¶
View Source
const DefaultBaseURL = "https://api.openai.com/v1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type Error ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error Error `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.