Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Choice ¶
type Choice struct { FinishReason string `json:"finish_reason"` Message RespMessage `json:"message"` }
type ImagePayload ¶
type ImagePayload struct {
URL string `json:"url"`
}
type Message ¶
type Message struct { Role string `json:"role"` Content []MessageContent `json:"content"` }
type MessageContent ¶
type MessageContent struct { Type string `json:"type"` Text string `json:"text,omitempty"` ImageURL ImagePayload `json:"image_url,omitempty"` }
type OpenAIOCR ¶
type OpenAIOCR struct { openai.OpenAIConfig `mapstructure:",squash"` Prompt string MaxTokens *int Concurrency int }
type RespMessage ¶
type RespMessage struct {
Content string `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.