Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResponse = errors.New("no reponse")
ErrNoResponse thrown when there is no response from the open ai API.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the OpenAI client and some configuration.
type OptFunc ¶
type OptFunc func(store *Client)
OptFunc used for setting optional configs.
func WithBaseUrl ¶
WithBaseUrl sets the Client baseUrl optional param.
func WithCustomContext ¶
WithBaseUrl sets the Client prompt context optional param.
Click to show internal directories.
Click to hide internal directories.