chat-ui / src /lib /stores /errors.ts
nsarrazin's picture
nsarrazin HF staff
very basic rate limiter (#320)
922b1b2 unverified
import { writable } from "svelte/store";
export const ERROR_MESSAGES = {
default: "Oops, something went wrong.",
authOnly: "You have to be logged in.",
rateLimited: "You are sending too many messages. Try again later.",
};
export const error = writable<string | null>(null);