Stream answers token by token in the Assistant
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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()collectsresponse.output_text.deltaevents.gknowledge/core/query.py:QueryEngine.query().gknowledge/ui/window.py:_on_ask().
Done when
- Providers can take an optional
on_deltacallback. - 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.
- Ngôn ngữ chính
- Python
- Star
- 13
- Fork
- 0
- Merge trung bình
- 17 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 openapi/gknowledge
-
area: ui good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openapi/gknowledge#19 ·
-
area: ui good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
openapi/gknowledge#13 ·
-
area: ui good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
openapi/gknowledge#11 ·
-
area: ui good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
openapi/gknowledge#10 ·
-
area: ui good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
openapi/gknowledge#8 ·
Tất cả issue của openapi/gknowledge
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
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 70/100
onyx-dot-app/onyx#16016 ·
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 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
black --check exits 0 and prints All done when a multi file run is interruptedCó thể đã có người làm @jiteshgulati đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Non-positive worker counts wait for results without starting workersCó thể đã có người làm @IlyaKhalafi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày