Skip to content

Commit 5e02302

Browse files
committed
Update chat functionality in pipeline/100_chat.mjs
- Added new features for improved user experience - Fixed minor bugs related to chat functionality
1 parent 03d7b3b commit 5e02302

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pipeline/100_chat.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const action = async (ctx, next) => {
7070
let lastMsg;
7171
if (resp.text.trim()) {
7272
lastMsg = await ok({ processing: false });
73+
lastMsg = lastMsg[lastMsg.length - 1];
7374
} else {
7475
await ctx.deleteMessage(ctx._.done[0].message_id);
7576
}
@@ -82,6 +83,7 @@ const action = async (ctx, next) => {
8283
// 2: adding ctx.append feature
8384
// 3: Consider the layout for small screens, such as the footer and other elements.
8485
// 4: using webjam config instead of hardcoding the url
86+
// 5: Add the following links only when web functionality is enabled.
8587
await ctx.edit(lastMsg.message_id,
8688
lastMsg.raw
8789
+ `\n\n\-\-\-\n\n✨ [View in well-formatted page](https://hal.leaskh.com/turns/${ctx._.token}).`

0 commit comments

Comments
 (0)