Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRequest ¶
type ChatResponse ¶
type EmbeddingRequest ¶
type EmbeddingResponse ¶
type EmbeddingResponse struct {
Embedding []float64 `json:"embedding"`
}
type Message ¶
type Message struct { Role MessageRole `json:"role"` Content string `json:"content"` Images []MessageImage `json:"images,omitempty"` }
type MessageImage ¶
type MessageImage []byte
type MessageRole ¶
type MessageRole string
var ( MessageRoleSystem MessageRole = "system" MessageRoleUser MessageRole = "user" MessageRoleAssistant MessageRole = "assistant" )
type ModelRequest ¶
type ModelRequest struct {
Name string `json:"name"`
}
type PullRequest ¶
type PullResponse ¶
type PullResponse struct {
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.