This commit is contained in:
yanlong.wang 2024-04-11 19:06:06 +08:00
parent 9d0d54e511
commit 5cfb78b275
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@
"stripe": "^11.11.0",
"tiktoken": "^1.0.10",
"turndown": "^7.1.3",
"turndown-plugin-gfm": "^1.0.2",
"undici": "^5.24.0"
},
"devDependencies": {

View File

@ -11,7 +11,7 @@ import { Request, Response } from 'express';
export class CrawlerHost extends RPCHost {
logger = this.globalLogger.child({ service: this.constructor.name });
turnDownService = new TurnDownService();
turnDownService = new TurnDownService().use(require('turndown-plugin-gfm'));
constructor(
protected globalLogger: Logger,