- Updated chat API to accept an array of content parts (text and images) in addition to plain text.
- Modified content validation to ensure at least one part is provided.
- Enhanced message processing to handle image data and convert it to a suitable format for the chat engine.
- Added utility functions for extracting text from parts and normalizing content input.
- Updated model response to include the type of model used.
- Improved error handling in the chat engine stream response.
- Updated agent configuration page to include a title generation model for guest users.
- Added a new preferences page for users to set their preferred LLM model.
- Implemented loading and saving functionality for user preferences.
- Introduced new API endpoints for guest users to access models and system prompts.
- Enhanced model loading logic to accommodate guest users and their default models.
- Improved error handling and user feedback for model saving operations.
- Added search tool executor with support for Bing, Baidu, and Google.
- Implemented parsing logic for search results from different engines.
- Updated session management to utilize user-specific model preferences.