这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

resolves #527

@timothycarambat timothycarambat merged commit e9f7b9b into master Jan 5, 2024
@timothycarambat timothycarambat deleted the 527-chunk-patch branch January 5, 2024 02:05
@review-agent-prime
Copy link

server/utils/chats/stream.js

Instead of concatenating strings using the += operator, which can be inefficient for large strings, consider using an array to store the chunks and then join them at the end. This can improve performance.
Create Issue
See the diff
Checkout the fix

    let chunks = [];
    ...
    chunks.push(content);
    ...
    resolve(chunks.join(''));
git fetch origin && git checkout -b ReviewBot/Impro-2rxbeuv origin/ReviewBot/Impro-2rxbeuv

cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
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.

[Chore] Handle bad chunk from stream

2 participants