Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericProvider ¶
type GenericProvider struct {
// contains filtered or unexported fields
}
GenericProvider implements the AIProvider interface for OpenAI-compatible APIs
func NewGenericProvider ¶
func NewGenericProvider(apiKey, proxy, url, provider string) (*GenericProvider, error)
NewGenericProvider creates a new provider for OpenAI-compatible APIs
func (*GenericProvider) GenerateCommitMessage ¶
func (p *GenericProvider) GenerateCommitMessage(ctx context.Context, diff string, opts ai.MessageOptions) (string, error)
GenerateCommitMessage generates a commit message using the API
Click to show internal directories.
Click to hide internal directories.