Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smooth chat streaming output #510

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Smooth chat streaming output #510

wants to merge 2 commits into from

Conversation

guolinke
Copy link

No description provided.

@guolinke guolinke changed the title smooth the chat outputs Smooth chat streaming output Dec 23, 2023
@mariodian
Copy link
Contributor

This won't build because types are missing.

src/hooks/useSubmit.ts:103:11 - error TS7034: Variable 'messageQueue' implicitly has type 'any[]' in some locations where its type cannot be determined.

103       let messageQueue = [];
              ~~~~~~~~~~~~

src/hooks/useSubmit.ts:108:34 - error TS7005: Variable 'messageQueue' implicitly has an 'any[]' type.

108             let messageContent = messageQueue.shift();
                                     ~~~~~~~~~~~~

src/hooks/useSubmit.ts:130:33 - error TS7006: Parameter 'stream' implicitly has an 'any' type.

130       async function readStream(stream) {
                                    ~~~~~~


Found 3 errors in the same file, starting at: src/hooks/useSubmit.ts:103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants