Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

832 B
Raw Blame
// 官网的 Bot 目录:内容来自 bots/*/bot.json,由 scripts/sync-from-app.ts 同步到 data/catalog-bots.json。
import data from "../data/catalog-bots.json";
import type { Lang } from "../i18n";

type Localized<T> = Record<string, T>;
export interface CatalogBot {
  id: string;
  avatar: string;
  name: Localized<string>;
  summary: Localized<string>;
  about: Localized<string[]>;
  starters: Localized<string[]>;
}
export const catalogBots = data as CatalogBot[];

const CODE: Record<Lang, string> = { zh: "zh-CN", en: "en", ja: "ja", ko: "ko", ru: "ru" };
/** 五种语言都有;万一缺了退回英文,和 App 的规则一样 */
export const textOf = <T>(field: Localized<T>, lang: Lang): T => field[CODE[lang]] ?? field.en;
export const stillOf = (bot: CatalogBot): string => `/bot-stills/${bot.avatar}.webp`;