send empty messages on last chat response (#1530)

This commit is contained in:
Bruce MacDonald
2023-12-18 14:23:38 -05:00
committed by GitHub
parent 3948c6ea06
commit d99fa6ce0a
2 changed files with 6 additions and 10 deletions

View File

@@ -59,13 +59,13 @@ type ChatRequest struct {
type Message struct {
Role string `json:"role"` // one of ["system", "user", "assistant"]
Content string `json:"content"`
Images []ImageData `json:"images, omitempty"`
Images []ImageData `json:"images,omitempty"`
}
type ChatResponse struct {
Model string `json:"model"`
CreatedAt time.Time `json:"created_at"`
Message *Message `json:"message,omitempty"`
Message Message `json:"message"`
Done bool `json:"done"`