alpaca

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 7 Imported by: 0

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

Functions

func AlpacaStream

func AlpacaStream(config *types.PacaConfig, payload string, cmdArgs *types.CommandArguments) error

func CountTokens

func CountTokens(text string) int

This is likely an overestimation of tokens - but that's fine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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