Documentation
¶
Index ¶
- type Client
- func (an *Client) IsConfigured() bool
- func (an *Client) ListModels() (ret []string, err error)
- func (an *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, ...) (ret string, err error)
- func (an *Client) SendStream(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, ...) (err error)
- func (an *Client) Setup() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*plugins.PluginBase
ApiBaseURL *plugins.SetupQuestion
ApiKey *plugins.SetupQuestion
// contains filtered or unexported fields
}
func (*Client) IsConfigured ¶
IsConfigured returns true if the API key is configured
func (*Client) ListModels ¶
func (*Client) Send ¶
func (an *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions) ( ret string, err error)
func (*Client) SendStream ¶
func (an *Client) SendStream( msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.StreamUpdate, ) (err error)
Click to show internal directories.
Click to hide internal directories.