Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Stream answers token by token in the Assistant

Offen
#6 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
76/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
ai, desktop

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
13
Forks
0
Ø Merge
17 Min.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus openapi/gknowledge

Alle Issues in openapi/gknowledge

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.