Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config = internalvision.Config
Config configures a Transcriber: Model, an optional model.Registry (defaults to model.Global), and Timeout.
type LLMCaller ¶
type LLMCaller = internalvision.LLMCaller
LLMCaller is the minimal interface Transcriber needs to call the provider API - normally satisfied by *providers.Client, but defined as an interface so a caller can supply anything with a matching CreateMessage method (or a fake, for tests).
type Transcriber ¶
type Transcriber = internalvision.Transcriber
Transcriber sends a rendered PDF page image to a vision-capable LLM and returns its transcription - see internal/pdfsmart/vision's package doc for the rationale and pdfsmart.VisionTranscriber for the interface it implements.
func New ¶
func New(caller LLMCaller, cfg Config) *Transcriber
New creates a Transcriber. caller is normally the same *providers.Client already used elsewhere for chat completions.