google

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "google"

Variables

This section is empty.

Functions

func NewGoogleProClient

func NewGoogleProClient(ctx context.Context, apiKey string, modelName string, baseURL string) (*genai.GenerativeModel, error)

Types

type GoogleClient

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

func NewClient

func NewClient(provider string, client *genai.GenerativeModel) *GoogleClient

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

SanitizeResponse cleans Google specific responses if needed. Overrides default.

Jump to

Keyboard shortcuts

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