@beeuni/llm-catalog

中文文档
0.7.0发布于 2026/11/06Elastic-2.0TypeScriptES Module零依赖近 30 天下载 2264

The Beeuni LLM model catalog — the models the Beeuni gateway supports and the managed-model set and defaults. Generated from models.dev; consumed across the Beeuni platform and by the @beeuni/sdk.

原始使用文档
文档目录4 节
  1. Usage
  2. GPT-6 Astra
  3. Optional Morph routing
  4. License

@beeuni/llm-catalog

The Beeuni build-time compatibility catalog — managed-model constants and a bundled models.dev snapshot used by SDK/web releases and as the API's last-known fallback. Runtime gateway routing and the live served model catalog are owned by apps/api/src/llm-gateway; the standalone gateway does not depend on this package. This package is consumed by the API, web, and @beeuni/sdk.

It ships to npm in lockstep with the platform release version, so a given @beeuni/[email protected] always resolves @beeuni/[email protected].

Usage

import {
  CATALOG,
  MANAGED_MODELS,
  DEFAULT_MANAGED_MODEL_IDS,
  MANAGED_FLAGSHIP_MODEL_ID,
  PLATFORM_DEFAULT_MODEL_ID,
  getManagedModel,
  isManagedModelId,
} from '@beeuni/llm-catalog';
  • CATALOG — bundled provider/model snapshot used until the API refreshes from its configured catalog URL.
  • MANAGED_MODELS / getManagedModel / isManagedModelId — the managed model set.
  • DEFAULT_MANAGED_MODEL_IDS, MANAGED_FLAGSHIP_MODEL_ID — managed-model defaults.
  • PLATFORM_DEFAULT_MODEL_ID — the concrete platform fallback model.

GPT-6 Astra

Select GPT-6 Astra under Beeuni in the session model picker. Project owners can enable it in Models and select it as the project default. The managed model uses Beeuni credits through OpenRouter's OpenAI endpoint. The gateway model ID is gpt-6-astra; the OpenCode reference is beeuni/gpt-6-astra.

Astra supports image input, tool calls, and reasoning levels low, medium, high, xhigh, and max. Its context window is 1,050,000 tokens, with up to 128,000 output tokens. Temperature and none reasoning are unsupported.

The catalog includes Astra's standard and above-272,000-token pricing from OpenAI. The sandbox fallback carries the same capabilities when the live catalog is unavailable. The platform default is GPT-6 Sol. The managed lineup contains GPT-6 Astra and GPT-6 Sol; deployment gateway settings can override their routes.

Optional Morph routing

Models with a morphModelId use Morph as the primary managed provider when MORPH_API_KEY is configured. If Morph fails before response output starts, the gateway can fall back to the model's OpenRouter route. Without the Morph key, these models continue to use OpenRouter directly. usage.cost reported by OpenRouter is used for fallback billing; token-rate pricing is only a fallback when the upstream does not report a cost.

CATALOG is the bundled models.dev snapshot. It lives in src/catalog-data.ts, not in index.ts, so consumers that do not import it can avoid bundling the snapshot. MANAGED_MODELS contains the managed lineup.

License

Elastic-2.0.

版本与发布记录

@beeuni/llm-catalog 共发布 11 个版本,首次发布于 2026/10/11;过去 12 个月发布了 11 个版本。

版本发布日期距今
0.7.0latest2026/11/062 天前
0.6.22026/11/026 天前
0.6.12026/11/016 天前
0.6.02026/10/299 天前
0.5.02026/10/2613 天前
0.4.02026/10/2216 天前

关于 @beeuni/llm-catalog 的常见问题

@beeuni/llm-catalog 是什么?

The Beeuni LLM model catalog — the models the Beeuni gateway supports and the managed-model set and defaults. Generated from models.dev; consumed across the Beeuni platform and by the @beeuni/sdk.

如何安装 @beeuni/llm-catalog?

在项目目录运行 npm install @beeuni/llm-catalog,或使用 pnpm add / yarn add / bun add。

@beeuni/llm-catalog 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@beeuni/llm-catalog 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@beeuni/llm-catalog 可以商用吗?

@beeuni/llm-catalog 使用 Elastic-2.0 许可。声明的许可为 Elastic-2.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@beeuni/llm-catalog 的下载量有多少?

根据 npm 官方下载统计,@beeuni/llm-catalog 在 2026/10/08 – 2026/11/06 这 30 天内被下载 2,264 次,日均约 75 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@beeuni/llm-catalog 还在维护吗?

最新版本 0.7.0 发布于 2026/11/06(2 天前);至今共发布 11 个版本,其中过去 12 个月发布了 11 个;首次发布于 2026/10/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。