Documentation
¶
Index ¶
- type Client
- func (c *Client) AddSetupQuestion(text string, isSensitive bool) *plugins.SetupQuestion
- func (c *Client) Configure() error
- func (c *Client) GetEnvNamePrefix() string
- func (c *Client) GetName() string
- func (c *Client) GetSetupQuestions() []*plugins.SetupQuestion
- func (c *Client) ListModels(_ context.Context) ([]string, error)
- func (c *Client) NeedsRawMode(modelName string) bool
- func (c *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, ...) (string, error)
- func (c *Client) SendStream(_ context.Context, msgs []*chat.ChatCompletionMessage, ...) error
- func (c *Client) Setup() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*plugins.PluginBase
APIKey *plugins.SetupQuestion
// contains filtered or unexported fields
}
func (*Client) AddSetupQuestion ¶
func (c *Client) AddSetupQuestion(text string, isSensitive bool) *plugins.SetupQuestion
AddSetupQuestion adds a setup question to the plugin. This is a helper method, usually called from NewClient.
func (*Client) GetEnvNamePrefix ¶
GetEnvNamePrefix returns the environment variable prefix for the plugin. Corrected: Receiver name
func (*Client) GetSetupQuestions ¶
func (c *Client) GetSetupQuestions() []*plugins.SetupQuestion
GetSetupQuestions returns the setup questions for the plugin. Corrected: Return the slice of setup questions from PluginBase
func (*Client) NeedsRawMode ¶
func (*Client) Send ¶
func (c *Client) Send(ctx 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
Click to show internal directories.
Click to hide internal directories.