Keep a host's own-namespace rows out of name inference

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

从 src/server/ingest/model-identity.ts 中的 inferLinks 开始,阅读 name tier 的行是如何设置键的,以及按 provider 构建 ownNamespaces 的周边代码。阅读 #740(移除了 namespace-as-upstream)和 #736(让 Fireworks 和 LLM Gateway 的 auto 共享同一个键),了解为什么 host-namespace id 目前会落到 name inference。然后为 id 的 namespace 位于其 provider 的 ownNamespaces 中的行添加 skip,并编写验收测试:已声明的 maker 列出 auto,而 openrouter/auto 必须保持未链接;当该测试通过且现有 identity 测试仍然通过时即完成。

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

描述

Problem

Since #740 an id in the host's own namespace (openrouter/auto, groq/compound) states no upstream, so it enters the name tier (inferLinks, src/server/ingest/model-identity.ts) under a generic key such as auto, free, fusion, compound. No link results today: no declared maker has such an id or alias. It becomes a wrong link if a maker lists one, or if LLM Gateway's auto gains a single non-self route. Fireworks' and LLM Gateway's auto rows already share the key from #736.

Ask

In inferLinks, skip rows whose id namespace is one of their provider's own names (ownNamespaces). They are the host's own products.

Acceptance

  • A test where a declared maker lists auto: openrouter/auto stays unlinked.
主要语言
TypeScript
星标
0
派生
1
平均合并
5 小时 40 分钟
30 天内合并 PR
193

环境准备

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

从这里开始

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

TanStack/schemas 的其他 Issue

查看 TanStack/schemas 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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