changed the way images are passed
This commit is contained in:
14
llm.go
14
llm.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user