feat: Improved IPC image handling and added vision model support.
- Improved IPC image handling to return mime type and base64 encoded data alongside the image data. - Updated type definition for `base64` method in image object to return an object with mime, base64, and data properties. - Added support for vision models using new function and regex. - Table cell size has been reduced on the FilesPage component. - Added support for vision model attachments. - Added model dependency to AttachmentButton component. - Implemented new functionality to handle image messages in the GeminiProvider class. - Update image base64 encoding to directly use API response data.
This commit is contained in:
Vendored
+1
-1
@@ -31,7 +31,7 @@ declare global {
|
||||
all: () => Promise<FileMetadata[]>
|
||||
}
|
||||
image: {
|
||||
base64: (filePath: string) => Promise<string>
|
||||
base64: (filePath: string) => Promise<{ mime: string; base64: string; data: string }>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user