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:
@@ -52,10 +52,11 @@ type ImageFile struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type MessageRequest struct {
|
type MessageRequest struct {
|
||||||
Role string `json:"role"`
|
Role string `json:"role"`
|
||||||
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