changed the way images are passed

This commit is contained in:
2024-10-07 16:33:57 -04:00
parent 8e1001b5b7
commit b8dc1d1a96
3 changed files with 39 additions and 18 deletions

14
llm.go
View File

@@ -12,11 +12,17 @@ const (
RoleAssistant Role = "assistant"
)
type Image struct {
Base64 string
ContentType string
Url string
}
type Message struct {
Role Role
Name string
Text string
ImageBase64 string // ImageBase64 is the base64 string if the message contains an image, empty string otherwise.
Role Role
Name string
Text string
Images []Image
}
type Request struct {