Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client calls LocalAI's OpenAI-compatible specialist endpoints (transcription, vision description). baseURL is the LocalAI base, e.g. http://localhost:8080/v1.
func (*Client) Describe ¶
Describe turns an image into text by sending it to a vision model and returning the model's textual description.
It is the building block for the future Phase 2 `read_image` tool, which will let any agent (including a text-only one) pull an image into the conversation as model-generated text on demand. It is deliberately NOT wired into the attachment routing path: that path Blocks images on text-only models and nudges the user to switch to a vision model, rather than silently substituting a lossy AI-generated description for the actual image. (Audio, by contrast, auto-falls back to faithful transcription — see attachments.Route.) So Describe is intentionally ahead of its consumer in this branch.
func (*Client) DescribeVideo ¶
DescribeVideo turns a video into text by sending it to a video-capable model (via a native video_url content part) and returning the model's textual description. Mirrors Describe; it is the building block for the read_video tool. Empty model ⇒ LocalAI's default chat model (which must support video input).