config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultModel

func DefaultModel(provider llm.ProviderName) string

DefaultModel returns the default model name for the given provider.

Types

type Config

type Config struct {
	Username        string
	GitHubTokens    []string
	PrivateToken    string
	Provider        llm.ProviderName
	Model           string
	OllamaHost      string
	APIKey          string
	UseVertexAI     bool
	VertexRegion    string
	VertexProjectID string
	OutputDir       string
	MaxRepos        int
	Exhaustive      bool
	Verbose         bool
}

Config holds all runtime configuration for devlica.

func (*Config) LoadFromEnv

func (c *Config) LoadFromEnv()

LoadFromEnv populates environment-dependent fields (tokens, keys, hosts).

func (*Config) Validate

func (c *Config) Validate() error

Validate checks that all required fields are set and consistent.

Jump to

Keyboard shortcuts

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