chat: serve glean chat from the platform Chat API
还没有人认领这个 Issue。
评估
调研方向
Start with internal/client/stream.go and compare the platform-first fallback used by search and agents; check the api-client-go Chat methods named in the issue. Trace how glean chat, glean agent-help, and --dry-run are wired. Done means chat streams from /api/chat by default, GLEAN_LEGACY_APIS=1 uses the classic API, and the dry run shows the platform request shape.
由索引模型根据 Issue 内容生成。
描述
glean chat still calls the classic POST /rest/api/v1/chat through a hand-rolled NDJSON stream (internal/client/stream.go). The platform Chat API is GA, and api-client-go v0.17.3 (on main since v0.18.0) models it: Glean.Chat.Create, Glean.Chat.CreateStream and Glean.Chat.Update.
Proposal
- Serve
glean chatfromPOST /api/chat, streaming throughGlean.Chat.CreateStream, with the same platform-first fallback thatsearchandagentsuse. - Remove the hand-rolled stream client once the classic path is only the fallback.
- Consider a way to continue a conversation, since the platform response carries a chat ID and
PATCH /api/chats/{chat_id}exists.
Done when
glean agent-helpshowschatwithapi: platform.glean chat "..."streams from/api/chatby default, andGLEAN_LEGACY_APIS=1still uses the classic API.--dry-runprints the platform request shape.
- 主要语言
- Go
- 星标
- 65
- 派生
- 8
- 平均合并
- 5 天 7 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
gleanwork/glean-cli 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
-
enhancement
难度 4/5 1-2 天 新手友好度 56/100
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
-
enhancement
难度 4/5 3-5 天 新手友好度 52/100
查看 gleanwork/glean-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 65/100
Azure/azure-storage-azcopy#3681 ·
维护者通常 2 天内回复
-
Case detail: main-column section headers are hard to distinguish from body text可能已有人在做 @yubessy 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
ubie-oss/hecatoncheires#347 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 66/100
meilisearch/meilisearch-go#829 ·