Documentation
¶
Index ¶
- Constants
- Variables
- func BuildSelectionPrompt(description string, tree string, candidates []*scanner.TreeEntry) string
- func ClientFromConfig(cfg config.Config, selection config.AISelection) (Client, Provider, error)
- func ParseDecisionIDs(response string, validIDs map[int]struct{}) ([]int, error)
- func RequireDecisions(ids []int) error
- func ValidIDSet(ids []int) map[int]struct{}
- type Client
- type Message
- type Provider
Constants ¶
View Source
const SystemPrompt = `` /* 719-byte string literal not displayed */
Variables ¶
View Source
var Providers = map[string]Provider{ "openai": { Key: "openai", DisplayName: "OpenAI", BaseURL: "https://api.openai.com/v1", APIKeyEnv: "OPENAI_API_KEY", RequiresKey: true, }, "openrouter": { Key: "openrouter", DisplayName: "OpenRouter", BaseURL: "https://openrouter.ai/api/v1", APIKeyEnv: "OPENROUTER_API_KEY", RequiresKey: true, }, "ollama": { Key: "ollama", DisplayName: "Ollama", BaseURL: "http://localhost:11434/v1", RequiresKey: false, }, }
Functions ¶
func BuildSelectionPrompt ¶
func ClientFromConfig ¶
func ParseDecisionIDs ¶
func RequireDecisions ¶
func ValidIDSet ¶
Types ¶
type Client ¶
func (Client) ChatCompletion ¶
Click to show internal directories.
Click to hide internal directories.