@jeffusion/bungee-llms

中文文档
6.11.3发布于 2026/11/01MITTypeScriptCommonJS构建来源已验证

Extensible LLM adapters and protocol conversion package for Bungee

原始使用文档

@jeffusion/bungee-llms

Pure protocol sessions, canonical messages/tools, streaming state machines and token accounting for Bungee.

Gateway plugins consume llm-protocol-adapter public services. The adapter executes the codec locally in each worker; generation bodies never go through control RPC. Provider runtime abstractions remain available to other package consumers, but are not a second gateway conversion path.

import {createProtocolSession, describeProtocolConversion} from '@jeffusion/bungee-llms/plugin-api';
const session = createProtocolSession({sourceProtocol: 'responses', targetProtocol: 'chat_completions', model: 'model'});
const request = session.convertRequest({input: 'Hello'});
// Feed the target JSON response or parsed SSE events into the same session.
session.dispose();

The matrix has four passthrough pairs, eleven direct conversions and one rejected Gemini-to-Responses pair. Explicit reasoning controls require a verified wire policy. Tools, history and output constraints fail with a safe reason and param when their semantics cannot be preserved. See LLM Protocol Adapter.

版本与发布记录

@jeffusion/bungee-llms 共发布 97 个版本,首次发布于 2026/03/28;过去 12 个月发布了 97 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
6.11.3latest2026/11/012 天前
6.11.22026/11/012 天前
6.11.12026/11/012 天前
6.11.02026/11/012 天前
6.10.12026/10/313 天前
6.10.02026/10/313 天前

关于 @jeffusion/bungee-llms 的常见问题

@jeffusion/bungee-llms 是什么?

可扩展的LLM适配器和协议转换包蹦极

如何安装 @jeffusion/bungee-llms?

在项目目录运行 npm install @jeffusion/bungee-llms,或使用 pnpm add / yarn add / bun add。

@jeffusion/bungee-llms 支持 TypeScript 吗?

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

@jeffusion/bungee-llms 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@jeffusion/bungee-llms 可以商用吗?

@jeffusion/bungee-llms 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@jeffusion/bungee-llms 还在维护吗?

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