Skip to content

Commit 6e66c87

Browse files
committed
Refactor code in pipeline/100_chat.mjs to improve performance and readability.
1 parent 8e7b195 commit 6e66c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipeline/100_chat.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const action = async (ctx, next) => {
4141
await ctx.audio(audio.data, { caption: audio.caption });
4242
}
4343
// print(resp);
44-
await ctx.timeout();
44+
await ctx.timeout(1000 * ctx._.done.length);
4545
await (resp.text.trim() ? ok({ processing: false })
4646
: ctx.deleteMessage(ctx._.done[0].message_id));
4747
ctx._.request = resp.request;

0 commit comments

Comments
 (0)