Documentation
¶
Index ¶
Constants ¶
View Source
const ( EndpointDeepSeek = "https://api.deepseek.com" EndpointOpenRouter = "https://openrouter.ai/api/v1" EndpointOpenAI = "https://api.openai.com/v1" EndpointGemini = "https://generativelanguage.googleapis.com/v1beta/openai/" EndpointOllama = "http://localhost:11434/v1" )
API Endpoints
Variables ¶
View Source
var ErrNoAPIKey = errors.New("no valid API key found")
ErrNoAPIKey is returned when no valid API key is found for LLM parsing.
Functions ¶
This section is empty.
Types ¶
type BackendConfig ¶ added in v2.10.0
type Converter ¶
type Converter interface {
// Convert takes raw text pages and returns a single Markdown string.
Convert(ctx context.Context, pages []string) (string, error)
// Name returns the backend name for logging (e.g. "gemini", "openrouter", "deepseek").
Name() string
}
Converter converts raw PDF page text into structured Markdown via an LLM.
Click to show internal directories.
Click to hide internal directories.