profile

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	AIDeepSeekAPIKey     string
	AIEmbeddingModel     string
	TikaServerURL        string
	UNIXSock             string
	Mode                 string
	DSN                  string
	Driver               string
	Version              string
	InstanceURL          string
	OCRLanguages         string
	AIEmbeddingProvider  string
	AILLMProvider        string
	Addr                 string
	TessdataPath         string
	Data                 string
	AIDeepSeekBaseURL    string
	AIOpenAIAPIKey       string
	AIOpenAIBaseURL      string
	AIOllamaBaseURL      string
	AISiliconFlowAPIKey  string
	AIRerankModel        string
	AILLMModel           string
	TesseractPath        string
	AISiliconFlowBaseURL string
	Port                 int
	OCREnabled           bool
	TextExtractEnabled   bool
	AIEnabled            bool
}

Profile is the configuration to start main server.

func (*Profile) FromEnv

func (p *Profile) FromEnv()

FromEnv loads configuration from environment variables. Supports both DIVINESENSE_* (new) and MEMOS_* (legacy) prefixes.

func (*Profile) IsAIEnabled

func (p *Profile) IsAIEnabled() bool

IsAIEnabled returns true if AI is enabled and at least one API key or base URL is configured.

func (*Profile) IsDev

func (p *Profile) IsDev() bool

func (*Profile) Validate

func (p *Profile) Validate() error

Jump to

Keyboard shortcuts

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