chat: serve glean chat from the platform Chat API
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 65
- Fork
- 8
- Merge trung bình
- 5 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của gleanwork/glean-cli
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
search: add glean search filtersĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
enhancement
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 56/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Tất cả issue của gleanwork/glean-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Azure/azure-storage-azcopy#3681 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Case detail: main-column section headers are hard to distinguish from body textCó thể đã có người làm @yubessy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ubie-oss/hecatoncheires#347 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
meilisearch/meilisearch-go#829 ·