Documentation
¶
Index ¶
Constants ¶
View Source
const ( TokenMultiplier = 2.0 CustomHeader = "Analyze the following git diff with these instructions: " )
View Source
const ( SummaryCommand = "summarize" SummaryPrompt = `` /* 142-byte string literal not displayed */ ReviewCommand = "review" ReviewPrompt = `` /* 377-byte string literal not displayed */ CommitMsgCommand = "commitmsg" CommitMsgPrompt = `` /* 256-byte string literal not displayed */ CustomCommand = "custom" )
Variables ¶
View Source
var PromptMap = map[string]string{ SummaryCommand: SummaryPrompt, ReviewCommand: ReviewPrompt, CommitMsgCommand: CommitMsgPrompt, CustomCommand: "", }
Functions ¶
func AlpacaStream ¶
func AlpacaStream(config *types.PacaConfig, payload string, cmdArgs *types.CommandArguments) error
func CountTokens ¶
This is likely an overestimation of tokens - but that's fine.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.