phind

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 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 PhindClient

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

func NewPhindClient

func NewPhindClient(token, model string) *PhindClient

func (*PhindClient) GetCommitMessage

func (p *PhindClient) GetCommitMessage(ctx context.Context, prompt string) (string, error)

func (*PhindClient) MaybeSummarizeDiff

func (p *PhindClient) MaybeSummarizeDiff(diff string, maxLength int) (string, bool)

func (*PhindClient) ProviderName

func (p *PhindClient) ProviderName() string

func (*PhindClient) SanitizeResponse

func (p *PhindClient) SanitizeResponse(message, commitType string) string

Jump to

Keyboard shortcuts

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