config

package
v0.0.0-...-78730a9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Platform selection
	Platform string

	// GitHub related
	GithubToken string

	// GitLab related
	GitlabToken   string
	GitlabBaseURL string

	// Gitea related
	GiteaToken   string
	GiteaBaseURL string

	// Common Git platform settings
	TargetLabel string

	// Code indexing related
	EnableIndexing bool

	// OpenAI related
	OpenAIAPIKey      string
	OpenAIAPIEndpoint string
	Model             string
	Temperature       float32
	TopP              float32
	MaxTokens         int
	Language          string
	Prompt            string
	MaxPatchLength    int
	IgnorePatterns    []string
	IncludePatterns   []string
	IgnoreList        []string

	// Azure OpenAI related
	AzureAPIVersion string
	AzureDeployment string
	IsAzure         bool

	// Direct LLM Provider related
	DirectLLMEndpoint string
	DirectLLMModelID  string
	DirectLLMAPIKey   string
	DirectLLMType     string
	IsDirectLLM       bool

	// LLM Proxy related
	LLMProxyEndpoint string
	LLMProxyAPIKey   string

	// Claude model related
	ClaudeModelName string
	ClaudeMaxTokens int
	IsClaudeEnabled bool

	// Deepseek model related
	DeepseekModelName string
	IsDeepseekEnabled bool

	// Code indexing related
	IndexerStorageType string
	ChromaHost         string
	ChromaPort         int
	ChromaPath         string
	ChromaSSL          bool
	LocalStoragePath   string
	IndexerVectorType  string
}

Config holds all configuration for the application

func LoadConfig

func LoadConfig() *Config

LoadConfig loads configuration from environment variables

Jump to

Keyboard shortcuts

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