feat: enhance error handling for LLM API calls

Add LLM error alert functionality to display specific error messages based on API responses. Introduce new LlmErrorAlertType interface for structured error alerts. Update chat components to manage and display LLM error alerts effectively, improving user feedback during error scenarios.
This commit is contained in:
xKevIsDev
2025-07-03 11:43:58 +01:00
committed by Roamin
parent 590363cf6e
commit 26c46088bc
6 changed files with 256 additions and 25 deletions

View File

@@ -62,6 +62,15 @@ export interface DeployAlert {
source?: 'vercel' | 'netlify' | 'github';
}
export interface LlmErrorAlertType {
type: 'error' | 'warning';
title: string;
description: string;
content?: string;
provider?: string;
errorType?: 'authentication' | 'rate_limit' | 'quota' | 'network' | 'unknown';
}
export interface FileHistory {
originalContent: string;
lastModified: number;