llm

package
v0.0.0-...-65ab5cd Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldUseCustomModels

func ShouldUseCustomModels() bool

Types

type LLMClient

type LLMClient struct {
	Type   LLMType
	APIKey string
}

func Instance

func Instance(config *engine.PluginConfig) *LLMClient

func (*LLMClient) Complete

func (c *LLMClient) Complete(prompt string, model LLMModel, receiverChan *chan string) (*string, error)

func (*LLMClient) GetSupportedModels

func (c *LLMClient) GetSupportedModels() ([]string, error)

type LLMModel

type LLMModel string

type LLMType

type LLMType string
const (
	Ollama_LLMType    LLMType = "Ollama"
	ChatGPT_LLMType   LLMType = "ChatGPT"
	Anthropic_LLMType LLMType = "Anthropic"
)

Jump to

Keyboard shortcuts

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