MODEL_NOT_FOUND gives no suggestion for a model listed only as model:profile
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
找到生成 MODEL_NOT_FOUND 提示并筛选包含 : 的模型 ID 的代码。阅读 matcher 及其现有的建议测试,然后比较基础 ID 在列表中,以及列表中只有 profile ID 时的行为。完成标准是:后一种情况下,近似匹配会建议列表中的完整 profile ID;前一种情况下,仍然只建议基础 ID。
由索引模型根据 Issue 内容生成。
描述
Follow-up to #939 (suggestions added in #940).
- The
MODEL_NOT_FOUNDhint is built only from the model ids the caller may list. - The matcher drops every
model:profileid from that list before comparing, on the assumption that the base idmodelis listed as well and stands for the model. - A caller's list can contain a model only in its
model:profileform, for exampleorg/model-a:profile-xwithoutorg/model-a. - For such a model there is then nothing left to compare the request with.
- A near miss of the base id, such as
org/modl-aormodel-a, gets the plainModel '...' not found, while the same near miss of an id listed without a profile getsDid 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
superlinked/sie 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 42/100
superlinked/sie#969 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
superlinked/sie#903 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
superlinked/sie#892 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
superlinked/sie#851 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
superlinked/sie#840 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 76/100
samuelclay/NewsBlur#2214 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
readthedocs/readthedocs-builder#73 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
reflex-dev/reflex#7915 · 1 条评论 ·
维护者通常 1 天内回复