gemini

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider implements commitgen.Provider using the Google Gemini API.

func New

func New(model, apiKey, systemPrompt string) (*Provider, error)

New creates a new Gemini Provider. Returns an error if the API key or model is empty.

func (*Provider) Generate

func (p *Provider) Generate(ctx context.Context, prompt string) (string, error)

Generate sends the prompt to Gemini and returns the generated text.

Jump to

Keyboard shortcuts

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