okami.mom/albedo

git clone https://git.nkp.pet/okami.mom/albedo

nekomimi.petfeat: multiple images, collapsed pastes, and an attachment strip in the prompt6e82811

main
439 B21 linesraw
1package daemon
2
3type ImageMimeType string
4
5const (
6	ImagePNG  ImageMimeType = "image/png"
7	ImageJPEG ImageMimeType = "image/jpeg"
8	ImageWEBP ImageMimeType = "image/webp"
9)
10
11type ImageMetadata struct {
12	MimeType ImageMimeType `json:"mime_type"`
13	Width    int           `json:"width"`
14	Height   int           `json:"height"`
15	Bytes    int           `json:"bytes"`
16}
17
18type ImageAttachment struct {
19	Data string `json:"data"`
20	ImageMetadata
21}