Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Stream answers token by token in the Assistant

Aperta
#6 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
76/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ai, desktop

Direzione di ricerca

Read gknowledge/providers/chatgpt.py and trace how _stream() handles response.output_text.delta events through gknowledge/core/query.py into gknowledge/ui/window.py's _on_ask(). Start with make test and use make start to try the demo; add the optional provider callback and UI updates through GLib.idle_add. Done means answers appear as they arrive and offline mode still works.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: core area: ui help wanted

The ChatGPT provider already receives the answer as a stream, but the Assistant shows Thinking… for several seconds and then everything at once.

Where to look

  • gknowledge/providers/chatgpt.py: _stream() collects response.output_text.delta events.
  • gknowledge/core/query.py: QueryEngine.query().
  • gknowledge/ui/window.py: _on_ask().

Done when

  • Providers can take an optional on_delta callback.
  • The Assistant appends text as it arrives (via GLib.idle_add).
  • Offline mode keeps working unchanged.

New here? Run make start to open a demo project that restarts on every save, and make test for the core tests. See CONTRIBUTING.md. Comment below to claim the issue.

Lingua principale
Python
Stelle
13
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openapi/gknowledge

Tutte le issue di openapi/gknowledge

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.