chat: serve glean chat from the platform Chat API
まだ誰も着手していません。
評価
調査の方向性
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時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 ·