Skip to content

Commit

Permalink
Update sleep time to speed up
Browse files Browse the repository at this point in the history
  • Loading branch information
haibbo committed May 27, 2023
1 parent 7b3aeb3 commit b851be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf-openai-azure-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function stream(readable, writable) {
// Loop through all but the last line, which may be incomplete.
for (let i = 0; i < lines.length - 1; i++) {
await writer.write(encoder.encode(lines[i] + delimiter));
await sleep(30);
await sleep(20);
}

buffer = lines[lines.length - 1];
Expand Down

0 comments on commit b851be3

Please sign in to comment.