Documentation ¶
Index ¶
- type Client
- func (c *Client) ListModels() ([]string, error)
- func (c *Client) Send(_ context.Context, msgs []*goopenai.ChatCompletionMessage, ...) (string, error)
- func (c *Client) SendStream(msgs []*goopenai.ChatCompletionMessage, opts *common.ChatOptions, ...) error
- func (c *Client) Setup() error
- func (c *Client) SetupFillEnvFileContent(_ *bytes.Buffer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*plugins.PluginBase
}
func (*Client) ListModels ¶
func (*Client) Send ¶
func (c *Client) Send(_ context.Context, msgs []*goopenai.ChatCompletionMessage, opts *common.ChatOptions) (string, error)
func (*Client) SendStream ¶
func (c *Client) SendStream(msgs []*goopenai.ChatCompletionMessage, opts *common.ChatOptions, channel chan string) error
func (*Client) SetupFillEnvFileContent ¶
Click to show internal directories.
Click to hide internal directories.