llms

package
v0.0.0-...-52a0336 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	// contains filtered or unexported fields
}

func NewGithub

func NewGithub(model string) *Github

func (*Github) GenerateContent

func (l *Github) GenerateContent(
	ctx context.Context,
	prompt, diff string,
	streamingFn func(ctx context.Context, chunk []byte) error,
) (string, error)

type Lingyi

type Lingyi struct {
	// contains filtered or unexported fields
}

func NewLingyi

func NewLingyi(model string) *Lingyi

func (*Lingyi) GenerateContent

func (l *Lingyi) GenerateContent(
	ctx context.Context,
	prompt, diff string,
	streamingFn func(ctx context.Context, chunk []byte) error,
) (string, error)

type Ollama

type Ollama struct {
	// contains filtered or unexported fields
}

func NewOllama

func NewOllama(model string) *Ollama

func (*Ollama) GenerateContent

func (o *Ollama) GenerateContent(
	ctx context.Context,
	prompt, diff string,
	streamingFn func(ctx context.Context, chunk []byte) error,
) (string, error)

Jump to

Keyboard shortcuts

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