add image support to the chat api (#1490)

This commit is contained in:
Patrick Devine
2023-12-12 13:28:58 -08:00
committed by GitHub
parent 4251b342de
commit d9e60f634b
3 changed files with 14 additions and 10 deletions

View File

@@ -57,8 +57,9 @@ type ChatRequest struct {
}
type Message struct {
Role string `json:"role"` // one of ["system", "user", "assistant"]
Content string `json:"content"`
Role string `json:"role"` // one of ["system", "user", "assistant"]
Content string `json:"content"`
Images []ImageData `json:"images, omitempty"`
}
type ChatResponse struct {