feat: implement image upload and multimodal support
- Added functionality for image uploads in chat, allowing users to attach images for multimodal Q&A. - Enhanced the input field to handle image selection via drag-and-drop and paste, with validation for file types and sizes. - Updated the backend to process images alongside text queries, including support for image analysis. - Introduced new UI components for image previews and management, improving user interaction with uploaded content. - Added localization strings for image upload features and error messages, enhancing accessibility for users in multiple languages. These changes significantly improve the chat experience by enabling users to incorporate images into their queries, facilitating richer interactions and responses.
This commit is contained in:
@@ -22,6 +22,8 @@ type Handler struct {
|
||||
customAgentService interfaces.CustomAgentService // Service for managing custom agents
|
||||
tenantService interfaces.TenantService // Service for loading tenant (shared agent context)
|
||||
agentShareService interfaces.AgentShareService // Service for resolving shared agents (KB scope in retrieval)
|
||||
fileService interfaces.FileService // Service for file storage (image uploads)
|
||||
modelService interfaces.ModelService // Service for model management (VLM access)
|
||||
}
|
||||
|
||||
// NewHandler creates a new instance of Handler with all necessary dependencies
|
||||
@@ -34,6 +36,8 @@ func NewHandler(
|
||||
customAgentService interfaces.CustomAgentService,
|
||||
tenantService interfaces.TenantService,
|
||||
agentShareService interfaces.AgentShareService,
|
||||
fileService interfaces.FileService,
|
||||
modelService interfaces.ModelService,
|
||||
) *Handler {
|
||||
return &Handler{
|
||||
sessionService: sessionService,
|
||||
@@ -44,6 +48,8 @@ func NewHandler(
|
||||
customAgentService: customAgentService,
|
||||
tenantService: tenantService,
|
||||
agentShareService: agentShareService,
|
||||
fileService: fileService,
|
||||
modelService: modelService,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user