[feat] 在模型供应商模板中加入 OpenLLM
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- json, typescript
- Área
- ai
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
描述你的建议
我是 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?
- Lenguaje dominante
- TypeScript
- Estrellas
- 12.9k
- Forks
- 975
- Merge medio
- 20 h 27 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codexu/note-gen
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
-
[feat] 强烈建议鼠标中键可关闭标签!!!Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
[bug] 左侧边栏,右侧边栏不能固定宽度,重启后比较随意Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 58/100
-
[bug]同步失败Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 28/100
Todos los issues de codexu/note-gen
Issues similares
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Posiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checksPosiblemente ocupada @Raj1v la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
backnotprop/plannotator#4046 ·
Los mantenedores suelen responder en 1 día
-
進捗部屋の管理画面で削除対象を月ごとに絞り込むAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
traPtitech/knoQ_R-UI#290 ·
Los mantenedores suelen responder en 24 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
farion1231/cc-switch#9981 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
account bug course exam iris lecture
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día