pricing: a non-USD unit on a hostless or "*" block unprices the bundled table everywhere
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
先从现有的仅针对 multiplier 的拒绝逻辑旁边的启动配置验证开始,然后检查 TestConfig_AUnitOnAMultiplierOnlyBlockIsRefused。为无主机或 "*" block 中的非 USD 单位添加一个表格行或相邻用例,并确认启动时会拒绝它。
由索引模型根据 Issue 内容生成。
描述
Found by an independent review of #1153 at 80348bfc (and raised by pdettori there as a suggestion); deferred by the author's call.
After #1153 a unit is host-wide, and only rows in an endpoint's unit may price its traffic. A block with unit: and no hosts: (or hosts: ["*"]) covers every endpoint, so every endpoint no more specific block names takes that unit — and the bundled dollar table stops pricing anything there.
Measured at 80348bfc with hosts: ["*"], unit: credits, models: {premium-ide} and the bundled table on:
api.anthropic.com claude-opus-4-1 unit=credits prov=none
At a66911e9 the same request was unit=USD prov=bundled. The unpricing is loud (unpricedBy names every pair); the other half is silent: a charge any of those endpoints reports itself is labelled credits.
Shape of a fix
Refuse a non-USD unit: on a hostless or "*" block at startup, beside the multiplier-only refusal — a unit is a gateway's, so its hosts should be named — with one row added to TestConfig_AUnitOnAMultiplierOnlyBlockIsRefused's table or a sibling.
Assisted-By: Claude (Anthropic AI) [email protected]
- 主要语言
- Go
- 星标
- 23
- 派生
- 44
- 平均合并
- 16 小时 32 分钟
- 30 天内合并 PR
- 227
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rossoctl/cortex 的其他 Issue
-
UI shows costs for all sessions even when drilled into a session可能已有人在做 @esnible 于 22 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
rossoctl/cortex#1116 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Docs: Fix stale claims in CLAUDE.md and remove duplicated text可能已有人在做 @huang195 今天认领。 未关闭
rossoctl/cortex#1663 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Fix: Stop the live and draining pipelines on shutdown, not the boot ones可能已有人在做 @evaline-ju 今天认领。 未关闭bug
rossoctl/cortex#1662 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feedback laptop
难度 5/5 一周以上 新手友好度 28/100
维护者通常 1 天内回复
-
chore: Remove the decline_responses_websockets translation after a deprecation release可能已有人在做 @Alan-Cha 于 2 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
rossoctl/cortex#1625 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
dragonflydb/dragonfly-operator#619 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
cloudfoundry/bosh-bootloader#701 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
-
baremetal: private network check rejects offer-specific options (Private Network 10Gbps / 25Gbps)可能已有人在做 @lbarrosby 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
scaleway/terraform-provider-scaleway#4587 ·
维护者通常 1 天内回复
-
blocked-needs-validation bug
难度 1/5 1 小时以内 新手友好度 78/100
projectcapsule/capsule#2280 ·
维护者通常 1 天内回复