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 ¶
IsAIEnabled returns true if AI is enabled and at least one API key or base URL is configured.
Click to show internal directories.
Click to hide internal directories.