Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAIClient ¶
type OpenAIClient struct {
ai.BaseAIClient
// contains filtered or unexported fields
}
func NewOpenAIClient ¶
func NewOpenAIClient(key, model string) *OpenAIClient
func (*OpenAIClient) GetCommitMessage ¶
func (*OpenAIClient) MaybeSummarizeDiff ¶
func (oc *OpenAIClient) MaybeSummarizeDiff(diff string, maxLength int) (string, bool)
func (*OpenAIClient) SanitizeResponse ¶
func (oc *OpenAIClient) SanitizeResponse(message, commitType string) string
Click to show internal directories.
Click to hide internal directories.