🤖 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.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
// diag:zh 与 en 的键必须一一对应(en 的类型由 zh 推出,少一个多一个都过不了类型检查)。
// 设置 → 故障排查:测试模型 / 测试代理的结果,以及可复制的诊断报告。
import type { Catalog } from "../types.js";
export const zh = {
// 测试模型
fetch_timeout: "超时({s} 秒内没有响应)",
no_endpoint: "没有配置端点地址",
no_model: "没有可用的模型:请先在 Modelflare 里选择默认模型",
no_content: "响应里没有 choices[0].message.content:{body}",
verdict_endpoint_ok: "端点正常",
verdict_endpoint_error: "端点出错:{error}",
verdict_both_ok: "内置网关与直连端点都正常",
verdict_gateway_ok: "内置网关正常",
verdict_direct_failed: "经内置网关正常,直连端点失败(网关可能用了别的线路或重试)",
verdict_gateway_broken: "端点本身正常,问题在内置网关",
verdict_gateway_failed_no_direct: "内置网关出错,未能直连对比",
verdict_both_failed: "端点本身出错({error}),内置网关也失败",
gateway_state: "{error}(内置网关状态:{state})",
gateway_state_error: "{error}(内置网关状态:{state},{lastError})",
skip_not_connected: "还没有连接 Modelflare",
skip_external: "外部端点模式:机器人直接调用该端点,不经内置网关",
// 测试代理
stage_queue: "消息队列",
stage_spawn: "启动代理进程",
stage_plugins: "加载插件",
stage_model: "调用模型",
stage_reply: "得到回复",
timeout_spawn: "代理进程 {s} 秒内没有完成启动(initialize 没有返回)",
timeout_plugins: "代理进程已启动,但 {s} 秒内没有发出模型请求",
timeout_model: "模型请求已发出,{s} 秒内上游没有响应",
timeout_reply: "模型已响应,但代理 {s} 秒内没有结束这一轮",
agent_off: "代理模式已关闭(AMB_AGENT=off),机器人只做纯对话",
no_runtime: "找不到代理运行时(DSH),机器人只能纯对话",
agent_no_model: "没有可用的模型:请先连接 Modelflare 并选择默认模型",
queue_idle: "没有正在处理的回合",
queue_busy: "{count} 轮对话正在处理(最长已 {s} 秒);同一会话的新消息会并入正在进行的回合(代理还没接手时排在后面)。卡住时用 /stop,或下面的\"重启代理进程\"",
spawn_waiting: "等待正在进行的启动(已 {s} 秒,阶段:{stage})",
spawn_initializing: "pid {pid},等待初始化…",
agent_exited: "代理进程退出(code={code}, signal={signal})",
agent_exited_stderr: "代理进程退出(code={code}, signal={signal});stderr:{stderr}",
plugins_missing: "模型请求里缺少插件提供的工具:{tools}",
plugins_tools: "{count} 个工具",
http_error: "HTTP {status}:{error}",
api_rejected: "({path} 被拒:{why};已改用 Chat Completions)",
already_running: "已在运行(pid {pid})",
no_request_seen: "(没有观察到模型请求)",
no_response_seen: "(没有观察到上游响应)",
no_text_reply: "回合结束了,但没有文字回复",
stage_now: ";当前阶段:{stage}",
stage_now_output: ";当前阶段:{stage};最近输出:{line}",
timeout: "超时",
// 诊断报告
report_title: "anymodel bot 诊断信息 · {at}",
report_version: "版本 {version} · {platform} {arch} · {os}{electron} · Node {node} · 运行 {uptime} 秒",
report_data_dir: "数据目录 {dir}",
report_log_file: "日志文件 {file}",
report_not_enabled_paren: "(未启用)",
report_default_model: "默认模型 {model}",
report_auto: "(自动)",
report_gateway_managed: "[模型网关] 内置 magpie · {state} · pid {pid} · 重启 {restarts} 次{lastExit}{lastError}",
report_gateway_external: "[模型网关] 外部端点 {url}",
report_last_exit: " · 上次退出 code={code} signal={signal}",
report_agent: "[代理] {enabled} · 运行时 {runtime}",
report_enabled: "已启用",
report_not_enabled: "未启用",
report_missing: "缺失",
report_host: "机器人 {id}: {state} · pid {pid} · 重启 {restarts} 次 · 进行中 {active}{lastExit}",
report_last_error: "最近错误:{error}",
report_model_test: "[测试模型] {at} · 模型 {model} · {verdict}",
report_via_gateway: "经内置网关",
report_direct: "直连端点",
report_probe_skipped: "{name}: 未测({reason})",
report_probe: "{name}: {result} · HTTP {status} · {ms} ms · {url}",
report_ok: "正常",
report_failed: "失败",
report_echoed: " · 回显模型 {model}",
report_reply: " · 回复 {reply}",
report_error: "错误:{error}",
report_agent_test: "[测试代理] {at} · 机器人 {bot} · 模型 {model} · {result} · {ms} ms",
report_passed: "通过",
report_not_passed: "未通过({stage})",
report_log_tail: "[最近 {count} 行日志]",
outboxLine: "[出站队列] 等待发送 {pending} 条(重试中 {retrying}){lastError}{held} · 最近 7 天没发出去 {gone} 条{lastGone}",
outboxLastError: " · 最近错误:{error}",
outboxHeld: " · 等对方发消息后再发 {n} 条",
outboxLastGone: " · 最近一次:{text}",
} satisfies Catalog;
export const en: Catalog<typeof zh> = {
fetch_timeout: "Timed out (no response within {s}s)",
no_endpoint: "No endpoint address configured",
no_model: "No model available: choose a default model in Modelflare first",
no_content: "No choices[0].message.content in the response: {body}",
verdict_endpoint_ok: "Endpoint OK",
verdict_endpoint_error: "Endpoint error: {error}",
verdict_both_ok: "Built-in gateway and direct endpoint both OK",
verdict_gateway_ok: "Built-in gateway OK",
verdict_direct_failed: "OK via the built-in gateway, but the direct endpoint failed (the gateway may have used another route or retried)",
verdict_gateway_broken: "The endpoint itself is fine; the problem is in the built-in gateway",
verdict_gateway_failed_no_direct: "The built-in gateway failed; couldn't compare with a direct call",
verdict_both_failed: "The endpoint itself failed ({error}), and so did the built-in gateway",
gateway_state: "{error} (built-in gateway state: {state})",
gateway_state_error: "{error} (built-in gateway state: {state}, {lastError})",
skip_not_connected: "Modelflare isn't connected yet",
skip_external: "External endpoint mode: bots call the endpoint directly, without the built-in gateway",
stage_queue: "Message queue",
stage_spawn: "Start agent process",
stage_plugins: "Load plugins",
stage_model: "Call model",
stage_reply: "Get reply",
timeout_spawn: "The agent process didn't finish starting within {s}s (initialize didn't return)",
timeout_plugins: "The agent process started, but sent no model request within {s}s",
timeout_model: "The model request was sent, but the upstream didn't respond within {s}s",
timeout_reply: "The model responded, but the agent didn't finish the turn within {s}s",
agent_off: "Agent mode is off (AMB_AGENT=off); bots are chat-only",
no_runtime: "Agent runtime (DSH) not found; bots can only chat",
agent_no_model: "No model available: connect Modelflare and choose a default model first",
queue_idle: "No turns in progress",
queue_busy: {
one: "{count} turn in progress (running for {s}s); new messages in the same conversation join it (or wait behind it until the agent picks it up). If it's stuck, use /stop or \"Restart agent process\" below",
other: "{count} turns in progress (longest running for {s}s); new messages in the same conversation join the turn in progress (or wait behind it until the agent picks it up). If they're stuck, use /stop or \"Restart agent process\" below",
},
spawn_waiting: "Waiting for a start already in progress ({s}s so far, stage: {stage})",
spawn_initializing: "pid {pid}, waiting for initialization…",
agent_exited: "Agent process exited (code={code}, signal={signal})",
agent_exited_stderr: "Agent process exited (code={code}, signal={signal}); stderr: {stderr}",
plugins_missing: "The model request is missing tools provided by plugins: {tools}",
plugins_tools: { one: "{count} tool", other: "{count} tools" },
http_error: "HTTP {status}: {error}",
api_rejected: " ({path} was rejected: {why}; switched to Chat Completions)",
already_running: "Already running (pid {pid})",
no_request_seen: "(no model request observed)",
no_response_seen: "(no upstream response observed)",
no_text_reply: "The turn ended without a text reply",
stage_now: "; current stage: {stage}",
stage_now_output: "; current stage: {stage}; latest output: {line}",
timeout: "Timed out",
report_title: "anymodel bot diagnostics · {at}",
report_version: "Version {version} · {platform} {arch} · {os}{electron} · Node {node} · up {uptime}s",
report_data_dir: "Data directory {dir}",
report_log_file: "Log file {file}",
report_not_enabled_paren: "(disabled)",
report_default_model: "Default model {model}",
report_auto: "(auto)",
report_gateway_managed: "[Model gateway] built-in magpie · {state} · pid {pid} · {restarts} restarts{lastExit}{lastError}",
report_gateway_external: "[Model gateway] external endpoint {url}",
report_last_exit: " · last exit code={code} signal={signal}",
report_agent: "[Agent] {enabled} · runtime {runtime}",
report_enabled: "enabled",
report_not_enabled: "disabled",
report_missing: "missing",
report_host: "Bot {id}: {state} · pid {pid} · {restarts} restarts · {active} active{lastExit}",
report_last_error: "Last error: {error}",
report_model_test: "[Test model] {at} · model {model} · {verdict}",
report_via_gateway: "Via built-in gateway",
report_direct: "Direct endpoint",
report_probe_skipped: "{name}: not tested ({reason})",
report_probe: "{name}: {result} · HTTP {status} · {ms} ms · {url}",
report_ok: "OK",
report_failed: "failed",
report_echoed: " · echoed model {model}",
report_reply: " · reply {reply}",
report_error: "Error: {error}",
report_agent_test: "[Test agent] {at} · bot {bot} · model {model} · {result} · {ms} ms",
report_passed: "passed",
report_not_passed: "failed ({stage})",
report_log_tail: { one: "[Last {count} log line]", other: "[Last {count} log lines]" },
outboxLine: "[Outbox] {pending} waiting to send ({retrying} retrying){lastError}{held} · {gone} not sent in the last 7 days{lastGone}",
outboxLastError: " · last error: {error}",
outboxHeld: " · {n} waiting until they message again",
outboxLastGone: " · most recent: {text}",
};