mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
offer the user two routes forward when their keys run dry
This commit is contained in:
1 parent
4ce51b3659
commit
5a5bec28c4
1 file changed
+11
-5
@@ -118,11 +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: [],
|
||||
};
|
||||
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