llmconfig

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderConfig

type ProviderConfig struct {
	Provider string
	Model    string
	APIKey   string
}

ProviderConfig holds the resolved LLM provider, model, and API key.

func Resolve

func Resolve() *ProviderConfig

Resolve returns the LLM provider configuration by checking environment variables in order: ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY. The first key found wins. Returns nil if no API key is set.

Jump to

Keyboard shortcuts

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