Versions in this module Expand all Collapse all v0 v0.6.9 Oct 29, 2024 Changes in this version + type Choice struct + FinishReason string + Message RespMessage + type ImagePayload struct + URL string + type Message struct + Content []MessageContent + Role string + type MessageContent struct + ImageURL ImagePayload + Text string + Type string + type OpenAIOCR struct + Concurrency int + MaxTokens *int + Prompt string + func (o *OpenAIOCR) Load(ctx context.Context, reader io.Reader) ([]vs.Document, error) + type Payload struct + MaxTokens int + Messages []Message + Model string + type RespMessage struct + Content string + type Response struct + Choices []Choice