feat(chat): files upload over HTTP before the prompt, up to 100 MiB each
This commit is contained in:
@@ -325,6 +325,9 @@ type ChatAttachment struct {
|
||||
Name string `json:"name"`
|
||||
Mime string `json:"mime,omitempty"`
|
||||
Data string `json:"data"`
|
||||
// Upload names a file already sent through POST /chat-uploads; Data is
|
||||
// then empty. Large files take this route instead of the websocket.
|
||||
Upload string `json:"upload,omitempty"`
|
||||
}
|
||||
|
||||
// ChatMessage is one stored turn returned by chat_messages. A user turn is a
|
||||
|
||||
Reference in New Issue
Block a user