mirror of
https://github.com/Nikhil-Doye/workflow-builder.git
synced 2026-07-22 02:01:56 +02:00
dc146df77d
- Introduced apiErrorHandler module for structured error management in API calls, including timeout handling, retries, and response validation. - Implemented safeAPICall function to wrap API calls with error handling and retry logic. - Enhanced existing services (openaiService, embeddingProcessor, llmProcessor) to utilize the new error handling utilities, improving robustness and user feedback. - Added validation functions for OpenAI-like responses and embedding responses to ensure data integrity. - Improved error logging and user-friendly messages for better debugging and user experience.