mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
fix junk indentation
This commit is contained in:
1 parent
a474cd8cee
commit
f8350e1d62
1 file changed
+21
-21
+21
-21
@@ -46,16 +46,16 @@ export function Quilly({ error, onDismiss, onNewChat, onOpenModelSelector, onReq
|
||||
const renderBody = (error: Error): ErrorBody => {
|
||||
// Handle Project Preview Console Errors
|
||||
if (error instanceof ProjectPreviewConsoleError) {
|
||||
return {
|
||||
message: 'I noticed some console errors in your project preview. Would you like me to take a look and help fix them?',
|
||||
actions: [{
|
||||
label: 'Help fix errors',
|
||||
onClick: () => {
|
||||
onRequestConsoleErrorHelp?.(error);
|
||||
onDismiss();
|
||||
},
|
||||
}],
|
||||
};
|
||||
return {
|
||||
message: 'I noticed some console errors in your project preview. Would you like me to take a look and help fix them?',
|
||||
actions: [{
|
||||
label: 'Help fix errors',
|
||||
onClick: () => {
|
||||
onRequestConsoleErrorHelp?.(error);
|
||||
onDismiss();
|
||||
},
|
||||
}],
|
||||
};
|
||||
}
|
||||
|
||||
// Handle OpenAI API errors with specific error codes
|
||||
@@ -118,17 +118,17 @@ export function Quilly({ error, onDismiss, onNewChat, onOpenModelSelector, onReq
|
||||
}],
|
||||
};
|
||||
|
||||
case 'key_limit_exceeded':
|
||||
return {
|
||||
message: `It seems your API key has been used up. Check your API provider's settings, or try a different API key or different provider/model combo:`,
|
||||
actions: [{
|
||||
label: 'Check API settings',
|
||||
onClick: () => navigate('/settings/ai'),
|
||||
}, {
|
||||
label: 'Change model',
|
||||
onClick: onOpenModelSelector,
|
||||
}],
|
||||
};
|
||||
case 'key_limit_exceeded':
|
||||
return {
|
||||
message: `It seems your API key has been used up. Check your API provider's settings, or try a different API key or different provider/model combo:`,
|
||||
actions: [{
|
||||
label: 'Check API settings',
|
||||
onClick: () => navigate('/settings/ai'),
|
||||
}, {
|
||||
label: 'Change model',
|
||||
onClick: onOpenModelSelector,
|
||||
}],
|
||||
};
|
||||
|
||||
case 'bad_request':
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user