Models doesn't work when fetchModels: false is used
维护者通常 2 天内回复
@zikajk 已经在做这个了。
开始于 2026年10月21日。
评估
调研方向
从 src/eca/llm_api.clj 中的 provider->api-handler(第 198-217 行)开始,然后检查 src/eca/models.clj 中第 764 行附近的 fetch-model-catalog-enabled?。使用 fetchModels: false 复现故障,并验证自定义 provider 在跳过 /models 请求的同时仍能收到可用的 API handler。完成的标准是配置了简短模型列表时不会因 API 调用而崩溃。
由索引模型根据 Issue 内容生成。
描述
was trying out eca and eca-desktop today and stumbled across a bug.
when I started I had a simple config (eca-config.json minus the fetch models line.)
this worked but with llama.cpp in router mode this drags in everything. so I added fetch models line and it was the short list of models but then nothing worked, until I re-enabled fetch models.
Expected behavior
things function, but with a short model list.
Additional context
while slop wasn't requested I did have AI dig some to at least verify what I was seeing, I had it generate a report but I'll trim it down to just the files/line number bits
src/eca/llm_api.clj:198-217 — the provider->api-handler function. When model capabilities don't include a discovered :api field (because discovery was skipped), it falls back to checking the provider's base-provider name. For custom providers this doesn't match any known type, so it returns nil. The handler being nil causes the API call to crash.
The same skip happens in src/eca/models.clj:764 — fetch-model-catalog-enabled? returns false when fetchModels: false, so the provider's /models endpoint is never called.
- 主要语言
- Clojure
- 星标
- 1k
- 派生
- 82
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 18
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
editor-code-assistant/eca 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
editor-code-assistant/eca#664 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 56/100
editor-code-assistant/eca#662 · 1 个 reaction ·
维护者通常 2 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 25/100
editor-code-assistant/eca#652 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 12/100
editor-code-assistant/eca#648 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
editor-code-assistant/eca#644 · 1 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
查看 editor-code-assistant/eca 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
.Frontend .Team/UXWest Priority:P3 Querying/Filters Type:Bug
难度 2/5 1-3 小时 新手友好度 76/100
metabase/metabase#85298 · 1 条评论 ·
维护者通常 1 天内回复
-
pgwire
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
Evals take an extra 40ms each on Linux, since the server doesn't set TCP_NODELAY可能已有人在做 @bbatsov 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 3 天内回复