feat: add sponsor option on error

This commit is contained in:
zaidmukaddam 2024-08-13 22:16:57 +05:30
parent 0d49b6b3ce
commit 3cbb919928

View File

@ -125,7 +125,13 @@ export default function Home() {
},
onError: (error) => {
console.error("Chat error:", error);
toast.error("An error occurred. Please try again.");
toast.error("An error occurred.", {
description: " We must have ran out of credits. Sponsor us on GitHub to keep this service running.",
action: {
label: "Sponsor",
onClick: () => window.open("https://git.new/mplx", "_blank"),
},
});
},
});