feat(chat): files upload over HTTP before the prompt, up to 100 MiB each

This commit is contained in:
2026-10-23 21:25:41 +01:00
parent 39a68a00b3
commit e507f554c3
17 changed files with 634 additions and 74 deletions
+3
View File
@@ -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