Patch Changes
-
#77
beaa8fb
Thanks @omeraplak! - API & Providers: Standardized message content format for array inputs.- The API (
/text
,/stream
,/object
,/stream-object
endpoints) now strictly expects thecontent
field within message objects (wheninput
is an array) to be either astring
or anArray
of content parts (e.g.,[{ type: 'text', text: '...' }]
). - The previous behavior of allowing a single content object (e.g.,
{ type: 'text', ... }
) directly as the value forcontent
in message arrays is no longer supported in the API schema. Raw string inputs remain unchanged. - Provider logic (
google-ai
,groq-ai
,xsai
) updated to align with this stricter definition.
Console:
- Added file and image upload functionality to the Assistant Chat. Users can now attach multiple files/images via a button, preview attachments, and send them along with text messages.
- Improved the Assistant Chat resizing: Replaced size toggle buttons with a draggable handle (top-left corner).
- Chat window dimensions are now saved to local storage and restored on reload.
Internal:
- Added comprehensive test suites for Groq and XsAI providers.
- The API (
-
Updated dependencies [
beaa8fb
]:- @voltagent/core@0.1.10
- @voltagent/xsai@0.1.4