provider

package
v0.0.0-...-d457d81 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenAIProvider

func NewOpenAIProvider(opts ...OpenAIOptions) llm.AIPrompt

func NewPhindProvider

func NewPhindProvider(opts ...PhindOptions) llm.AIPrompt

Types

type OpenAI

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

func (*OpenAI) Generate

func (p *OpenAI) Generate(ctx context.Context, systemPrompt, userPrompt string) ([]string, error)

type OpenAIOptions

type OpenAIOptions struct {
	ApiKey  string
	BaseURL string
	Model   string
}

type Phind

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

func (*Phind) Generate

func (p *Phind) Generate(ctx context.Context, systemPrompt, userPrompt string) ([]string, error)

type PhindOptions

type PhindOptions struct {
	BaseURL string
	Model   string
}

Jump to

Keyboard shortcuts

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