Help us shape the future of Go! Take the 2026 Go Developer Survey

google

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "google"

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleClient

type GoogleClient struct {
	ai.BaseAIClient
	// contains filtered or unexported fields
}

func NewGoogleClient added in v0.11.0

func NewGoogleClient(ctx context.Context, provider, apiKey, model, baseURL string) (*GoogleClient, error)

func (*GoogleClient) GetCommitMessage

func (gc *GoogleClient) GetCommitMessage(ctx context.Context, prompt string) (string, error)

func (*GoogleClient) MaybeSummarizeDiff

func (gc *GoogleClient) MaybeSummarizeDiff(diff string, maxLength int) (string, bool)

func (*GoogleClient) SanitizeResponse

func (gc *GoogleClient) SanitizeResponse(message, commitType string) string

Jump to

Keyboard shortcuts

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