Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shoushou1106 committed Dec 21, 2024
1 parent 67b3523 commit c9044ed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ async function streamFromAI(interaction: APIInteraction, prompt: string, env: En
"Content-Type": "application/json",
},
body: JSON.stringify({
content: aiResponse || '' + '\n*Generating...*\n-# This message was generated by AI. Results may be wrong.',
type: InteractionResponseType.DEFERRED_UPDATE_MESSAGE,
data: {
content: aiResponse || '' + '\n*Generating...*\n-# This message was generated by AI. Results may be wrong.',
},
}),
}
);
Expand All @@ -209,7 +212,10 @@ async function streamFromAI(interaction: APIInteraction, prompt: string, env: En
"Content-Type": "application/json",
},
body: JSON.stringify({
content: aiResponse || '' + '\n-# This message was generated by AI. Results may be wrong.',
type: InteractionResponseType.DEFERRED_UPDATE_MESSAGE,
data: {
content: aiResponse || '' + '\n-# This message was generated by AI. Results may be wrong.',
},
}),
}
);
Expand Down

0 comments on commit c9044ed

Please sign in to comment.