getCoreContentText for any websites using mozilla/readability (#641)

* getCoreContentText for any websites using https://github.com/mozilla/readability

* improve use of @mozilla/readability

---------

Co-authored-by: josc146 <josStorer@outlook.com>
This commit is contained in:
xxcdd
2024-03-22 16:06:57 +08:00
committed by GitHub
co-authored by josc146
parent a6fa0ed704
commit eb88fc2053
3 changed files with 40 additions and 12 deletions
+9
View File
@@ -6,6 +6,7 @@
"": {
"name": "chatgptbox",
"dependencies": {
"@mozilla/readability": "^0.5.0",
"@nem035/gpt-3-encoder": "^1.1.7",
"@picocss/pico": "^1.5.9",
"@primer/octicons-react": "^18.3.0",
@@ -2077,6 +2078,14 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"node_modules/@mozilla/readability": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/@mozilla/readability/-/readability-0.5.0.tgz",
"integrity": "sha512-Z+CZ3QaosfFaTqvhQsIktyGrjFjSC0Fa4EMph4mqKnWhmyoGICsV/8QK+8HpXut6zV7zwfWwqDmEjtk1Qf6EgQ==",
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/@nem035/gpt-3-encoder": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/@nem035/gpt-3-encoder/-/gpt-3-encoder-1.1.7.tgz",