Something went wrong. Try again.
ATProto-based AI Assistant Chat interface.
Something went wrong. Try again.
1234567/** The server's message from a failed response, or a line naming its status. */export async function errorMessage(res: Response): Promise<string> { // Error bodies from a proxy may not be JSON. const body = (await res.json().catch(() => ({}))) as { message?: string; error?: string } return body.message ?? body.error ?? `Request failed with ${res.status}`}