Help us shape the future of Go! Take the 2026 Go Developer Survey

llm

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIKeyEnvVar

func APIKeyEnvVar(model string) string

APIKeyEnvVar names the environment variable holding the API key for model's provider.

func CallLLM

func CallLLM(commitMsg string, evidence []models.AuditEvidence, apiKey, model, apiBase string) (models.LLMResult, error)

func RequiresAPIKey

func RequiresAPIKey(model string) bool

RequiresAPIKey reports whether auditing with model needs an explicit API key. The Anthropic SDK resolves credentials itself (ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, an `ant auth login` profile, workload identity), so an empty key is not by itself a missing credential for Claude models.

Types

This section is empty.

Jump to

Keyboard shortcuts

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