[feat] 在模型供应商模板中加入 OpenLLM
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- json, typescript
- 領域
- ai
調査の方向性
First the maintainer has to say yes: the issue is a request to accept a third-party provider, and the author has offered to open the PR themselves, so check for a reply before touching anything. If accepted, read config/provider-templates.json and config/provider-templates-cn.json and copy the shape of the existing openrouter and ollama entries, adding a openllm entry with baseURL https://www.openllm.sh/v1 and apiKeyUrl https://www.openllm.sh in both files. Done means both files carry the same entry and the provider appears in the app's provider picker with a working icon.
索引モデルが issue の本文から書いたものです。
説明
描述你的建议
我是 Jonathan,OpenLLM (https://www.openllm.sh) 的创始人之一。
OpenLLM 把你自己的 API Key、OAuth 订阅账号和本地模型放到同一个端点后面。可以在本机运行,地址是 http://127.0.0.1:8787/v1,也可以用云端版本 https://www.openllm.sh/v1。
现在 NoteGen 的自定义 OpenAI 兼容配置已经可以直接用。我按 NoteGen 的请求方式测过:POST {baseURL}/chat/completions,Authorization: Bearer,stream: true,以及带 tools 和 tool_choice 的调用(普通和流式)。结果如下:
- 本地 http://127.0.0.1:8787/v1(不需要 key):普通对话、流式对话、tool call(普通和流式)都正常返回。
- 云端:我们用的是自己的 staging 部署,它和 https://www.openllm.sh/v1 提供同一套 API。上面几项同样正常。
- 模型名可以填 lite、plus、ultra(OpenLLM 内置的别名),也可以填 / 形式的 ID,GET /v1/models 会列出当前账号可用的全部模型。
建议的改动很小:在 config/provider-templates.json 和 config/provider-templates-cn.json 里各加一条模板,格式和现有的 openrouter、ollama 一致,例如:
{ "key": "openllm", "title": "OpenLLM", "baseURL": "https://www.openllm.sh/v1", "apiKeyUrl": "https://www.openllm.sh", "icon": "...", "enabled": true }
本地版本如果你想单独列一条(像 ollama、lmstudio 那样),baseURL 用 http://127.0.0.1:8787/v1 即可。其他文件不用动。
这个 PR 可以由我们来提。想先问一下:你是否愿意接受这样一条模板?如果有不想加的理由(比如不再接收新的供应商,或者希望换一种写法),也请直接告诉我,我们就不提了。
English summary:
I'm Jonathan, one of the founders of OpenLLM (https://www.openllm.sh). It routes your API keys, OAuth subscription accounts and local models through one endpoint, running locally at http://127.0.0.1:8787/v1 or in the cloud at https://www.openllm.sh/v1.
NoteGen's custom OpenAI-compatible setup already works with it. I tested the request shape NoteGen sends (POST /chat/completions, Bearer auth, stream: true, tools with tool_choice, both streamed and not) against the local daemon and against our staging deployment, which serves the same API as https://www.openllm.sh/v1, and all of them returned normal results.
The proposal: one entry in config/provider-templates.json and one in config/provider-templates-cn.json, in the same shape as the existing openrouter and ollama entries (key openllm, baseURL https://www.openllm.sh/v1, apiKeyUrl https://www.openllm.sh). We would send the PR ourselves. Would you accept it?
- 主要言語
- TypeScript
- スター
- 12.9k
- フォーク
- 975
- 平均マージ
- 20時間 27分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codexu/note-gen のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
-
[bug]同步失败オープン
難易度 3/5 1〜2日 初心者へのやさしさ 28/100
codexu/note-gen の issue をすべて見る
似ている issue
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10対応中かも @goranai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checks対応中かも @Raj1v が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
backnotprop/plannotator#4046 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
traPtitech/knoQ_R-UI#290 ·
メンテナーはふだん 24 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
farion1231/cc-switch#9981 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
account bug course exam iris lecture
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信