Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssembleCommitMessage ¶
func AssembleCommitMessage(resp CommitMessageResponse) string
func BuildResponseFormat ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GenerateCommitMessage ¶
func (*Client) IsStructuredOutput ¶
type CommitMessageResponse ¶
type CommitMessageResponse struct {
ChangesSummary string `json:"changes_summary"`
IntroducesNewBehavior bool `json:"introduces_new_behavior"`
FixesBrokenBehavior bool `json:"fixes_broken_behavior"`
RestructuresOnly bool `json:"restructures_only"`
TypeReasoning string `json:"type_reasoning"`
Type string `json:"type"`
Scope string `json:"scope"`
Description string `json:"description"`
BulletPoints []string `json:"bullet_points"`
}
func ParseCommitMessageJSON ¶
func ParseCommitMessageJSON(raw string) (CommitMessageResponse, error)
type ModelFamily ¶
type ModelFamily int
const ( ModelFamilyStandard ModelFamily = iota ModelFamilyReasoning ModelFamilyGPT5 )
func DetectModelFamily ¶
func DetectModelFamily(model string) ModelFamily
Click to show internal directories.
Click to hide internal directories.