feat: summarize any page by right-click menu (#55, #62, #78)

This commit is contained in:
josc146
2023-03-25 20:48:59 +08:00
parent a65cba58d5
commit 57c95d64fc
4 changed files with 92 additions and 64 deletions
+16
View File
@@ -0,0 +1,16 @@
import { getCoreContentText } from '../../utils/get-core-content-text'
export const config = {
newChat: {
label: 'New Chat',
genPrompt: async () => {
return ''
},
},
summarizePage: {
label: 'Summarize Page',
genPrompt: async () => {
return `The following is the text content of a web page, analyze the core content and summarize:\n${getCoreContentText()}`
},
},
}