ai

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 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 AI

type AI interface {
	GenerateCommitMessage(prompt string) (string, error)
}

func GetBackend

func GetBackend(name string, apiKey string, model ...string) AI

type GeminiBackend

type GeminiBackend struct {
	Model  string
	ApiKey string
}

func (*GeminiBackend) GenerateCommitMessage

func (o *GeminiBackend) GenerateCommitMessage(prompt string) (string, error)

type OllamaBackend

type OllamaBackend struct {
	Model string
}

func (*OllamaBackend) GenerateCommitMessage

func (o *OllamaBackend) GenerateCommitMessage(prompt string) (string, error)

type OpenAIBackend

type OpenAIBackend struct {
	ApiKey string
	Model  string
}

func (*OpenAIBackend) GenerateCommitMessage

func (o *OpenAIBackend) GenerateCommitMessage(prompt string) (string, error)

Jump to

Keyboard shortcuts

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