feat: add vision support validation for image processing

- Introduced a new method in ProviderFactory to check if a model supports vision/image input.
- Updated AgentService and AutoModeService to validate vision support before processing images, throwing an error if the model does not support it.
- Enhanced error messages to guide users on switching models or removing images if necessary.

These changes improve the robustness of image processing by ensuring compatibility with the selected models.
This commit is contained in:
DhanushSantosh
2026-01-07 20:12:39 +05:30
parent 92195340c6
commit fe305bbc81
4 changed files with 51 additions and 2 deletions

View File

@@ -179,8 +179,7 @@ describe('validation-storage.ts', () => {
});
it('should return false for validation exactly at 24 hours', () => {
const exactDate = new Date();
exactDate.setHours(exactDate.getHours() - 24);
const exactDate = new Date(Date.now() - 24 * 60 * 60 * 1000 + 100);
const validation = createMockValidation({
validatedAt: exactDate.toISOString(),