Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Clients []*Ref
Functions ¶
Types ¶
type Client ¶
func (*Client) Completion ¶
func (c *Client) Completion(ctx context.Context, params openai.ChatCompletionNewParams) ( *openai.ChatCompletion, error, )
type Ref ¶
var Default *Ref
func GetDefaultClient ¶
func GetDefaultClient() *Ref
GetClient gets the default client to use outside of the chat context where user can pick the client explicitly.
type RequestCallback ¶
Click to show internal directories.
Click to hide internal directories.