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:
@@ -56,6 +56,7 @@ type MessageRequest struct {
|
|||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
FileIds []string `json:"file_ids,omitempty"` //nolint:revive // backwards-compatibility
|
FileIds []string `json:"file_ids,omitempty"` //nolint:revive // backwards-compatibility
|
||||||
Metadata map[string]any `json:"metadata,omitempty"`
|
Metadata map[string]any `json:"metadata,omitempty"`
|
||||||
|
Attachments []ThreadAttachment `json:"attachments,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MessageFile struct {
|
type MessageFile struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user