posit-dev / posit-dev/shinychat
Optionally allow limiting streaming text speed at a maximum rate/speed
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 139
- Forks
- 28
- Avg merge
- 23h 44m
- Merged PRs (30d)
- 50
Description
For production applications that support many concurrent users, sometimes having too fast or even instant text generation is bad in the sense that it allows users to mindlessly ask more stuff to the IA, burning tokens in the process.
Maybe an optional argument to cap text streaming speed would be useful to limit text speed to a high-enough rate that invites users to read while text is being generated, therefore leading users to actually read answers while they stream instead of waiting for the full answer to appear. This would have the effect of spacing out new messages, as users will have to wait an acceptable amount of time before getting the full answer.
This would be only a cosmetic or UI change.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the chat component's streaming text path and its configurable arguments. Clarify how an optional maximum rate should affect displayed text while preserving current behavior when unset. Add coverage for capped streaming and the unchanged default behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100