perplexity

package
v1.4.356 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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() ([]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(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan string) 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