Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Stream answers token by token in the Assistant

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
ai, desktop

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
13
Forks
0
Avg merge
17m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openapi/gknowledge

All issues in openapi/gknowledge

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.