Attribute model spend to each Tapas user in llm-serving-pack metering
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go, kubernetes
调研方向
Read the Tapas model endpoint that enforces dailyTokensPerUser and the agent token broker, then check nebari-dev/llm-serving-pack#313 for the trusted service identity format. Trace how the Keycloak sub reaches the upstream model call and how OpenMeter and the usage console identify users. Done means each call is attributed to the calling user's sub; the issue does not name a test or specific file.
由索引模型根据 Issue 内容生成。
描述
On an internal demo cluster, Tapas's coding agents reach their model through llm-serving-pack's external endpoint with a single API key in ai.apiKeySecret. llm-serving-pack meters usage in OpenMeter and prices it in dollars, but it attributes every request to the key's creator, so all agent spend lands on one person instead of the user whose agent made the call.
Tapas already knows the user on every call through its model endpoint (it enforces dailyTokensPerUser there), so it is the component that can pass that identity on.
What we need
- Tapas sends the end user's identity with each upstream model call, in whatever form llm-serving-pack accepts for a trusted service (nebari-dev/llm-serving-pack#313).
- Or, if we go the token route, Tapas calls the internal endpoint with a token exchanged for the user (the agent token broker may already have most of this).
- Either way, the user identifier must match what OpenMeter and the usage console use (the Keycloak
sub).
- 主要语言
- Go
- 星标
- 5
- 派生
- 0
- 平均合并
- 21 小时 13 分钟
- 30 天内合并 PR
- 53
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nebari-dev/tapas 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
nebari-dev/tapas#124 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
nebari-dev/tapas#121 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
nebari-dev/tapas#32 ·
维护者通常 1 天内回复
-
Suggest saving a memory when a chat message holds something worth remembering可能已有人在做 @jbouder 今天认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
nebari-dev/tapas#137 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 54/100
nebari-dev/tapas#136 ·
维护者通常 1 天内回复
相似的 Issue
-
area: pipeline priority: low type: bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
prime-radiant-inc/evener#8335 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)可能已有人在做 @szluyu99 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100