chat-ui / src /lib /stores /errors.ts
nsarrazin's picture
nsarrazin HF staff
very basic rate limiter (#320)
922b1b2 unverified
raw
history blame
280 Bytes
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);