Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Models doesn't work when fetchModels: false is used

未关闭 适合新手
#661 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@zikajk 已经在做这个了。

开始于 2026年10月21日。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
clojure, json
领域
ai, backend

调研方向

从 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 内容生成。

描述

bug

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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

editor-code-assistant/eca 的其他 Issue

查看 editor-code-assistant/eca 的全部 Issue

相似的 Issue

更多 Clojure Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。