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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user