Skip to content

armgit / Edge0

Public Imported from GitHub
0

Run 35B MoE models in ~2.5 GB of RAM. Weights stream from SSD; a trained router predicts loads a step ahead. Mac, iPhone, Android, Windows supported

Python
390 B
Raw Blame
import { errorNextKey, hasKnownError } from "../chat/errorMap";
import { downloadErrKey, hasDownloadErr } from "../models/errMap";

export function requestCodeKey(code: string | null | undefined): string {
  if (!code) return "service.log.noCode";
  if (hasKnownError(code)) return errorNextKey(code);
  if (hasDownloadErr(code)) return downloadErrKey(code);
  return "chat.err.generic";
}