perplexity

package
v1.4.452 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 NewClient

func NewClient() *Client

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) Configure

func (c *Client) Configure() error

func (*Client) GetEnvNamePrefix

func (c *Client) GetEnvNamePrefix() string

GetEnvNamePrefix returns the environment variable prefix for the plugin. Corrected: Receiver name

func (*Client) GetName

func (c *Client) GetName() string

GetName returns the name of the plugin.

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) ListModels

func (c *Client) ListModels(_ context.Context) ([]string, error)

func (*Client) NeedsRawMode

func (c *Client) NeedsRawMode(modelName string) bool

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

func (*Client) Setup

func (c *Client) Setup() error

Setup is called by the fabric CLI framework to guide the user through configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL