Skip to content

Commit

Permalink
using markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama committed Aug 27, 2024
1 parent ff117e7 commit f22dc03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/mention.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ describe('appMention', () => {
expect(mockSay).toHaveBeenCalledTimes(1)
expect(mockSay).toHaveBeenNthCalledWith(1, {
text: 'サマリの内容',
thread_ts: 'test_ts'
thread_ts: 'test_ts',
type: 'mrkdwn'
})
})
})
3 changes: 2 additions & 1 deletion src/mention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export const appMention: any = async ({ event, client, say }) => {
const summary = await generateSummary(threadMessages.filter(nonNullable), model, max_tokens)
await say({
text: summary,
thread_ts: event.ts
thread_ts: event.ts,
type: 'mrkdwn'
})
return
}
Expand Down
1 change: 0 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ export async function generateSummary (messages: ChatCompletionUserMessageParam[
3. 重要な内容については抜け漏れなく記載する
4. あとから見た人がすぐに状況を把握できるようにする
5. 最初に、「AIによるサマリ」と明記する
6. 段落などのフォーマットはマークダウンではなく、Slackの太字や斜体を利用してください
---スレッドの内容---
${allMessages}
Expand Down

0 comments on commit f22dc03

Please sign in to comment.