chat: serve glean chat from the platform Chat API
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 65
- Fork
- 8
- Merge medio
- 5g 7h
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di gleanwork/glean-cli
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
enhancement
Difficoltà 4/5 1-2 giorni Idoneità per principianti 56/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
Tutte le issue di gleanwork/glean-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Azure/azure-storage-azcopy#3681 ·
I maintainer di solito rispondono entro 2 giorni
-
Case detail: main-column section headers are hard to distinguish from body textForse già presa @yubessy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ubie-oss/hecatoncheires#347 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
meilisearch/meilisearch-go#829 ·