Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) ListModels(_ context.Context) ([]string, error)
- func (c *Client) Send(_ context.Context, msgs []*chat.ChatCompletionMessage, ...) (string, error)
- func (c *Client) SendStream(_ context.Context, msgs []*chat.ChatCompletionMessage, ...) error
- func (c *Client) Setup() error
- func (c *Client) SetupFillEnvFileContent(_ *bytes.Buffer)
Constants ¶
View Source
const DryRunResponse = "Dry run: Fake response sent by DryRun plugin\n"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*plugins.PluginBase
}
func (*Client) Send ¶
func (c *Client) Send(_ context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions) (string, error)
func (*Client) SendStream ¶
func (c *Client) SendStream(_ context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.StreamUpdate) error
func (*Client) SetupFillEnvFileContent ¶
Click to show internal directories.
Click to hide internal directories.