Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.perplexity" PluginVersion = "v0.1.2" PluginPackage = "rtp-agent.plugins.perplexity" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PerplexityLLM ¶
type PerplexityLLM struct {
// contains filtered or unexported fields
}
func NewPerplexityLLM ¶
func NewPerplexityLLM(apiKey string, model string) *PerplexityLLM
func (*PerplexityLLM) BaseURL ¶
func (l *PerplexityLLM) BaseURL() string
func (*PerplexityLLM) Chat ¶
func (l *PerplexityLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
func (*PerplexityLLM) Model ¶
func (l *PerplexityLLM) Model() string
Click to show internal directories.
Click to hide internal directories.