Documentation ¶
Index ¶
- func IsCopilotInstalled() bool
- type Anthropic
- type AnythingLLM
- type Copilot
- type Mistral
- type Model
- func NewAnthropic(opts []anthropic.Option) (Model, error)
- func NewAnythingLLM(baseURL, token, workspace string) (Model, error)
- func NewCopilot() (Model, error)
- func NewMistral(opts []mistral.Option) (Model, error)
- func NewOllama(opts []ollama.Option) (Model, error)
- func NewOpenAI(opts []openai.Option) (Model, error)
- type Ollama
- type OpenAI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCopilotInstalled ¶
func IsCopilotInstalled() bool
Types ¶
type Anthropic ¶
type Anthropic struct {
// contains filtered or unexported fields
}
func (*Anthropic) GenerateContent ¶
func (o *Anthropic) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
type AnythingLLM ¶
type AnythingLLM struct {
// contains filtered or unexported fields
}
func (*AnythingLLM) Call ¶
func (a *AnythingLLM) Call(ctx context.Context, prompt string, options ...llms.CallOption) (string, error)
func (*AnythingLLM) Close ¶
func (a *AnythingLLM) Close() error
func (*AnythingLLM) GenerateContent ¶
func (a *AnythingLLM) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
type Copilot ¶
type Copilot struct{}
func (*Copilot) GenerateContent ¶
func (c *Copilot) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
type Mistral ¶
type Mistral struct {
// contains filtered or unexported fields
}
func (*Mistral) GenerateContent ¶
func (o *Mistral) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
type Ollama ¶
type Ollama struct {
// contains filtered or unexported fields
}
func (*Ollama) GenerateContent ¶
func (o *Ollama) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
type OpenAI ¶
type OpenAI struct {
// contains filtered or unexported fields
}
func (*OpenAI) GenerateContent ¶
func (o *OpenAI) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
Click to show internal directories.
Click to hide internal directories.