MODEL_NOT_FOUND gives no suggestion for a model listed only as model:profile

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

维护者通常 1 天内回复

@ShaiShmuel 已经在做这个了。

开始于 2026年11月17日。

  • #986 来自 @ShaiShmuel —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python

调研方向

找到生成 MODEL_NOT_FOUND 提示并筛选包含 : 的模型 ID 的代码。阅读 matcher 及其现有的建议测试,然后比较基础 ID 在列表中,以及列表中只有 profile ID 时的行为。完成标准是:后一种情况下,近似匹配会建议列表中的完整 profile ID;前一种情况下,仍然只建议基础 ID。

由索引模型根据 Issue 内容生成。

描述

enhancement rust

Follow-up to #939 (suggestions added in #940).

  1. The MODEL_NOT_FOUND hint is built only from the model ids the caller may list.
  2. The matcher drops every model:profile id from that list before comparing, on the assumption that the base id model is listed as well and stands for the model.
  3. A caller's list can contain a model only in its model:profile form, for example org/model-a:profile-x without org/model-a.
  4. For such a model there is then nothing left to compare the request with.
  5. A near miss of the base id, such as org/modl-a or model-a, gets the plain Model '...' not found, while the same near miss of an id listed without a profile gets Did you mean '...'?.

Net effect: models that a caller can reach only through a profile id are invisible to the suggestion matcher, so a small typo in their name gives no hint at all.

Expected: when the base id is not in the caller's list, match the request against the part before the : and suggest the whole listed id (org/model-a:profile-x). The bare base must not be printed, since the caller cannot list it. When the base id is listed, keep suggesting only the base, as today.

主要语言
Python
星标
3.5k
派生
328
平均合并
16 小时 25 分钟
30 天内合并 PR
121

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

superlinked/sie 的其他 Issue

查看 superlinked/sie 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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