Support Attachments in MessageRequest (#890)

* add attachments in MessageRequest

* Move tools const to message

* remove const, just use assistanttool const
This commit is contained in:
Denny Depok
2024-11-08 20:54:27 +07:00
committed by GitHub
parent f5e6e0e4fe
commit 6d066bb12d

View File

@@ -56,6 +56,7 @@ type MessageRequest struct {
Content string `json:"content"`
FileIds []string `json:"file_ids,omitempty"` //nolint:revive // backwards-compatibility
Metadata map[string]any `json:"metadata,omitempty"`
Attachments []ThreadAttachment `json:"attachments,omitempty"`
}
type MessageFile struct {