ai

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeminiProvider

type GeminiProvider struct {
	ApiKey  string
	Model   string
	Client  *http.Client
	History []geminiContent
}

func (*GeminiProvider) Name

func (g *GeminiProvider) Name() string

func (*GeminiProvider) Reset

func (g *GeminiProvider) Reset()

func (*GeminiProvider) Send

func (g *GeminiProvider) Send(prompt string) (string, error)

type OllamaProvider

type OllamaProvider struct {
	BaseURL string
	Model   string
	Client  *http.Client
	History []ollamaMessage
}

func (*OllamaProvider) Name

func (o *OllamaProvider) Name() string

func (*OllamaProvider) Reset

func (o *OllamaProvider) Reset()

func (*OllamaProvider) Send

func (o *OllamaProvider) Send(prompt string) (string, error)

type Provider

type Provider interface {
	Send(prompt string) (string, error)
	Name() string
	Reset()
}

func CreateProvider

func CreateProvider(pType, modelName string) (Provider, error)

func NewProvider

func NewProvider() (Provider, error)

Jump to

Keyboard shortcuts

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